String Matching - II. Patterns {he, she, his, hers} The KMP Algorithm. Theorem: At most 2N comparisons in total. The Aho-Corasick Algorithm (1986)

Size: px
Start display at page:

Download "String Matching - II. Patterns {he, she, his, hers} The KMP Algorithm. Theorem: At most 2N comparisons in total. The Aho-Corasick Algorithm (1986)"

Transcription

1 Agoritm Dign nd Anyi Victor Admcik CS Spring 2014 Lctur 40 Apr 28, 2014 Crngi Mon Univrity String Mtcing - II T KMP Agoritm Torm: At mot 2N comprion in tot Morri Knut T Ao-Corick Agoritm (1986) Pttrn {,, i, r trt 0 1 r 2 8 * 9 i T goritm prproc t t of pttrn n 7 n 5 T Ao-Corick Agoritm W ti u t ongt uffix ru. If w fi on mking trnition from nod N to it cid, w trnition to nod M, wr t tring tt dfin M i t frtt nod (ongt prfix) from t root wic i o uffix of t tring w d mtcd wn w fid (rmoving t firt trnition). T ony diffrnc i tt intd of trvring ing tring ft-to-rigt w now v to trvr tri. T Rbin-Krp Agoritm (1981) T goritm u t id of ing 1

2 pttrn = 4848 T min id txt = W do not mtc tring gint givn pttrn, but rtr compr tir cod. T min id pttrn = 4848 % 71 = % 71 = % 71 = % 71 = 28 W rd t txt in t numbr of crctr qu to t ngt of t pttrn, comput it cod nd compr wit t pttrn cod. Wt i it compxity? M = pttrn.ngt() N = txt.ngt(); Computing cod How cn w gt from 145 to 456? W wi do ti by crting cin of oprtion Simir to brut-forc mtcing T ky id of improving t goritm i in computing cod in O(1) Rmov t ding digit, mutipy by b, dd ing digit. It tk O(1) to comput cod from t prviou vu. Exmp Exmp Givn: cod for Givn: cod for mod 41 = mod 41 = 36 Tk: comput cod for Tk: comput cod for Obrv, = ( *10 4 ) *

3 Exmp 17295%41 = [(31729%41-3*10 4 %41) *10 + 5]% %41 i rdy computd. 3*10 4 % 41 wi b prcomputd 17295%41 = [(36-29) * ]%41 = 75 % 41 = 34 Rbin-Krp formizd Lt P[1... m] b pttrn nd T[1... n] b txt. W dfin pttrn P = 10 m-1 P[1] + 10 P[m-1] + + P[m] nd ift in t txt: t = 10 m-1 T[+1] + 10 T[+m-1] + + T[+m] T vu t +1 cn b obtind from t by t +1 = (t - 10 m-1 T[+1]) 10 + T[+m+1] Exrci Hornr Ru W id 31729%41 i rdy computd How woud you comput it ft? x 4 + b x 3 + c x 2 + d x + = + x (d + x (c + x (b + x) Impmnttion pubic int rc(string T, String P){ int M = P.ngt(), N = T.ngt(); Impmnttion (cont.) if(1 == 2) rturn 0; int dm = 1, 1 = 0, 2 = 0; int q = ; /*pick it t rndom */ int d = 256; /* rdix */ for(int j = 1; j < M; j++) dm = (d*dm) % q; for(int j = 0; j < M; j++){ 1 = (1*d + P.crAt(j)) % q; 2 = (2*d + T.crAt(j)) % q; for(int i = M; i < N; i++) { 2 = 2 - T.crAt(i - M) * dm % q; 2 = (2*d + T.crAt(i)) % q; if(1 == 2) rturn i - M + 1; rturn -1; 3

4 F mtc TRIES = "rtriv" T == P mod q Wt do w do in c of f mtc? Wn w found mtc w cn cck t mtc by cr comprion. Frdkin (1960) Min id: bd on t digit of t ky! TRIES by t or Ec nod (or dg) i bd wit crctr Cidrn of nod r ordrd (pbticy) Pt from root to v yid input tring b y $ o r t ntin Appiction Auto comption Sp cckr Dt comprion Computtion bioogy Goog invrtd tb Nod Structur Oftn wtfu of pc bcu mny of t cid fid r nu. Poib nod rprnttion: Arry H Tb Linkd Lit Binry Tr 4

5 Src pubic boon find (TriNod nod, String ky) { if (ky.ngt()==0) rturn nod.iword(); cr c = ky.gtcr(0); String rt = ky.ubtring(1); TriNod cid = nod.gtcid(c); if(cid == nu) rturn f; Runtim rturn find (cid, rt); compxity -? Inrt pubic void inrt (TriNod nod, String ky) { if (ky.ngt()==0) nod.tword(tru); cr c = ky.gtcr(0); String rt = ky.ubtring(1); TriNod cid = nod.gtcid(c); if(cid == nu) { nod.tcid(nw TriNod(c), c); inrt (nwcid, rt); Runtim compxity -? inrt (cid, rt); Prfix Mtc Find tring trting wit b t y $ o r Advntg, rtiv to BST Advntg, rtiv to ing Src i ftr! It do not dpnd on t numbr of mnt in t tr. Tri p wit prfix-mtcing. No coiion. No function. Apbtic orting. How? 5

6 Comprd Tri Comprd Tri by t or Ec non-f nod (xcpt root) t t two cidrn Rpc cin of on-cid nod wit ing nod bd wit tring by t $ or Compct Tri (PATRICIA) A mor compct rprnttion of comprd tri Compct Tri (PATRICIA) A mor compct rprnttion of comprd tri by t by t Intgr indx $ or t $ or t o r (i, j, k) o r 6

Binary Search Trees. Definition Of Binary Search Tree. The Operation ascend() Example Binary Search Tree

Binary Search Trees. Definition Of Binary Search Tree. The Operation ascend() Example Binary Search Tree Binary Sar Trs Compxity O Ditionary Oprations t(), put() and rmov() Ditionary Oprations: ƒ t(ky) ƒ put(ky, vau) ƒ rmov(ky) Additiona oprations: ƒ asnd() ƒ t(indx) (indxd inary sar tr) ƒ rmov(indx) (indxd

More information

Cloud and Big Data Summer School, Stockholm, Aug., 2015 Jeffrey D. Ullman

Cloud and Big Data Summer School, Stockholm, Aug., 2015 Jeffrey D. Ullman Cloud and Big Data Summr Scool, Stockolm, Aug., 2015 Jffry D. Ullman Givn a st of points, wit a notion of distanc btwn points, group t points into som numbr of clustrs, so tat mmbrs of a clustr ar clos

More information

1.- L a m e j o r o p c ió n e s c l o na r e l d i s co ( s e e x p li c a r á d es p u é s ).

1.- L a m e j o r o p c ió n e s c l o na r e l d i s co ( s e e x p li c a r á d es p u é s ). PROCEDIMIENTO DE RECUPERACION Y COPIAS DE SEGURIDAD DEL CORTAFUEGOS LINUX P ar a p od e r re c u p e ra r nu e s t r o c o rt a f u e go s an t e un d es a s t r e ( r ot u r a d e l di s c o o d e l a

More information

Binary Search Trees. Definition Of Binary Search Tree. Complexity Of Dictionary Operations get(), put() and remove()

Binary Search Trees. Definition Of Binary Search Tree. Complexity Of Dictionary Operations get(), put() and remove() Binary Sar Trs Compxity O Ditionary Oprations t(), put() and rmov() Ditionary Oprations: ƒ t(ky) ƒ put(ky, vau) ƒ rmov(ky) Additiona oprations: ƒ asnd() ƒ t(indx) (indxd inary sar tr) ƒ rmov(indx) (indxd

More information

Victims Compensation Claim Status of All Pending Claims and Claims Decided Within the Last Three Years

Victims Compensation Claim Status of All Pending Claims and Claims Decided Within the Last Three Years Claim#:021914-174 Initials: J.T. Last4SSN: 6996 DOB: 5/3/1970 Crime Date: 4/30/2013 Status: Claim is currently under review. Decision expected within 7 days Claim#:041715-334 Initials: M.S. Last4SSN: 2957

More information

Solution to Problem Set 1

Solution to Problem Set 1 CSE 5: Introduction to the Theory o Computtion, Winter A. Hevi nd J. Mo Solution to Prolem Set Jnury, Solution to Prolem Set.4 ). L = {w w egin with nd end with }. q q q q, d). L = {w w h length t let

More information

CPS 220 Theory of Computation REGULAR LANGUAGES. Regular expressions

CPS 220 Theory of Computation REGULAR LANGUAGES. Regular expressions CPS 22 Thory of Computation REGULAR LANGUAGES Rgular xprssions Lik mathmatical xprssion (5+3) * 4. Rgular xprssion ar built using rgular oprations. (By th way, rgular xprssions show up in various languags:

More information

December Homework- Week 1

December Homework- Week 1 Dcmbr Hmwrk- Wk 1 Mth Cmmn Cr Stndrds: K.CC.A.1 - Cunt t 100 by ns nd by tns. K.CC.A.2 - Cunt frwrd bginning frm givn numbr within th knwn squnc (instd f hving t bgin t 1). K.CC.B.4.A - Whn cunting bjcts,

More information

Menu Structure. Section 5. Introduction. General Functions Menu

Menu Structure. Section 5. Introduction. General Functions Menu Menu Structure Section 5 Introduction General Functions Menu Most workstation functions are accessed by menu selections. This section explains the menu structure and provides a tree structured view of

More information

i n g S e c u r it y 3 1B# ; u r w e b a p p li c a tio n s f r o m ha c ke r s w ith t his å ] í d : L : g u id e Scanned by CamScanner

i n g S e c u r it y 3 1B# ; u r w e b a p p li c a tio n s f r o m ha c ke r s w ith t his å ] í d : L : g u id e Scanned by CamScanner í d : r ' " B o m m 1 E x p e r i e n c e L : i i n g S e c u r it y. 1-1B# ; u r w e b a p p li c a tio n s f r o m ha c ke r s w ith t his g u id e å ] - ew i c h P e t e r M u la e n PACKT ' TAÞ$Æo

More information

Application Note: Cisco A S A - Ce r t if ica t e T o S S L V P N Con n e ct ion P r of il e Overview: T h i s a p p l i ca ti o n n o te e x p l a i n s h o w to co n f i g u r e th e A S A to a cco m

More information

Uses for Binary Trees -- Binary Search Trees

Uses for Binary Trees -- Binary Search Trees CS122 Algorithms n Dt Struturs MW 11:00 m 12:15 pm, MSEC 101 Instrutor: Xio Qin Ltur 10: Binry Srh Trs n Binry Exprssion Trs Uss or Binry Trs Binry Srh Trs n Us or storing n rtriving inormtion n Insrt,

More information

B I N G O B I N G O. Hf Cd Na Nb Lr. I Fl Fr Mo Si. Ho Bi Ce Eu Ac. Md Co P Pa Tc. Uut Rh K N. Sb At Md H. Bh Cm H Bi Es. Mo Uus Lu P F.

B I N G O B I N G O. Hf Cd Na Nb Lr. I Fl Fr Mo Si. Ho Bi Ce Eu Ac. Md Co P Pa Tc. Uut Rh K N. Sb At Md H. Bh Cm H Bi Es. Mo Uus Lu P F. Hf Cd Na Nb Lr Ho Bi Ce u Ac I Fl Fr Mo i Md Co P Pa Tc Uut Rh K N Dy Cl N Am b At Md H Y Bh Cm H Bi s Mo Uus Lu P F Cu Ar Ag Mg K Thomas Jefferson National Accelerator Facility - Office of cience ducation

More information

Question 3: How do you find the relative extrema of a function?

Question 3: How do you find the relative extrema of a function? ustion 3: How do you find th rlativ trma of a function? Th stratgy for tracking th sign of th drivativ is usful for mor than dtrmining whr a function is incrasing or dcrasing. It is also usful for locating

More information

CHAPTER 4c. ROOTS OF EQUATIONS

CHAPTER 4c. ROOTS OF EQUATIONS CHAPTER c. ROOTS OF EQUATIONS A. J. Clark School o Enginring Dpartmnt o Civil and Environmntal Enginring by Dr. Ibrahim A. Aakka Spring 00 ENCE 03 - Computation Mthod in Civil Enginring II Dpartmnt o Civil

More information

New Basis Functions. Section 8. Complex Fourier Series

New Basis Functions. Section 8. Complex Fourier Series Nw Basis Functions Sction 8 Complx Fourir Sris Th complx Fourir sris is prsntd first with priod 2, thn with gnral priod. Th connction with th ral-valud Fourir sris is xplaind and formula ar givn for convrting

More information

SPECIFICATION SHEET : WH5-120-L

SPECIFICATION SHEET : WH5-120-L SPECIFICATION SHEET : WH5120L *F3 2 T8 3 1 0 6 0.9 3 1.2 6 1.1 9 *F3 2 T8 4 1 2 7 1.1 3 1.1 1 0.8 7 F5 4 T5 H O 2 1 0 8 0.9 6 1.0 7 0.9 9 *F5 8 T8 2 1 1 0 0.9 7 1.0 8 0.9 8 *F4 0 T1 0 2 1 0 1 0.9 0 1.3

More information

Analysis of Algorithms I: Optimal Binary Search Trees

Analysis of Algorithms I: Optimal Binary Search Trees Analysis of Algorithms I: Optimal Binary Search Trees Xi Chen Columbia University Given a set of n keys K = {k 1,..., k n } in sorted order: k 1 < k 2 < < k n we wish to build an optimal binary search

More information

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected At 14:05 April 16, 2011 At 13:55 April 16, 2011 At 14:20 April 16, 2011 ND ND 3.6E-01 ND ND 3.6E-01 1.3E-01 9.1E-02 5.0E-01 ND 3.7E-02 4.5E-01 ND ND 2.2E-02 ND 3.3E-02 4.5E-01 At 11:37 April 17, 2011 At

More information

CODES FOR PHARMACY ONLINE CLAIMS PROCESSING

CODES FOR PHARMACY ONLINE CLAIMS PROCESSING S FOR PHARMACY ONLINE CLAIMS PROCESSING The following is a list of error and warning codes that may appear when processing claims on the online system. The error codes are bolded. CODE AA AB AI AR CB CD

More information

Academic Calendar 2015-2018 Arkansas State University - Jonesboro

Academic Calendar 2015-2018 Arkansas State University - Jonesboro Shared Governance Proposal Any constituent (individual or group) may submit a proposal into the shared governance process. In order to be considered, each proposal must contain the following and be directed

More information

Important result on the first passage time and its integral functional for a certain diffusion process

Important result on the first passage time and its integral functional for a certain diffusion process Lcturs Mtmátics Volumn 22 (21), págins 5 9 Importnt rsult on th first pssg tim nd its intgrl functionl for crtin diffusion procss Yousf AL-Zlzlh nd Bsl M. AL-Eidh Kuwit Univrsity, Kuwit Abstrct. In this

More information

CREATE SHAPE VISUALIZE

CREATE SHAPE VISUALIZE SHAPE VISUALIZE B I M E q u i t y BIM Workflow Guide SHAPE VISUALIZE Introduction We o e to t e r t ook i t e BIM Workflow erie I t e o owi ter we wi o er e eryt i eeded or you to ter t e i o re ti i d

More information

This chapter includes installation instructions and limitations for Antivirus products on client computers and loggers.

This chapter includes installation instructions and limitations for Antivirus products on client computers and loggers. : tiiu Ti t iud itti ituti imitti f tiiu dut it mut gg NT: T ifmti i ti t f t ftw i y I dditi, utm, bui t, i mut ify tt t Lgg mt t miimum dw quimt dfi by t tid ty ftw Ctt G tiiu 9 f NIC Itti gmt Tid ty

More information

EDI 214 ANSI X12 Version 4010 Transportation Carrier Shipment Status Message

EDI 214 ANSI X12 Version 4010 Transportation Carrier Shipment Status Message EDI 214 ANSI X12 Version 4010 Transportation Carrier Shipment Status Message 214 Transportation Carrier Shipment Status Message Functional Group=QM This Draft Standard for Trial Use contains the format

More information

R e t r o f i t o f t C i r u n i s g e C o n t r o l

R e t r o f i t o f t C i r u n i s g e C o n t r o l R e t r o f i t o f t C i r u n i s g e C o n t r o l VB Sprinter D e s c r i p t i o n T h i s r e t r o f i t c o n s i s t s o f i n s t a l l i n g a c r u i s e c o n t r o l s wi t c h k i t i n

More information

Last time Interprocedural analysis Dimensions of precision (flow- and context-sensitivity) Flow-Sensitive Pointer Analysis

Last time Interprocedural analysis Dimensions of precision (flow- and context-sensitivity) Flow-Sensitive Pointer Analysis Flow-Insnsitiv Pointr Anlysis Lst tim Intrprocurl nlysis Dimnsions of prcision (flow- n contxt-snsitivity) Flow-Snsitiv Pointr Anlysis Toy Flow-Insnsitiv Pointr Anlysis CIS 570 Lctur 12 Flow-Insnsitiv

More information

- ASSEMBLY AND INSTALLATION -

- ASSEMBLY AND INSTALLATION - - SSEMLY ND INSTLLTION - Sliin Door Stm Mot Importnt! Ti rmwork n ml to uit 100 mm ini wll tikn (75 mm tuwork) or 125 mm ini wll tikn (100 mm tuwork) HOWEVER t uppli jm kit i pii to itr 100 mm or 125 mm

More information

C o a t i a n P u b l i c D e b tm a n a g e m e n t a n d C h a l l e n g e s o f M a k e t D e v e l o p m e n t Z a g e bo 8 t h A p i l 2 0 1 1 h t t pdd w w wp i j fp h D p u b l i c2 d e b td S t

More information

the first quarter 2015...

the first quarter 2015... 1990 the first quarter 2015... PM.250F PM.300F PM.400F PM.200 Premium Tumbler 76 mm 81 mm 200 ml 150 pcs PC Clear, Black, Clear, White Blue, Amber, 81 gr Red, Black, White PM.250 Premium Tumbler 84 mm

More information

Unit 16 : Software Development Standards O b jec t ive T o p r o v id e a gu ide on ho w t o ac h iev e so f t wa r e p r o cess improvement through the use of software and systems engineering standards.

More information

Solutions to old Exam 1 problems

Solutions to old Exam 1 problems Solutions to old Exam 1 problems Hi students! I am putting this old version of my review for the first midterm review, place and time to be announced. Check for updates on the web site as to which sections

More information

6. Differentiating the exponential and logarithm functions

6. Differentiating the exponential and logarithm functions 1 6. Differentiating te exponential and logaritm functions We wis to find and use derivatives for functions of te form f(x) = a x, were a is a constant. By far te most convenient suc function for tis purpose

More information

Table of Registration Dates Per School

Table of Registration Dates Per School Table of Registration Dates Per School GRADUATE SCHOOL OF BUSINESS ADMINISTRATION Program ONLINE registration dates ON CAMPUS registration dates and venue PHD PhD (BD000) MASTERS BY RESEARCH ONLY Masters

More information

The Australian Journal of Mathematical Analysis and Applications

The Australian Journal of Mathematical Analysis and Applications The Australian Journal of Mathematical Analysis and Applications Volume 7, Issue, Article 11, pp. 1-14, 011 SOME HOMOGENEOUS CYCLIC INEQUALITIES OF THREE VARIABLES OF DEGREE THREE AND FOUR TETSUYA ANDO

More information

Angles and Triangles

Angles and Triangles nges nd Tringes n nge is formed when two rys hve ommon strting point or vertex. The mesure of n nge is given in degrees, with ompete revoution representing 360 degrees. Some fmiir nges inude nother fmiir

More information

Lecture 10: What is a Function, definition, piecewise defined functions, difference quotient, domain of a function

Lecture 10: What is a Function, definition, piecewise defined functions, difference quotient, domain of a function Lecture 10: Wat is a Function, definition, piecewise defined functions, difference quotient, domain of a function A function arises wen one quantity depends on anoter. Many everyday relationsips between

More information

I n s t r u k c j a o b s ł u g i p r o g r a m u Program Finansowo-K się gowy w e r s j a 1. 1 p o d W i n d o w s. W y d a w n i c t w o " G I D E X " S Z C Z E C I N - m a j - 2 0 0 2 W y ł ą c z n

More information

SSN: This field shows the Social Security number(s) (SSNs) that were used as one of the Business Objects search data; the default is 000000000.

SSN: This field shows the Social Security number(s) (SSNs) that were used as one of the Business Objects search data; the default is 000000000. Refreshed 06/11/2007 9:02:48 AM Department of Human Services QN-112 SVES Title II SSA Retirement, Survivors, Disability and Health Insurance Benefits Information SSN: 123-45-6789 Birth Month: ALL Birth

More information

Binary Heap Algorithms

Binary Heap Algorithms CS Data Structures and Algorithms Lecture Slides Wednesday, April 5, 2009 Glenn G. Chappell Department of Computer Science University of Alaska Fairbanks CHAPPELLG@member.ams.org 2005 2009 Glenn G. Chappell

More information

Unexpected sync results

Unexpected sync results Unexpected sync results Two unexpected sync results: - Middle Name changes from small to capital beginning character (van -> Van) - Email Display As changes from order (Vincent van Gogh -> Gogh, Vincent

More information

Cello How-To Guide. Securing Data Access

Cello How-To Guide. Securing Data Access Cello How-To Guide Securing Data Access Contents 1 Introduction to User Entity Access Management... 3 1.1. Sample Model Class for Reference... 3 1.2. Entity Permission APIs... 4 1.3. Consumption... 7 2

More information

SCO TT G LEA SO N D EM O Z G EB R E-

SCO TT G LEA SO N D EM O Z G EB R E- SCO TT G LEA SO N D EM O Z G EB R E- EG Z IA B H ER e d it o r s N ) LICA TIO N S A N D M ETH O D S t DVD N CLUDED C o n t e n Ls Pr e fa c e x v G l o b a l N a v i g a t i o n Sa t e llit e S y s t e

More information

Oregon Truck Tracking Online

Oregon Truck Tracking Online Oregon Truck Tracking Online OTTOExchange Technical Specifications The Oregon Department of Transportation provides this web service as an interface for private sector companies to automate collection

More information

EASY RECEPTION TASKS FOR USE IN THE LITERACY HOUR. S t e p h e n s t e. Jigsaw names of self and friends.

EASY RECEPTION TASKS FOR USE IN THE LITERACY HOUR. S t e p h e n s t e. Jigsaw names of self and friends. EASY RECEPTION TASKS FOR USE IN THE LITERACY HOUR Own Nme Tk Mtching letter underneth nme crd. S t e p h e n t e B e n Mtching mgnetic letter under nme crd p t t h o n Jigw nme of elf nd friend. T r c

More information

Fundamentals of Tensor Analysis

Fundamentals of Tensor Analysis MCEN 503/ASEN 50 Chptr Fundmntls of Tnsor Anlysis Fll, 006 Fundmntls of Tnsor Anlysis Concpts of Sclr, Vctor, nd Tnsor Sclr α Vctor A physicl quntity tht cn compltly dscrid y rl numr. Exmpl: Tmprtur; Mss;

More information

C H A P T E R 1 Writing Reports with SAS

C H A P T E R 1 Writing Reports with SAS C H A P T E R 1 Writing Rports with SAS Prsnting information in a way that s undrstood by th audinc is fundamntally important to anyon s job. Onc you collct your data and undrstand its structur, you nd

More information

PRE- CSEC & CAPE EXAMINATIONS TIMETABLE 2014

PRE- CSEC & CAPE EXAMINATIONS TIMETABLE 2014 1,2,3,4,5,6,7,8, Mathematics II 2½ Hrs Mon. Chem1 & Chem 2 17th - Caribbean Studies II- 3 Hrs 1,2,3,4,5,6,7 Communication Studies II-2½ Hrs Phy lab, Chem 1&2, Gf Central 1-1,2,3,4,5,6,7,8, Mathematics

More information

A Note on Approximating. the Normal Distribution Function

A Note on Approximating. the Normal Distribution Function Applid Mathmatical Scincs, Vol, 00, no 9, 45-49 A Not on Approimating th Normal Distribution Function K M Aludaat and M T Alodat Dpartmnt of Statistics Yarmouk Univrsity, Jordan Aludaatkm@hotmailcom and

More information

How fast can we sort? Sorting. Decision-tree model. Decision-tree for insertion sort Sort a 1, a 2, a 3. CS 3343 -- Spring 2009

How fast can we sort? Sorting. Decision-tree model. Decision-tree for insertion sort Sort a 1, a 2, a 3. CS 3343 -- Spring 2009 CS 4 -- Spring 2009 Sorting Crol Wenk Slides courtesy of Chrles Leiserson with smll chnges by Crol Wenk CS 4 Anlysis of Algorithms 1 How fst cn we sort? All the sorting lgorithms we hve seen so fr re comprison

More information

PIN #1 ID FIDUCIAL LOCATED IN THIS AREA TOP VIEW. ccc C SIDE VIEW

PIN #1 ID FIDUCIAL LOCATED IN THIS AREA TOP VIEW. ccc C SIDE VIEW Packag iagrams ruary 20 all W Packag Option : i0 P imnsions in illimtrs ata ht r PI # I IUI OT I TI R (X) 2 OTTO VIW. X Ø s TOP VIW Ø.0 Ø.0 I VIW OT:. IIO TOR PR Y. 99. 2. IIO R I IITR. IIO I UR T T XIU

More information

Graphs on Logarithmic and Semilogarithmic Paper

Graphs on Logarithmic and Semilogarithmic Paper 0CH_PHClter_TMSETE_ 3//00 :3 PM Pge Grphs on Logrithmic nd Semilogrithmic Pper OBJECTIVES When ou hve completed this chpter, ou should be ble to: Mke grphs on logrithmic nd semilogrithmic pper. Grph empiricl

More information

Output: 12 18 30 72 90 87. struct treenode{ int data; struct treenode *left, *right; } struct treenode *tree_ptr;

Output: 12 18 30 72 90 87. struct treenode{ int data; struct treenode *left, *right; } struct treenode *tree_ptr; 50 20 70 10 30 69 90 14 35 68 85 98 16 22 60 34 (c) Execute the algorithm shown below using the tree shown above. Show the exact output produced by the algorithm. Assume that the initial call is: prob3(root)

More information

Indiana Health Coverage Programs

Indiana Health Coverage Programs Indiana Health Coverage Programs Standard Companion Guide Transaction Information Instructions related to Transactions based on ASC X12 Implementation Guides, version 005010 Group Premium Payment for Insurance

More information

Higher. Exponentials and Logarithms 160

Higher. Exponentials and Logarithms 160 hsn uknt Highr Mthmtics UNIT UTCME Eponntils nd Logrithms Contnts Eponntils nd Logrithms 6 Eponntils 6 Logrithms 6 Lws of Logrithms 6 Eponntils nd Logrithms to th Bs 65 5 Eponntil nd Logrithmic Equtions

More information

T1-K. OPEN SLOT RIGID PVC (including cover) OPEN SLOT BLACK RIGID PVC (including cover) 2 PRICE LIST WD 115 STANDARD CARTON - FT LENGTHS PER CARTON

T1-K. OPEN SLOT RIGID PVC (including cover) OPEN SLOT BLACK RIGID PVC (including cover) 2 PRICE LIST WD 115 STANDARD CARTON - FT LENGTHS PER CARTON T1 OPEN SLOT RIGID PVC (including cover) millimeters LENGTHS PER CARTON STANDARD CARTON - FT PER FOOT (3) T1-0506G 1/2 x 5/8 15 x 18 20 120 $3.58 T1-0510G 1/2 x1 15 x 30 20 120 $3.80 T1-0522G 1/2 x 2-1/4

More information

Ne l'aria in questi di fatt'ho un si forte Castel,

Ne l'aria in questi di fatt'ho un si forte Castel, 10 19 29 37 46 54 62 70 N l' in qu ftt'ho un si Csl, oginl ky C l sl N l' su in qu ch, Cn poiv' l ftt' houn si Cipno d Ror v nr, nr l vn, poiv' fossin V n v prcuo ft.. mr, L'r, ch tr'l trui fol lr pugnr

More information

Spring Design ScreenShare Service SDK Instructions

Spring Design ScreenShare Service SDK Instructions Spring Design ScreenShare Service SDK Instructions V1.0.8 Change logs Date Version Changes 2013/2/28 1.0.0 First draft 2013/3/5 1.0.1 Redefined some interfaces according to issues raised by Richard Li

More information

tis, cis cunc - cunc - tis, cis tis, cis cunc - tis, func - def - def - tis, U func - def - func - tis, pa - tri pa - tri pa - tri tu - per - tu -

tis, cis cunc - cunc - tis, cis tis, cis cunc - tis, func - def - def - tis, U func - def - func - tis, pa - tri pa - tri pa - tri tu - per - tu - 1 B Ihsu dulcs cuncts [Supr 1] [Supr 2] Tnr B B B B - B - B - Ih - Ih - Ih - su su su cs cs cs cunc - cunc - cunc - Amns, Bblthèqu Cntl L Agn, ms 162 D, ff 2v-10 ts, ts, ts, E-tr - E-tr - E-tr - n p n

More information

Lecture 3: Diffusion: Fick s first law

Lecture 3: Diffusion: Fick s first law Lctur 3: Diffusion: Fick s first law Today s topics What is diffusion? What drivs diffusion to occur? Undrstand why diffusion can surprisingly occur against th concntration gradint? Larn how to dduc th

More information

sqlpp11 - An SQL Library Worthy of Modern C++

sqlpp11 - An SQL Library Worthy of Modern C++ 2014-09-11 Code samples Prefer compile-time and link-time errors to runtime errors Scott Meyers, Effective C++ (2nd Edition) Code samples Let s look at some code String based In the talk, we looked at

More information

Collaboration in Public H e alth be tw e e n U niv e rs ity of H e id e lbe rg and U niv e rs ity of D ar e s S alaam How t h e c oop e r a t i on e m e r g e d Informal c ont ac t s from e arly 1 9

More information

MS Visual C++ Introduction. Quick Introduction. A1 Visual C++

MS Visual C++ Introduction. Quick Introduction. A1 Visual C++ MS Visual C++ Introduction 1 Quick Introduction The following pages provide a quick tutorial on using Microsoft Visual C++ 6.0 to produce a small project. There should be no major differences if you are

More information

Final Mathematics 5010, Section 1, Fall 2004 Instructor: D.A. Levin

Final Mathematics 5010, Section 1, Fall 2004 Instructor: D.A. Levin Final Mathematics 51, Section 1, Fall 24 Instructor: D.A. Levin Name YOU MUST SHOW YOUR WORK TO RECEIVE CREDIT. A CORRECT ANSWER WITHOUT SHOWING YOUR REASONING WILL NOT RECEIVE CREDIT. Problem Points Possible

More information

Sample CSE8A midterm Multiple Choice (circle one)

Sample CSE8A midterm Multiple Choice (circle one) Sample midterm Multiple Choice (circle one) (2 pts) Evaluate the following Boolean expressions and indicate whether short-circuiting happened during evaluation: Assume variables with the following names

More information

Derivatives and Rates of Change

Derivatives and Rates of Change Section 2.1 Derivtives nd Rtes of Cnge 2010 Kiryl Tsiscnk Derivtives nd Rtes of Cnge Te Tngent Problem EXAMPLE: Grp te prbol y = x 2 nd te tngent line t te point P(1,1). Solution: We ve: DEFINITION: Te

More information

Setting up Auto Import/Export for Version 7

Setting up Auto Import/Export for Version 7 Setting up Auto Import/Export for Version 7 The export feature button is available in the program Maintain Area of the software and is conveniently located in the grid toolbar. This operation allows the

More information

Form: Parental Consent for Blood Donation

Form: Parental Consent for Blood Donation A R C Wt, C 20006 Ptl Ct f B i Ifi T f t y t ll f i y tl t q y t l A R C ly. Pl ll 1-800-RE-CROSS (1-800-733-2767) v. if y v q r t t i I iv t f yr,, t, y v t t: 1. Y y t t l i ly, 2. Y y t t t l i ( k

More information

Basically, logarithmic transformations ask, a number, to what power equals another number?

Basically, logarithmic transformations ask, a number, to what power equals another number? Wht i logrithm? To nwer thi, firt try to nwer the following: wht i x in thi eqution? 9 = 3 x wht i x in thi eqution? 8 = 2 x Biclly, logrithmic trnformtion k, number, to wht power equl nother number? In

More information

Web Content Management System: Page Type Reference Guide

Web Content Management System: Page Type Reference Guide Wb Cnn Mnn : P T Rnc Gu Auu 2012 CM P T Rnc Gu CM P T Rnc Gu...3 W D I Cnc F H?...3 Gnc P...3 Nw H P...7 T Nw R H C P...7 Nw R P...8 Evn H P...10 Invu Evn P...11 H...13 I D P...14 D P...18 Qun n Anw H

More information

On the Oscillation of Nonlinear Fractional Difference Equations

On the Oscillation of Nonlinear Fractional Difference Equations Mathematica Aeterna, Vol. 4, 2014, no. 1, 91-99 On the Oscillation of Nonlinear Fractional Difference Equations M. Reni Sagayaraj, A.George Maria Selvam Sacred Heart College, Tirupattur - 635 601, S.India

More information

Traffic Flow Analysis (2)

Traffic Flow Analysis (2) Traffic Flow Analysis () Statistical Proprtis. Flow rat distributions. Hadway distributions. Spd distributions by Dr. Gang-Ln Chang, Profssor Dirctor of Traffic safty and Oprations Lab. Univrsity of Maryland,

More information

DIPLOMA IN SECURITY MANAGEMENT. Term-End Examination December, 2011 BSEI-007 : TRAIN THE TRAINERS

DIPLOMA IN SECURITY MANAGEMENT. Term-End Examination December, 2011 BSEI-007 : TRAIN THE TRAINERS No. of Printed Pages : 12 BSEI-007 CY) rn CD CD DIPLOMA IN SECURITY MANAGEMENT Term-End Examination December, 2011 BSEI-007 : TRAIN THE TRAINERS Time : 3 hours Maximum Marks : 100 Note : Question No. 1

More information

An E mpir ical Analysis of Stock and B ond M ar ket Liquidity

An E mpir ical Analysis of Stock and B ond M ar ket Liquidity A p r il 2 2, 2 0 0 2 An E mpir ical Analysis of Stock and B ond M ar ket Liquidity Ta r u n Ch o r d ia, A s a n i S a r ka r, a n d A va n id h a r S u b r a h m a n ya m Go iz u e t a B u s in e s s

More information

Outline. Binary Tree

Outline. Binary Tree Outlin Similrity Srh Th Nikolus Augstn Fr Univrsity of Bozn-Bolzno Fulty of Computr Sin DIS 1 Binry Rprsnttion of Tr Binry Brnhs Lowr Boun for th Eit Distn Unit 10 My 17, 2012 Nikolus Augstn (DIS) Similrity

More information

Mobile App Design Project #1 Java Boot Camp: Design Model for Chutes and Ladders Board Game

Mobile App Design Project #1 Java Boot Camp: Design Model for Chutes and Ladders Board Game Mobile App Design Project #1 Java Boot Camp: Design Model for Chutes and Ladders Board Game Directions: In mobile Applications the Control Model View model works to divide the work within an application.

More information

So far, we have looked at homogeneous equations

So far, we have looked at homogeneous equations Chapter 3.6: equations Non-homogeneous So far, we have looked at homogeneous equations L[y] = y + p(t)y + q(t)y = 0. Homogeneous means that the right side is zero. Linear homogeneous equations satisfy

More information

TUNABLE ANTENNAFIER LT/DT SERIES INSTALLATION INSTRUCTIONS

TUNABLE ANTENNAFIER LT/DT SERIES INSTALLATION INSTRUCTIONS Amplifier Kit Contents: Qty Description 1 Antennafier TM Amplifier with CD ROM & USB cable 1 Aluminum L Mounting bracket 1 12VDC Power Supply 2 1/4 x20 Stainless Steel Pan Head 1 DC Injector (LTX/DTX models)

More information

DT105X / PB105 Series

DT105X / PB105 Series DT105 / Series Cash Drawer Trigger & Printer Beeper User's Manual TM951031-05 Contents Information... 1 Technical And Operational Description... 3 Connections Load Test Specifications......... 5 7 8 Communication

More information

Pseudo code Tutorial and Exercises Teacher s Version

Pseudo code Tutorial and Exercises Teacher s Version Pseudo code Tutorial and Exercises Teacher s Version Pseudo-code is an informal way to express the design of a computer program or an algorithm in 1.45. The aim is to get the idea quickly and also easy

More information

B rn m e d s rlig e b e h o v... 3 k o n o m i... 6. S s k e n d e tils k u d o g k o n o m is k frip la d s... 7 F o r ld re b e ta lin g...

B rn m e d s rlig e b e h o v... 3 k o n o m i... 6. S s k e n d e tils k u d o g k o n o m is k frip la d s... 7 F o r ld re b e ta lin g... V e lf rd s s e k re ta ria te t S a g s n r. 1 4 3 4 1 5 B re v id. 9 9 3 9 7 4 R e f. S O T H D ir. tlf. 4 6 3 1 4 0 0 9 s o fie t@ ro s k ild e.d k G o d k e n d e ls e s k rite rie r fo r p riv a tin

More information

Sample Questions Csci 1112 A. Bellaachia

Sample Questions Csci 1112 A. Bellaachia Sample Questions Csci 1112 A. Bellaachia Important Series : o S( N) 1 2 N N i N(1 N) / 2 i 1 o Sum of squares: N 2 N( N 1)(2N 1) N i for large N i 1 6 o Sum of exponents: N k 1 k N i for large N and k

More information

Memory Channel Storage. A Diablo Technologies Whitepaper. April 2015

Memory Channel Storage. A Diablo Technologies Whitepaper. April 2015 A Diablo Technologies Whitepaper!! M a x i m i z i n g Y o u r R O I : VDI with Memory Channel Storage April 2015 Rick y Trigalo, Director of Virtualization Solutions Arch it ecture Rodi Campos, Product

More information

SAN JOSE UNIFIED RETURNING VOLUNTEER DRIVER PACKET

SAN JOSE UNIFIED RETURNING VOLUNTEER DRIVER PACKET SAN JOSE UNIFIED ETUNING VOLUNTEE DIVE PACKET VOLUNTEE DIVE S NAME: STUDENT NAME /ID# SCHOOL: SPOT/ACTIVITY: STUDENT NAME /ID# SCHOOL: SPOT/ACTIVITY: STUDENT NAME /ID# SCHOOL: SPOT/ACTIVITY: STUDENT NAME

More information

Campbellsville (Ky.) vs. LSU Shreveport (La.) 3/19/2015 Kansas City,MO

Campbellsville (Ky.) vs. LSU Shreveport (La.) 3/19/2015 Kansas City,MO Campbellsville (Ky.) vs. LSU Shreveport (La.) 3/19/2015 Kansas City,MO Date: 3/19/2015 Time: 8:00 pm Arena: Municipal Auditorium City, State: Kansas City, MO VISITOR: LSU Shreveport (La.) (21-11) TOT-FG

More information

tariff guide EFFECTIVE DATE 1 April 2013

tariff guide EFFECTIVE DATE 1 April 2013 tariff guide EFFEIVE DATE 1 April 2013 Delivering peace of mind UCH Logistics is a dynamic, customer focused provider of specialist transport services to the airfreight industry. Having been established

More information

PERSONAL TRAVEL INSURANCE

PERSONAL TRAVEL INSURANCE ER RVE INURNE Yr li I IMORN NOIE IMORN NOIE Yr ttti i r t irtt ftr f r trl ir li ili: Yr ttti i r t irtt ftr f r trl ir li ili: INURNE OIY: i ti fll IMORN til f t r NOIE ri l t iti xli i l INURNE t it.

More information

Revenue-optimal Scheduling of Solar Thermal Power Plants with integrated Thermal Storage

Revenue-optimal Scheduling of Solar Thermal Power Plants with integrated Thermal Storage OPTEC Miniworkshop on "Optimal Control for Solar Thermal Power Plants at K.U. Leuven Revenue-optimal Scheduling of Solar Thermal Power Plants with integrated Thermal Storage Michael Wittmann, DLR Overview

More information

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 Oct 4, 2013, p 1 Name: CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 1. (max 18) 4. (max 16) 2. (max 12) 5. (max 12) 3. (max 24) 6. (max 18) Total: (max 100)

More information

Federation of State Boards of Physical Therapy Jurisdiction Licensure Reference Guide Topic: Continuing Competence

Federation of State Boards of Physical Therapy Jurisdiction Licensure Reference Guide Topic: Continuing Competence This document reports CEU requirements for renewal. It describes: Number of required for renewal Who approves continuing education Required courses for renewal Which jurisdictions require active practice

More information

Introduction to Programming (in C++) Loops. Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC

Introduction to Programming (in C++) Loops. Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC Introduction to Programming (in C++) Loops Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC Example Assume the following specification: Input: read a number N > 0 Output:

More information

Example. Introduction to Programming (in C++) Loops. The while statement. Write the numbers 1 N. Assume the following specification:

Example. Introduction to Programming (in C++) Loops. The while statement. Write the numbers 1 N. Assume the following specification: Example Introduction to Programming (in C++) Loops Assume the following specification: Input: read a number N > 0 Output: write the sequence 1 2 3 N (one number per line) Jordi Cortadella, Ricard Gavaldà,

More information

2.3 WINDOW-TO-VIEWPORT COORDINATE TRANSFORMATION

2.3 WINDOW-TO-VIEWPORT COORDINATE TRANSFORMATION 2.3 WINDOW-TO-VIEWPORT COORDINATE TRANSFORMATION A world-coordinate area selected for display is called a window. An area on a display device to which a window is mapped is called a viewport. The window

More information

Excel Invoice Format. SupplierWebsite - Excel Invoice Upload. Data Element Definition UCLA Supplier website (Rev. July 9, 2013)

Excel Invoice Format. SupplierWebsite - Excel Invoice Upload. Data Element Definition UCLA Supplier website (Rev. July 9, 2013) Excel Invoice Format Excel Column Name Cell Format Notes Campus* Supplier Number* Invoice Number* Order Number* Invoice Date* Total Invoice Amount* Total Sales Tax Amount* Discount Amount Discount Percent

More information

Enterprise Data Center A c h itec tu re Consorzio Operativo Gruppo MPS Case S t u d y : P r o g et t o D i sast er R ec o v er y Milano, 7 Febbraio 2006 1 Il G r u p p o M P S L a B a n c a M o n t e d

More information

Physics 231 Lecture 15

Physics 231 Lecture 15 Physics 31 ecture 15 Main points of today s lecture: Simple harmonic motion Mass and Spring Pendulum Circular motion T 1/f; f 1/ T; ω πf for mass and spring ω x Acos( ωt) v ωasin( ωt) x ax ω Acos( ωt)

More information

Barrier Options. Peter Carr

Barrier Options. Peter Carr Barrier Options Peter Carr Head of Quantitative Financial Research, Bloomberg LP, New York Director of the Masters Program in Math Finance, Courant Institute, NYU March 14th, 2008 What are Barrier Options?

More information

ttitte Gazette of e3tattlict

ttitte Gazette of e3tattlict t-fw1t ii. Ticr-@ ( 7)-04/0007/2003-05 REGISTERED No. DL(N)-04/0007/2003-05 ttitte Gazette of e3tattlict tfltuifictimmax Trift-TTT t Mcb113/410 PUBLISHED BY AUTHORITY Tr 31 Se'vl Wiqt 19 Wiq0 25, 2013

More information