Multiple patterns. Why? Algorithms. Aho Corasick (AC) Text Algorithms (4AP) Lecture 3.2: Multiple pattern matching. Jaak Vilo 2008 fall
|
|
- Blaise Moody
- 6 years ago
- Views:
Transcription
1 Multipl pattrn Txt Algoritm (AP) Lctur.: Multipl pattrn matcing Jaak Vilo 8 fall S {P} Jaak Vilo MTAT..9 Txt Algoritm Wy? Multipl pattrn Higligt multipl diffrnt arc word on t pag Viru dtction filtr for viru ignatur Spam filtr Scannr in compilr nd to arc for multipl kyword Filtr out top word or diallowd word Map many DNA primr on t gnom Algoritm Ao Coraick (arc for multipl word) Gnralization of Knut Morri Pratt Commntz Waltr Gnralization i of Boyr Moor & AC Wu and Manbr improvmnt ovr C W Ao Coraick (AC) Alfrd V. Ao and Margart J. Coraick (Bll Lab, Murray Hill, NJ) Efficint tring matcing. An aid to bibliograpic arc. Communication of t ACM, Volum 8, Iu 6, p (Jun 97) ACM:DOI PDF ABSTRACT Ti papr dcrib a impl, fficint algoritm to locat all occurrnc of any of a finit numbr of kyword in a tring of txt. T algoritm conit of contructing a finit tat pattrn matcing macin from t kyword and tn uing t pattrn matcing macin to proc t txt tring in a ingl pa. Contruction of t pattrn matcing macin tak tim proportional to t um of t lngt of t kyword. T numbr of tat tranition mad by t pattrn matcing macin in procing t txt tring i indpndnt of t numbr of kyword. T algoritm a bn ud to improv t pd of a library bibliograpic arc program by a factor of to. Gnralization of KMP for many pattrn Txt S lik bfor. St of pattrn P = { P,.., P k } Total lngt P = m = Σ i=..k m i Problm: find all occurrnc of any of t P i P from S
2 Ida Crat an automaton from all pattrn Matc t automaton PATRICIA tri D. R. Morrion, "PATRICIA: Practical Algoritm To Rtriv Information Codd In Alpanumric", Journal of t ACM (968). Abtract PATRICIA i an algoritm wic provid a flxibl man of toring, indxing, and rtriving information in a larg fil, wic i conomical of indx pac and of rindxing tim. It do not rquir rarrangmnt of txt or indx a nw matrial i addd. It rquir a minimum rtriction of format of txt and of ky; it i xtrmly flxibl in t varity of ky it will rpond to. It rtriv information in rpon to ky furnid by t ur wit a quantity of computation wic a a bound wic dpnd linarly on t lngt of ky and t numbr of tir propr occurrnc and i otrwi indpndnt of t iz of t library. It a bn implmntd in vral variation a FORTRAN program for t CDC 6, utilizing dik fil torag of txt. It a bn applid to vral larg information rtrival problm and will b applid to otr. ACM:DOI PDF Word tri a good data tructur to rprnt a t of word (.g. a dictionary). tri (data tructur) Dfinition: A tr for toring tring in wic tr i on nod for vry commonprffix prffix. T tring ar tord in xtra laf nod. S alo digital tr, digital arc tr, dirctd acyclic word grap, compact DAWG, Patricia tr, uffix tr. Not: T nam com from rtrival and i pronouncd, "tr." To tt for a word p, only O( p ) tim i ud no mattr ow many word ar in t dictionary... Tri for P={,, i, r} Tri for P={,, i, r} i r 7 6 8
3 How to arc for word lik, ila, i. Do t occur in t tri? r 8 i 6 7 W crat an automaton M P for a t of tring P. Finit tat macin: rad acaractr from txt, and cang t tat of t automaton bad on t tat tranition... Main link: goto[j,c] rad a caractr c from txt and go from a tat j to tat goto[j,c]. If tr ar no goto[j,c] link on caractr c from tat j, u fail[j]. Rport t output. Rport all word tat av bn found in tat j. 9 How to arc for word lik, ila, i. Do t occur in t tri? AC matcing goto[,i] = 6. ; fail[7] =, fail[8] =, fail[]=. Output tabl tat output[j], 7 i 9 r 9 r 8 NOT {, } i 6 7 Input: Txt S[..n] and an AC automaton M for pattrn t P Output: Occurrnc of pattrn from P in S (lat poition). tat =. for i=..n do. wil (goto[tat,s[i]]== ) and (fail[tat]!=tat) do. tat = fail[tat]. tat = goto[tat,s[i]] 6. if ( output[tat] not mpty ) 7. tn rport matc output[tat] at poition i Algoritm Ao Coraick prprocing I (TRIE) Input: P = { P,..., P k } Output: goto[] and partial output[] Aum: output() i mpty wn a tat i cratd; goto[,a] i not dfind. procdur ntr(a,..., a m ) /* P i = a,..., a m */ bgin. =; j=;. wil goto[,a j ] do // follow xiting pat. = goto[,a j ];. j = j+;. for p=j to m do // add nw pat (tat) 6. nw = nw+ ; 7. goto[,a p ] = nw; 8. = nw; 9. output[] = a,..., a m nd bgin. nw =. for i= to k do ntr( P i ). for a Σ do. if goto[,a] = tn goto[,a] = ; nd Prprocing II for AC (FAIL) quu = for a Σ do if goto[,a] tn nquu( quu, goto[,a] ) fail[ goto[,a] ] = wil quu r = tak( quu ) for a Σ do if goto[r,a] tn = goto[ r, a ] nquu( quu, ) // bradt firt arc tat = fail[r] wil goto[tat,a] = do tat = fail[tat] fail[] = goto[tat,a] output[] = output[] + output[ fail[] ]
4 Corrctn AC algoritm i corrct... Lt tring t "point" from initial tat to tat j. Mut ow tat fail[j] point to longt uffix tat i alo a prfix of om word in P. Look at t articl... AC matcing tim complxity Torm For matcing t M P on txt S, S =n, l tan n tranition witin M ar mad. Proof Compar to KMP. Tr i at mot n goto tp. Cannot b mor tan n Fail tp. In total tr can b l tan n tranition in M. Individual nod (goto) Full tabl Lit Binary arc tr(?) Som otr indx? AC tougt Scal for many tring imultanouly. For vry many pattrn arc tim (of grp) improv(??) S Wu Manbr articl Wn k grow, tn mor fail[] tranition ar mad (wy?) But alway l tan n. If all goto[j,a] ar indxd in an array, tn t iz i M P * Σ, and t running tim of AC i O(n). Wn k and c ar big, on can u lit or tr for toring tranition function. Tn, O(n log(min(k,c)) ). Advancd AC Prcalculat t nxt tat tranition corrctly for vry poibl caractr in alpabt Can b good for ort pattrn Commntz Waltr Gnralization of Boyr Moor for multipl qunc arc Bat Commntz Waltr A String Matcing Algoritm Fat on t Avrag Procding of t 6t Colloquium, on Automata, Languag and Programming. Lctur Not In Computr Scinc; Vol. 7, 979. pp. 8, Springr Vrlag
5 C W dcription Ao and Coraick [AC7] prntd a linar tim algoritm for ti problm, bad on an automata approac. Ti algoritm rv a t bai for t UNIX tool fgrp. A linar tim algoritm i optimal in t wort ca, but a t rgular tring arcing algoritm by Boyr and Moor [BM77] dmontratd, it i poibl to actually kip a larg portion of t txt wil arcing, lading to fatr tan linar algoritm in t avrag ca. Commntz Waltr [CW79] Commntz Waltr [CW79] prntd an algoritm for t multi pattrn matcing problm tat combin t Boyr Moor tcniqu wit t Ao Coraick algoritm. T Commntz Waltr algoritm i ubtantially fatr tan t Ao Coraick algoritm in practic. Hum [Hu9] dignd a tool calld gr bad on ti algoritm, and vrion. of fgrp by t GNU projct [Ha9] i uing it. Baza Yat [Ba89] alo gav an algoritm tat combin t Boyr Moor Horpool algoritm [Ho8] (wic i a ligt variation of t claical Boyr Moor algoritm) wit t Ao Coraick algoritm. Ida of C W Build a backward tri of all kyword Matc from t nd until mimatc... Dtrmin t ift bad on t combination of uritic Wat ar t poibl limitation for C W? Many pattrn, mall alpabt minimal kip Wat can b don diffrntly? Wu Manbr Wu S., and U. Manbr, "A Fat Algoritm for Multi Pattrn Sarcing," Tcnical Rport TR 9 7, Dpartmnt of Computr Scinc, Univrity of Arizona (May 99). Citr: ttp://citr.it.pu.du/wu9fat.tml [Potcript] W prnt a diffrnt approac tat alo u t ida of Boyr and Moor. Ouralgoritm i quitimpl, andtmainnginofit ngin it i givn latr in t papr. An arlir vrion of ti algoritm wa part of t cond vrion of agrp [WM9a, WM9b], altoug t algoritm a not bn dicud in [WM9b] and only brifly in [WM9a]. T currnt vrion i ud in glimp [MW9]. T dign of t algoritm concntrat on typical arc ratr tan on wort ca bavior. Ti allow u to mak om nginring dciion tat w bliv ar crucial to making t algoritm ignificantly fatr tan otr algoritm in practic. Ky ida Main problm wit Boyr Moor and many pattrn i tat, t mor tr ar pattrn, t ortr bcom t poibl ift... Wu and Manbr: cck vral caractr imultanouly, i.. incra t alpabt.
6 Multipl Sift AND Intad of looking at caractr from t txt on by on, w conidr tm in block of iz B. log c M; in practic, w u itr B = or B =. T SHIFT tabl play t am rol a in t rgular Boyr Moor algoritm, xcpt tat it dtrmin t ift bad on t lat B caractr ratr tan jut on caractr. P={P, P, P, P}. Gnraliz Sift AND Bit = Start = P P P P Matc= Wat about otr poibiliti? tring Gnralization of Factor arc (?) A poibility for a projct? tring tring 6
7 tring Factor Oracl Factor Oracl: af ift Factor Oracl: Sift to matc prfix of P? Factor oracl Contruction of factor Oracl 7
8 Factor oracl Allauzn, C., Crocmor, M., and Raffinot, M Factor Oracl: A Nw Structur for Pattrn Matcing. In Procding of t 6t Confrnc on Currnt Trnd in tory and Practic of informatic on tory and Practic of informatic (Novmbr 7 Dcmbr, 999). J. Pavlka, G. Tl, and M. Bartok, Ed. Lctur Not In Computr Scinc, vol. 7. Springr Vrlag, London, 9. ttp://portal.acm.org/citation.cfm?id= &coll=guide&dl=g UIDE&CFID=9&CFTOKEN=686# ttp://www igm.univ mlv.fr/~allauzn/work/ofm.p 8
Tries and Suffix Trees. Inge Li Gørtz
Tri nd Suffix Tr Ing Li Gørtz String indxing prom String mtcing prom. Givn tring T (txt) nd P (pttrn) ovr n pt Σ, rport trting poition of occurrnc of P in T. Finit utomton: O(mΣ + n) tim nd pc KMP: O(m+n)
More informationTrigonometric functions
Robrto s Nots on Diffrntial Calculus Captr 5: Drivativs of transcndntal functions Sction 5 Drivativs of Trigonomtric functions Wat you nd to know alrady: Basic trigonomtric limits, t dfinition of drivativ,
More informationA High Throughput String Matching Architecture for Intrusion Detection and Prevention
A Hig Trougput tring Matcing Arcitecture for Intruion Detection and Prevention Lin Tan, Timoty erwood Appeared in ICA 25 Preented by: aile Kumar Dicuion Leader: Max Podleny Overview Overview of ID/IP ytem»
More information3-2-1 ANN Architecture
ARTIFICIAL NEURAL NETWORKS (ANNs) Profssor Tom Fomby Dpartmnt of Economics Soutrn Mtodist Univrsity Marc 008 Artificial Nural Ntworks (raftr ANNs) can b usd for itr prdiction or classification problms.
More informationIndexed Search Tree (Trie)
Indxd Sarch Tr (Tri) Fawzi Emad Chau-Wn Tsng Dpartmnt of Computr Scinc Univrsity of Maryand, Cog Park Indxd Sarch Tr (Tri) Spcia cas of tr Appicab whn Ky C can b dcomposd into a squnc of subkys C 1, C
More informationA High Throughput String Matching Architecture for Intrusion Detection and Prevention
A Hig Trougput String Matcing Arcitctur for Intruion Dtction and Prvntion Lin Tan Timoty Srwood lintan@c.uiuc.du, rwood@c.ucb.du Dpartmnt of Computr Scinc Univrity of California, Santa Barbara Abtract
More informationENGR 7181 LECTURE NOTES WEEK 3 Dr. Amir G. Aghdam Concordia University
ENGR 78 LECTURE NOTES WEEK Dr. ir G. ga Concoria Univrity DT Equivalnt Tranfr Function for SSO Syt - So far w av tui DT quivalnt tat pac ol uing tp-invariant tranforation. n t ca of SSO yt on can u t following
More informationMinimum Spanning Trees
Yufi Tao ITEE Univrsity of Qunslan In tis lctur, w will stuy anotr classic prolm: finin a minimum spannin tr of an unirct wit rap. Intrstinly, vn tou t prolm appars ratr iffrnt from SSSP (sinl sourc sortst
More informationText: WMM, Chapter 5. Sections , ,
Lcturs 6 - Continuous Probabilit Distributions Tt: WMM, Chaptr 5. Sctions 6.-6.4, 6.6-6.8, 7.-7. In th prvious sction, w introduc som of th common probabilit distribution functions (PDFs) for discrt sampl
More informationCPE702 Algorithm Analysis and Design Week 11 String Processing
CPE702 Agorithm Anaysis and Dsign Wk 11 String Procssing Prut Boonma prut@ng.cmu.ac.th Dpartmnt of Computr Enginring Facuty of Enginring, Chiang Mai Univrsity Basd on Sids by M.T. Goodrich and R. Tamassia
More informationCS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages:
CS 6353 Compilr Construction, Homwork #1 1. Writ rgular xprssions for th following informally dscribd languags: a. All strings of 0 s and 1 s with th substring 01*1. Answr: (0 1)*01*1(0 1)* b. All strings
More informationPhysics 43 HW #9 Chapter 40 Key
Pysics 43 HW #9 Captr 4 Ky Captr 4 1 Aftr many ours of dilignt rsarc, you obtain t following data on t potolctric ffct for a crtain matrial: Wavlngt of Ligt (nm) Stopping Potntial (V) 36 3 4 14 31 a) Plot
More information6. Negative Feedback in Single- Transistor Circuits
Lctur 8: Intrductin t lctrnic analg circuit 36--366 6. Ngativ Fdback in Singl- Tranitr ircuit ugn Paprn, 2008 Our aim i t tudy t ffct f ngativ fdback n t mall-ignal gain and t mall-ignal input and utput
More informationPropositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018
Propositional Logic Combinatorial Problm Solving (CPS) Albrt Olivras Enric Rodríguz-Carbonll May 17, 2018 Ovrviw of th sssion Dfinition of Propositional Logic Gnral Concpts in Logic Rduction to SAT CNFs
More informationOutlines: Graphs Part-4. Applications of Depth-First Search. Directed Acyclic Graph (DAG) Generic scheduling problem.
Outlins: Graps Part-4 Applications o DFS Elmntary Grap Aloritms Topoloical Sort o Dirctd Acyclic Grap Stronly Connctd Componnts PART-4 1 2 Applications o Dpt-First Sarc Topoloical Sort: Usin dpt-irst sarc
More informationdy 1. If fx ( ) is continuous at x = 3, then 13. If y x ) for x 0, then f (g(x)) = g (f (x)) when x = a. ½ b. ½ c. 1 b. 4x a. 3 b. 3 c.
AP CALCULUS BC SUMMER ASSIGNMENT DO NOT SHOW YOUR WORK ON THIS! Complt ts problms during t last two wks of August. SHOW ALL WORK. Know ow to do ALL of ts problms, so do tm wll. Itms markd wit a * dnot
More informationCase Study 1 PHA 5127 Fall 2006 Revised 9/19/06
Cas Study Qustion. A 3 yar old, 5 kg patint was brougt in for surgry and was givn a /kg iv bolus injction of a muscl rlaxant. T plasma concntrations wr masurd post injction and notd in t tabl blow: Tim
More informationCPS 616 W2017 MIDTERM SOLUTIONS 1
CPS 616 W2017 MIDTERM SOLUTIONS 1 PART 1 20 MARKS - MULTIPLE CHOICE Instructions Plas ntr your answrs on t bubbl st wit your nam unlss you ar writin tis xam at t Tst Cntr, in wic cas you sould just circl
More informationExponential Functions
Eponntial Functions Dinition: An Eponntial Function is an unction tat as t orm a, wr a > 0. T numbr a is calld t bas. Eampl: Lt i.. at intgrs. It is clar wat t unction mans or som valus o. 0 0,,, 8,,.,.
More informationLecture 4: Parsing. Administrivia
Adminitrivia Lctur 4: Paring If you do not hav a group, pla pot a rqut on Piazzza ( th Form projct tam... itm. B ur to updat your pot if you find on. W will aign orphan to group randomly in a fw day. Programming
More informationLecture 18 - Semiconductors - continued
Lctur 18 - Smiconductors - continud Lctur 18: Smiconductors - continud (Kittl C. 8) + a - Donors and accptors Outlin Mor on concntrations of lctrons and ols in Smiconductors Control of conductivity by
More informationSource code. where each α ij is a terminal or nonterminal symbol. We say that. α 1 α m 1 Bα m+1 α n α 1 α m 1 β 1 β p α m+1 α n
Adminitrivia Lctur : Paring If you do not hav a group, pla pot a rqut on Piazzza ( th Form projct tam... itm. B ur to updat your pot if you find on. W will aign orphan to group randomly in a fw day. Programming
More information(1) Then we could wave our hands over this and it would become:
MAT* K285 Spring 28 Anthony Bnoit 4/17/28 Wk 12: Laplac Tranform Rading: Kohlr & Johnon, Chaptr 5 to p. 35 HW: 5.1: 3, 7, 1*, 19 5.2: 1, 5*, 13*, 19, 45* 5.3: 1, 11*, 19 * Pla writ-up th problm natly and
More informationINTRODUCTION TO AUTOMATIC CONTROLS INDEX LAPLACE TRANSFORMS
adjoint...6 block diagram...4 clod loop ytm... 5, 0 E()...6 (t)...6 rror tady tat tracking...6 tracking...6...6 gloary... 0 impul function...3 input...5 invr Laplac tranform, INTRODUCTION TO AUTOMATIC
More informationUniversity of Washington Department of Chemistry Chemistry 453 Winter Quarter 2014 Lecture 20: Transition State Theory. ERD: 25.14
Univrsity of Wasinton Dpartmnt of Cmistry Cmistry 453 Wintr Quartr 04 Lctur 0: Transition Stat Tory. ERD: 5.4. Transition Stat Tory Transition Stat Tory (TST) or ctivatd Complx Tory (CT) is a raction mcanism
More information1 Minimum Cut Problem
CS 6 Lctur 6 Min Cut and argr s Algorithm Scribs: Png Hui How (05), Virginia Dat: May 4, 06 Minimum Cut Problm Today, w introduc th minimum cut problm. This problm has many motivations, on of which coms
More informationHigher order derivatives
Robrto s Nots on Diffrntial Calculus Chaptr 4: Basic diffrntiation ruls Sction 7 Highr ordr drivativs What you nd to know alrady: Basic diffrntiation ruls. What you can larn hr: How to rpat th procss of
More information4037 ADDITIONAL MATHEMATICS
CAMBRIDGE INTERNATIONAL EXAMINATIONS GCE Ordinary Lvl MARK SCHEME for th Octobr/Novmbr 0 sris 40 ADDITIONAL MATHEMATICS 40/ Papr, maimum raw mark 80 This mark schm is publishd as an aid to tachrs and candidats,
More informationOutline. Heat Exchangers. Heat Exchangers. Compact Heat Exchangers. Compact Heat Exchangers II. Heat Exchangers April 18, ME 375 Heat Transfer 1
Hat Exangr April 8, 007 Hat Exangr Larry artt Manial Engrg 375 Hat ranfr April 8, 007 Outl Bai ida f at xangr Ovrall at tranfr ffiint Lg-man tmpratur diffrn mtd Efftivn NU mtd ratial nidratin Hat Exangr
More informationNEW APPLICATIONS OF THE ABEL-LIOUVILLE FORMULA
NE APPLICATIONS OF THE ABEL-LIOUVILLE FORMULA Mirca I CÎRNU Ph Dp o Mathmatics III Faculty o Applid Scincs Univrsity Polithnica o Bucharst Cirnumirca @yahoocom Abstract In a rcnt papr [] 5 th indinit intgrals
More informationCOMPSCI 230 Discrete Math Trees March 21, / 22
COMPSCI 230 Dict Math Mach 21, 2017 COMPSCI 230 Dict Math Mach 21, 2017 1 / 22 Ovviw 1 A Simpl Splling Chck Nomnclatu 2 aval Od Dpth-it aval Od Badth-it aval Od COMPSCI 230 Dict Math Mach 21, 2017 2 /
More informationIntroduction to Arithmetic Geometry Fall 2013 Lecture #20 11/14/2013
18.782 Introduction to Arithmtic Gomtry Fall 2013 Lctur #20 11/14/2013 20.1 Dgr thorm for morphisms of curvs Lt us rstat th thorm givn at th nd of th last lctur, which w will now prov. Thorm 20.1. Lt φ:
More informationCS 103 BFS Alorithm. Mark Redekopp
CS 3 BFS Aloritm Mrk Rkopp Brt-First Sr (BFS) HIGHLIGHTED ALGORITHM 3 Pt Plnnin W'v sn BFS in t ontxt o inin t sortst pt trou mz? S?? 4 Pt Plnnin W xplor t 4 niors s on irtion 3 3 3 S 3 3 3 3 3 F I you
More informationWEEK 3 Effective Stress and Pore Water Pressure Changes
WEEK 3 Effctiv Str and Por Watr Prur Chang 5. Effctiv tr ath undr undraind condition 5-1. Dfinition of ffctiv tr: A rvi A you mut hav larnt that th ffctiv tr, σ, in oil i dfind a σ σ u Whr σ i th total
More informationFlow graph parsing and its application in (business) process management and SOA
IBM Rarch Zurich Proc Managmnt Tchnologi Flow graph paring and it application in (buin) proc managmnt and SOA Hagn Völzr Joint work with Jui Vanhatalo and Artm Polyvyanyy IBM Rarch Zurich Proc Managmnt
More informationCalculation of electromotive force induced by the slot harmonics and parameters of the linear generator
Calculation of lctromotiv forc inducd by th lot harmonic and paramtr of th linar gnrator (*)Hui-juan IU (**)Yi-huang ZHANG (*)School of Elctrical Enginring, Bijing Jiaotong Univrity, Bijing,China 8++58483,
More informationThe Design, Implementation and Initial Evaluation of an Advanced Knowledge-based Process Scheduler
Th Dign, Implmntation and Initial Evaluation of an Advancd Knowldg-bad roc Schdulr Sukanya Suranauwarat Hido Taniguchi Graduat School of Information Scinc and Elctrical Enginring, Kyuhu Univrity, Fukuoka-hi,
More informationThe pn junction: 2 Current vs Voltage (IV) characteristics
Th pn junction: Currnt vs Voltag (V) charactristics Considr a pn junction in quilibrium with no applid xtrnal voltag: o th V E F E F V p-typ Dpltion rgion n-typ Elctron movmnt across th junction: 1. n
More informationENGR 7181 LECTURE NOTES WEEK 5 Dr. Amir G. Aghdam Concordia University
ENGR 78 LETURE NOTES WEEK 5 r. mir G. dam onordia Univrity ilinar Tranformation - W will now introdu anotr mtod of tranformation from -plan to t - plan and vi vra. - Ti tranformation i bad on t trapoidal
More informationDerangements and Applications
2 3 47 6 23 Journal of Intgr Squncs, Vol. 6 (2003), Articl 03..2 Drangmnts and Applications Mhdi Hassani Dpartmnt of Mathmatics Institut for Advancd Studis in Basic Scincs Zanjan, Iran mhassani@iasbs.ac.ir
More informationStrongly Connected Components
Strongly Connctd Componnts Lt G = (V, E) b a dirctd graph Writ if thr is a path from to in G Writ if and is an quivalnc rlation: implis and implis s quivalnc classs ar calld th strongly connctd componnts
More informationAlgorithms. Algorithms 5.2 TRIES. R-way tries ternary search tries character-based operations ROBERT SEDGEWICK KEVIN WAYNE
Agoritm ROBERT SEDGEWICK KEVIN WAYNE 5.2 TRIES Agoritm F O U R T H E D I T I O N R-way tri trnary arc tri caractr-bad opration ROBERT SEDGEWICK KEVIN WAYNE ttp://ag4.c.princton.du Lat updatd on 12/4/18
More information(Upside-Down o Direct Rotation) β - Numbers
Amrican Journal of Mathmatics and Statistics 014, 4(): 58-64 DOI: 10593/jajms0140400 (Upsid-Down o Dirct Rotation) β - Numbrs Ammar Sddiq Mahmood 1, Shukriyah Sabir Ali,* 1 Dpartmnt of Mathmatics, Collg
More informationMAT 270 Test 3 Review (Spring 2012) Test on April 11 in PSA 21 Section 3.7 Implicit Derivative
MAT 7 Tst Rviw (Spring ) Tst on April in PSA Sction.7 Implicit Drivativ Rmmbr: Equation of t tangnt lin troug t point ( ab, ) aving slop m is y b m( a ). dy Find t drivativ y d. y y. y y y. y 4. y sin(
More informationPoisson process Markov process
E2200 Quuing hory and lraffic 2nd lcur oion proc Markov proc Vikoria Fodor KTH Laboraory for Communicaion nwork, School of Elcrical Enginring 1 Cour oulin Sochaic proc bhind quuing hory L2-L3 oion proc
More informationChapter Taylor Theorem Revisited
Captr 0.07 Taylor Torm Rvisitd Atr radig tis captr, you sould b abl to. udrstad t basics o Taylor s torm,. writ trascdtal ad trigoomtric uctios as Taylor s polyomial,. us Taylor s torm to id t valus o
More informationTransfer function and the Laplace transformation
Lab No PH-35 Porland Sa Univriy A. La Roa Tranfr funcion and h Laplac ranformaion. INTRODUTION. THE LAPLAE TRANSFORMATION L 3. TRANSFER FUNTIONS 4. ELETRIAL SYSTEMS Analyi of h hr baic paiv lmn R, and
More informationHydrogen Atom and One Electron Ions
Hydrogn Atom and On Elctron Ions Th Schrödingr quation for this two-body problm starts out th sam as th gnral two-body Schrödingr quation. First w sparat out th motion of th cntr of mass. Th intrnal potntial
More informationL 1 = L G 1 F-matrix: too many F ij s even at quadratic-only level
5.76 Lctur #6 //94 Pag of 8 pag Lctur #6: Polyatomic Vibration III: -Vctor and H O Lat tim: I got tuck on L G L mut b L L L G F-matrix: too many F ij vn at quadratic-only lvl It obviou! Intrnal coordinat:
More informationLecture 2: Discrete-Time Signals & Systems. Reza Mohammadkhani, Digital Signal Processing, 2015 University of Kurdistan eng.uok.ac.
Lctur 2: Discrt-Tim Signals & Systms Rza Mohammadkhani, Digital Signal Procssing, 2015 Univrsity of Kurdistan ng.uok.ac.ir/mohammadkhani 1 Signal Dfinition and Exampls 2 Signal: any physical quantity that
More informationWhere k is either given or determined from the data and c is an arbitrary constant.
Exponntial growth and dcay applications W wish to solv an quation that has a drivativ. dy ky k > dx This quation says that th rat of chang of th function is proportional to th function. Th solution is
More informationDISCRETE TIME FOURIER TRANSFORM (DTFT)
DISCRETE TIME FOURIER TRANSFORM (DTFT) Th dicrt-tim Fourir Tranform x x n xn n n Th Invr dicrt-tim Fourir Tranform (IDTFT) x n Not: ( ) i a complx valud continuou function = π f [rad/c] f i th digital
More informationLecture 37 (Schrödinger Equation) Physics Spring 2018 Douglas Fields
Lctur 37 (Schrödingr Equation) Physics 6-01 Spring 018 Douglas Filds Rducd Mass OK, so th Bohr modl of th atom givs nrgy lvls: E n 1 k m n 4 But, this has on problm it was dvlopd assuming th acclration
More informationAP Calculus BC AP Exam Problems Chapters 1 3
AP Eam Problms Captrs Prcalculus Rviw. If f is a continuous function dfind for all ral numbrs and if t maimum valu of f() is 5 and t minimum valu of f() is 7, tn wic of t following must b tru? I. T maimum
More informationThe second condition says that a node α of the tree has exactly n children if the arity of its label is n.
CS 6110 S14 Hanout 2 Proof of Conflunc 27 January 2014 In this supplmntary lctur w prov that th λ-calculus is conflunt. This is rsult is u to lonzo Church (1903 1995) an J. arkly Rossr (1907 1989) an is
More informationDual Nature of Matter and Radiation
Higr Ordr Tinking Skill Qustions Dual Natur of Mattr and Radiation 1. Two bas on of rd ligt and otr of blu ligt of t sa intnsity ar incidnt on a tallic surfac to it otolctrons wic on of t two bas its lctrons
More informationMultiple Short Term Infusion Homework # 5 PHA 5127
Multipl Short rm Infusion Homwork # 5 PHA 527 A rug is aministr as a short trm infusion. h avrag pharmacokintic paramtrs for this rug ar: k 0.40 hr - V 28 L his rug follows a on-compartmnt boy mol. A 300
More informationBrief Introduction to Statistical Mechanics
Brif Introduction to Statistical Mchanics. Purpos: Ths nots ar intndd to provid a vry quick introduction to Statistical Mchanics. Th fild is of cours far mor vast than could b containd in ths fw pags.
More informationThe Quantum Efficiency and Thermal Emittance of Metal Cathodes
T Quantum fficincy and Trmal mittanc of Mtal Catods David H. Dowll Tory Sminar Jun, 6 I. Introduction II. Q and Trmal mittanc Tory III. Ral World Issus Surfac Rougnss Masurmnts Diamond Turning vs. Polising
More informationInternet Algorithms. (Oblivious) Routing. Lecture 10 06/24/11. Wereferto. demands(requirements), forall vertex pairs,,
Intrnt Algoritms Ltur 10 06/24/11 (Olivious) Routing Givn a ntwork, witdglngtsl and dmands(rquirmnts), forall vrtx pairs,, afasilroutingisa multiommodityflow, satisfying t rquirmnts, i..,,,,, Wrfrto,,,,,
More informationProbability Translation Guide
Quick Guid to Translation for th inbuilt SWARM Calculator If you s information looking lik this: Us this statmnt or any variant* (not th backticks) And this is what you ll s whn you prss Calculat Th chancs
More information1. State whether the function is an exponential growth or exponential decay, and describe its end behaviour using limits.
Questions 1. State weter te function is an exponential growt or exponential decay, and describe its end beaviour using its. (a) f(x) = 3 2x (b) f(x) = 0.5 x (c) f(x) = e (d) f(x) = ( ) x 1 4 2. Matc te
More informationProblem Set 6 Solutions
6.04/18.06J Mathmatics for Computr Scinc March 15, 005 Srini Dvadas and Eric Lhman Problm St 6 Solutions Du: Monday, March 8 at 9 PM in Room 3-044 Problm 1. Sammy th Shark is a financial srvic providr
More informationλ = 2L n Electronic structure of metals = 3 = 2a Free electron model Many metals have an unpaired s-electron that is largely free
5.6 4 Lctur #4-6 pag Elctronic structur of mtals r lctron modl Many mtals av an unpaird s-lctron tat is largly fr Simplst modl: Particl in a box! or a cubic box of lngt L, ψ ( xyz) 8 xπ ny L L L n x π
More information[ ] 1+ lim G( s) 1+ s + s G s s G s Kacc SYSTEM PERFORMANCE. Since. Lecture 10: Steady-state Errors. Steady-state Errors. Then
SYSTEM PERFORMANCE Lctur 0: Stady-tat Error Stady-tat Error Lctur 0: Stady-tat Error Dr.alyana Vluvolu Stady-tat rror can b found by applying th final valu thorm and i givn by lim ( t) lim E ( ) t 0 providd
More informationPrelab Lecture Chmy 374 Thur., March 22, 2018 Edited 22mar18, 21mar18
Prlab Lctur Cmy 374 Tur., Marc, 08 Editd mar8, mar8 LA REPORT:From t ClassicalTrmoISub-7.pdf andout: Was not a dry lab A partially complt spradst was postd on wb Not ruird 3 If solid is pur X Partial
More informationSCALING OF SYNCHROTRON RADIATION WITH MULTIPOLE ORDER. J. C. Sprott
SCALING OF SYNCHROTRON RADIATION WITH MULTIPOLE ORDER J. C. Sprott PLP 821 Novmbr 1979 Plasma Studis Univrsity of Wisconsin Ths PLP Rports ar informal and prliminary and as such may contain rrors not yt
More informationFinding low cost TSP and 2-matching solutions using certain half integer subtour vertices
Finding low cost TSP and 2-matching solutions using crtain half intgr subtour vrtics Sylvia Boyd and Robrt Carr Novmbr 996 Introduction Givn th complt graph K n = (V, E) on n nods with dg costs c R E,
More informationProblem Statement. Definitions, Equations and Helpful Hints BEAUTIFUL HOMEWORK 6 ENGR 323 PROBLEM 3-79 WOOLSEY
Problm Statmnt Suppos small arriv at a crtain airport according to Poisson procss with rat α pr hour, so that th numbr of arrivals during a tim priod of t hours is a Poisson rv with paramtr t (a) What
More informationLecture Outline. Skin Depth Power Flow 8/7/2018. EE 4347 Applied Electromagnetics. Topic 3e
8/7/018 Cours Instructor Dr. Raymond C. Rumpf Offic: A 337 Phon: (915) 747 6958 E Mail: rcrumpf@utp.du EE 4347 Applid Elctromagntics Topic 3 Skin Dpth & Powr Flow Skin Dpth Ths & Powr nots Flow may contain
More informationInternational Journal of Scientific & Engineering Research, Volume 6, Issue 7, July ISSN
Intrnational Journal of Scintific & Enginring Rsarch, Volum 6, Issu 7, July-25 64 ISSN 2229-558 HARATERISTIS OF EDGE UTSET MATRIX OF PETERSON GRAPH WITH ALGEBRAI GRAPH THEORY Dr. G. Nirmala M. Murugan
More informationcycle that does not cross any edges (including its own), then it has at least
W prov th following thorm: Thorm If a K n is drawn in th plan in such a way that it has a hamiltonian cycl that dos not cross any dgs (including its own, thn it has at last n ( 4 48 π + O(n crossings Th
More informationTOPOLOGY DESIGN OF STRUCTURE LOADED BY EARTHQUAKE. Vienna University of Technology
Bluchr Mchanical Enginring Procdings May 2014, vol. 1, num. 1 www.procdings.bluchr.com.br/vnto/10wccm TOPOLOGY DESIG OF STRUCTURE LOADED BY EARTHQUAKE P. Rosko 1 1 Cntr of Mchanics and Structural Dynamics,
More informationStatistical Thermodynamics: Sublimation of Solid Iodine
c:374-7-ivap-statmch.docx mar7 Statistical Thrmodynamics: Sublimation of Solid Iodin Chm 374 For March 3, 7 Prof. Patrik Callis Purpos:. To rviw basic fundamntals idas of Statistical Mchanics as applid
More informationAP Calculus Multiple-Choice Question Collection
AP Calculus Multipl-Coic Qustion Collction 985 998 . f is a continuous function dfind for all ral numbrs and if t maimum valu of f () is 5 and t minimum valu of f () is 7, tn wic of t following must b
More informationu x A j Stress in the Ocean
Strss in t Ocan T tratmnt of strss and strain in fluids is comlicatd and somwat bond t sco of tis class. Tos rall intrstd sould look into tis rtr in Batclor Introduction to luid Dnamics givn as a rfrnc
More informationEngineering 323 Beautiful HW #13 Page 1 of 6 Brown Problem 5-12
Enginring Bautiful HW #1 Pag 1 of 6 5.1 Two componnts of a minicomputr hav th following joint pdf for thir usful liftims X and Y: = x(1+ x and y othrwis a. What is th probability that th liftim X of th
More informationperm4 A cnt 0 for for if A i 1 A i cnt cnt 1 cnt i j. j k. k l. i k. j l. i l
h 4D, 4th Rank, Antisytric nsor and th 4D Equivalnt to th Cross Product or Mor Fun with nsors!!! Richard R Shiffan Digital Graphics Assoc 8 Dunkirk Av LA, Ca 95 rrs@isidu his docunt dscribs th four dinsional
More informationDavisson Germer experiment
Announcmnts: Davisson Grmr xprimnt Homwork st 5 is today. Homwork st 6 will b postd latr today. Mad a good guss about th Nobl Priz for 2013 Clinton Davisson and Lstr Grmr. Davisson won Nobl Priz in 1937.
More informationA Propagating Wave Packet Group Velocity Dispersion
Lctur 8 Phys 375 A Propagating Wav Packt Group Vlocity Disprsion Ovrviw and Motivation: In th last lctur w lookd at a localizd solution t) to th 1D fr-particl Schrödingr quation (SE) that corrsponds to
More informationpriority queue ADT heaps 1
COMP 250 Lctur 23 priority quu ADT haps 1 Nov. 1/2, 2017 1 Priority Quu Li a quu, but now w hav a mor gnral dinition o which lmnt to rmov nxt, namly th on with highst priority..g. hospital mrgncy room
More informationAim To manage files and directories using Linux commands. 1. file Examines the type of the given file or directory
m E x. N o. 3 F I L E M A N A G E M E N T Aim To manag ils and dirctoris using Linux commands. I. F i l M a n a g m n t 1. il Examins th typ o th givn il or dirctory i l i l n a m > ( o r ) < d i r c t
More informationBINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES. 1. Statement of results
BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES DONALD M. DAVIS Abstract. If p is a prim and n a positiv intgr, lt ν p (n dnot th xponnt of p in n, and u p (n n/p νp(n th unit part of n. If α
More informationAlgorithms. Algorithms 5.2 TRIES. R-way tries ternary search tries character-based operations ROBERT SEDGEWICK KEVIN WAYNE
Agoritm ROBERT SEDGEWICK KEVIN WAYNE 5.2 TRIES Agoritm F O U R T H E D I T I O N R-way tri trnary arc tri caractr-bad opration ROBERT SEDGEWICK KEVIN WAYNE ttp://ag4.c.princton.du Summary of t prformanc
More informationFrom Elimination to Belief Propagation
School of omputr Scinc Th lif Propagation (Sum-Product lgorithm Probabilistic Graphical Modls (10-708 Lctur 5, Sp 31, 2007 Rcptor Kinas Rcptor Kinas Kinas X 5 ric Xing Gn G T X 6 X 7 Gn H X 8 Rading: J-hap
More informationWinter 2016 COMP-250: Introduction to Computer Science. Lecture 23, April 5, 2016
Wintr 2016 COMP-250: Introduction to Computr Scinc Lctur 23, April 5, 2016 Commnt out input siz 2) Writ ny lgorithm tht runs in tim Θ(n 2 log 2 n) in wors cs. Explin why this is its running tim. I don
More informationA Sub-Optimal Log-Domain Decoding Algorithm for Non-Binary LDPC Codes
Procdings of th 9th WSEAS Intrnational Confrnc on APPLICATIONS of COMPUTER ENGINEERING A Sub-Optimal Log-Domain Dcoding Algorithm for Non-Binary LDPC Cods CHIRAG DADLANI and RANJAN BOSE Dpartmnt of Elctrical
More informationAtomic Physics. Final Mon. May 12, 12:25-2:25, Ingraham B10 Get prepared for the Final!
# SCORES 50 40 30 0 10 MTE 3 Rsults P08 Exam 3 0 30 40 50 60 70 80 90 100 SCORE Avrag 79.75/100 std 1.30/100 A 19.9% AB 0.8% B 6.3% BC 17.4% C 13.1% D.1% F 0.4% Final Mon. Ma 1, 1:5-:5, Ingraam B10 Gt
More informationph People Grade Level: basic Duration: minutes Setting: classroom or field site
ph Popl Adaptd from: Whr Ar th Frogs? in Projct WET: Curriculum & Activity Guid. Bozman: Th Watrcours and th Council for Environmntal Education, 1995. ph Grad Lvl: basic Duration: 10 15 minuts Stting:
More informationContinuous probability distributions
Continuous probability distributions Many continuous probability distributions, including: Uniform Normal Gamma Eponntial Chi-Squard Lognormal Wibull EGR 5 Ch. 6 Uniform distribution Simplst charactrizd
More informationBifurcation Theory. , a stationary point, depends on the value of α. At certain values
Dnamic Macroconomic Thor Prof. Thomas Lux Bifurcation Thor Bifurcation: qualitativ chang in th natur of th solution occurs if a paramtr passs through a critical point bifurcation or branch valu. Local
More informationa g f 8 e 11 Also: Minimum degree, maximum degree, vertex of degree d 1 adjacent to vertex of degree d 2,...
Warmup: Lt b 2 c 3 d 1 12 6 4 5 10 9 7 a 8 11 (i) Vriy tat G is connctd by ivin an xampl o a walk rom vrtx a to ac o t vrtics b. (ii) Wat is t sortst pat rom a to c? to? (iii) Wat is t lonst pat rom a
More informationAbstract Interpretation: concrete and abstract semantics
Abstract Intrprtation: concrt and abstract smantics Concrt smantics W considr a vry tiny languag that manags arithmtic oprations on intgrs valus. Th (concrt) smantics of th languags cab b dfind by th funzcion
More informationComputing and Communications -- Network Coding
89 90 98 00 Computing and Communications -- Ntwork Coding Dr. Zhiyong Chn Institut of Wirlss Communications Tchnology Shanghai Jiao Tong Univrsity China Lctur 5- Nov. 05 0 Classical Information Thory Sourc
More informationMCB137: Physical Biology of the Cell Spring 2017 Homework 6: Ligand binding and the MWC model of allostery (Due 3/23/17)
MCB37: Physical Biology of th Cll Spring 207 Homwork 6: Ligand binding and th MWC modl of allostry (Du 3/23/7) Hrnan G. Garcia March 2, 207 Simpl rprssion In class, w drivd a mathmatical modl of how simpl
More informationSymmetric centrosymmetric matrix vector multiplication
Linar Algbra and its Applications 320 (2000) 193 198 www.lsvir.com/locat/laa Symmtric cntrosymmtric matrix vctor multiplication A. Mlman 1 Dpartmnt of Mathmatics, Univrsity of San Francisco, San Francisco,
More informationCompton Scattering. There are three related processes. Thomson scattering (classical) Rayleigh scattering (coherent)
Comton Scattring Tr ar tr rlatd rocsss Tomson scattring (classical) Poton-lctron Comton scattring (QED) Poton-lctron Raylig scattring (cornt) Poton-atom Tomson and Raylig scattring ar lasticonly t dirction
More informationOn spanning trees and cycles of multicolored point sets with few intersections
On spanning trs and cycls of multicolord point sts with fw intrsctions M. Kano, C. Mrino, and J. Urrutia April, 00 Abstract Lt P 1,..., P k b a collction of disjoint point sts in R in gnral position. W
More informationSome remarks on Kurepa s left factorial
Som rmarks on Kurpa s lft factorial arxiv:math/0410477v1 [math.nt] 21 Oct 2004 Brnd C. Kllnr Abstract W stablish a connction btwn th subfactorial function S(n) and th lft factorial function of Kurpa K(n).
More informationPair (and Triplet) Production Effect:
Pair (and riplt Production Effct: In both Pair and riplt production, a positron (anti-lctron and an lctron (or ngatron ar producd spontanously as a photon intracts with a strong lctric fild from ithr a
More information