New and Faster Filters for. Multiple Approximate String Matching. University of Chile. Blanco Encalada Santiago - Chile

Size: px
Start display at page:

Download "New and Faster Filters for. Multiple Approximate String Matching. University of Chile. Blanco Encalada Santiago - Chile"

Transcription

1 New and Fase Files fo Muliple Appoximae Sing Maching Ricado Baeza-Yaes Gonzalo Navao Depamen of Compue Science Univesiy of Chile Blanco Encalada 22 - Saniago - Chile fbaeza,gnavaog@dcc.uchile.cl Absac We pesen hee new algoihms fo on-line muliple sing maching allowing eos. These ae exensions of pevious algoihms ha seach fo a single paen. The aveage unning ime achieved is in all cases linea in he ex size fo modeae eo level, paen lengh and numbe of paens. They adap (wih highe coss) o he ohe cases. Howeve, he algoihms die in speed and hesholds of usefulness. We analyze heoeically when each algoihm should be used, and show expeimenally hei pefomance. The only pevious soluion fo his poblem allows only one eo. Ou algoihms ae he s o allow moe eos, and ae fase han pevious wok fo a modeae numbe of paens (e.g. less han 5- on English ex, depending on he paen lengh). Key wods: Sing maching, mulipaen seach, seach allowing eos. Inoducion Appoximae sing maching is one of he main poblems in classical sing algoihms, wih applicaions o ex seaching, compuaional biology, paen ecogniion, ec. Given a ex T ::n of lengh n and a paen P ::m of lengh m (boh sequences ove an alphabe of size ), and a maximal numbe of eos allowed, < k < m, we wan o nd all ex posiions whee he paen maches he ex wih up o k eos. Eos can be subsiuing, deleing o inseing a chaace. We use he em \eo level" o efe o = k=m. In his pape we ae ineesed in he on-line poblem (i.e. he ex is no known in advance), whee he classical soluion fo a single paen is based on dynamic pogamming and has a unning ime of O(mn) [26]. In ecen yeas seveal algoihms have impoved he classical one [22]. Some impove he wos o aveage case by using he popeies of he dynamic pogamming maix [3,, 6, 3, 9]. Ohes le he ex o quickly eliminae unineesing pas [29, 28,, 4, 24], some of hem being \sublinea" on aveage fo modeae (i.e. hey do no inspec all he ex chaaces). Ye ohe appoaches use bi-paallelism [3] in a compue wod of w bis o educe he numbe of opeaions [33, 35, 34, 6, 9]. The poblem of appoximaely seaching a se of paens (i.e. he occuences of anyone of hem) has been consideed only ecenly. This poblem has many applicaions, fo insance This wok has been suppoed in pa by FONDECYT gan

2 Spelling: many incoec wods can be seached in he dicionay a a ime, in ode o nd hei mos likely vaians. Moeove, we may even seach he dicionay of coec wods in he \ex" of misspelled wods, hopefully a much less cos. Infomaion eieval: when synonym o hesauus expansion is done on a keywod and he ex is eo-pone, we may wan o seach all he vaians allowing eos. Bached queies: if a sysem eceives a numbe of queies o pocess, i may impove eciency by seaching all hem in a single pass. Single-paen queies: some algoihms fo a single paen allowing eos (e.g. paen paiioning [6]) educe he poblem o he seach of many subpaens allowing less eos, and hey bene fom mulipaen seach algoihms. A ivial soluion o he mulipaen seach poblem is o pefom seaches. As fa as we know, he only pevious aemp o impove he ivial soluion is due o Muh & Manbe [7], who use hashing o seach many paens wih one eo, being ecien even fo one housand paens. In his wok, we pesen hee new algoihms ha ae exensions of pevious ones o he case of muliple seach. In Secion 2 we explain some basic conceps necessay o undesand he algoihms. Then we pesen he hee new echniques. In Secion 3 we pesen \auomaon supeimposiion", which exends a bi-paallel simulaion of a nondeeminisic nie auomaon (NFA) [6]. In Secion 4 we pesen \exac paiioning", ha exends a le based on exac seaching of paen pieces [7, 6, 24]. In Secion 5 we pesen \couning", based on couning paen lees in a ex window [4]. In Secion 6 we analyze ou algoihms and in Secion 7 we compae hem expeimenally. Finally, in Secion 8 we give ou conclusions. Some deailed analyses ae lef fo Appendices A and B. Alhough [7] allows seaching fo many paens, i is limied o only one eo. Ous ae he s algoihms fo mulipaen maching allowing moe han one eo. Moeove, even fo one eo, we impove [7] when he numbe of paens is no vey lage (say, less han 5{ on English ex, depending on he paen lengh). Ou mulipaen exensions impove ove hei sequenial counepas (i.e. one sepaae seach pe paen using he base algoihm) when he eo level is no vey high (abou :4 on English ex). The le based on exac seaching is he fases fo small eo levels, while he bi-paallel simulaion of he NFA adaps bee o moe eos on elaively sho paens. Pevious paial and peliminay vesions of his wok appeaed in [5, 2, 2]. 2 Basic Conceps We eview in his secion some basic conceps ha ae used in all he algoihms ha follow. In he pape S i denoes he i-h chaace of sing S (being S he s chaace), and S i::j sands fo he subsing S i S i+ :::S j. In paicula, if i < j, S i::j =, he empy sing. 2. Fileing Techiques All he mulipaen seach algoihms ha we conside in his wok ae based in he concep of leing, and heefoe i is useful o dene i hee. 2

3 Fileing is based on he fac ha i is nomally easie o ell ha a ex posiion does no mach han o ensue ha i maches. Theefoe, a le is a fas algoihm ha checks fo a simple necessay (hough no sucien) condiion fo an appoximae mach o occu. The ex aeas ha do no saisfy he necessay condiion can be safely discaded, and a moe expensive algoihm has o be un on he ex aeas ha passed he le. Since he les can be much fase han appoximae seaching algoihms, leing algoihms can be vey compeiive (in fac, hey dominae on a lage ange of paamees). The pefomance of leing algoihms, howeve, is vey sensiive o he eo level. Mos les wok vey well on low eo levels and vey bad wih moe eos. This is elaed wih he amoun of ex ha he le is able o discad. When evaluaing leing algoihms, i is impoan no only o conside hei ime eciency bu also hei oleance o eos. A em nomally used when efeing o les is \sublineaiy". I is said ha a le is sublinea when i does no inspec all he chaaces of he ex (like he Boye-Mooe [8] algoihms fo exac seaching, which can be a bes O(n=m)). Thoughou his wok we make use of he wo following lemmas o deive leing condiions. Lemma [6]: If S = T a::b maches P wih a mos k eos, and P = p :::p j (a concaenaion of sub-paens), hen some subsing of S maches a leas one of he p i 's, wih a mos bk=jc eos. Poof: Ohewise, he bes mach of each p i inside S has a leas bk=jc + > k=j eos. An occuence of P involves he occuence of each of he p i 's, and he oal numbe of eos in he occuences is a leas he sum of he eos of he pieces. Bu hee, jus summing up he eos of all he pieces we have moe han jk=j = k eos and heefoe a complee mach is no possible. Noice ha his does no even conside ha he maches of he p i mus be in he pope ode, be disjoin, and ha some deleions in S may be needed o connec hem. In geneal, one can le he seach fo a paen of lengh m wih k eos by he seach of j subpaens of lengh m=j wih k=j eos. Only he ex aeas suounding occuences of pieces mus be checked fo complee maches. An impoan paicula case of Lemma aises when one consides j = k +, since in his case some paen piece appeas unaleed (zeo eos). Lemma 2: [32] If hee ae i j such ha ed(t i::j ; P ) k, hen T j?m+::j includes a leas m? k chaaces of P. Poof: Suppose he opposie. If j? i < m, hen we obseve ha hee ae less han m? k chaaces of P in T i::j. Hence, moe han k chaaces mus be deleed fom P o mach he ex. If j? i m, we obseve ha hee ae moe han k chaaces in T i::j ha ae no in P, and hence we mus inse moe han k chaaces in P o mach he ex. A conadicion in boh cases. Noe ha in case of epeaed chaaces in he paen, hey mus be couned as dieen occuences. Fo example, if we seach "aaaa" wih one eo in he ex, he las fou lees of each occuence mus include a leas hee a's. Lemma 2 (a simplicaion of ha in [32]) says essenially ha we can design a le fo appoximae seaching based on nding enough chaaces of he paen in a ex window (wihou egading hei odeing). Fo insance, he paen "suvey" canno appea wih one eo in he ex window "suge" because hee ae no ve lees of he paen in he ex. Howeve, he le canno discad he possibiliy ha he paen appeas in he ex window "yevus". 3

4 2.2 Bi-Paallelism Bi-paallelism is a echnique of common use in sing maching [3]. I was s poposed in [2, 4]. The echnique consiss in aking advanage of he ininsic paallelism of he bi opeaions inside a compue wod. By using clevely his fac, he numbe of opeaions ha an algoihm pefoms can be cu down by a faco of a mos w, whee w is he numbe of bis in he compue wod. Since in cuen achiecues w is 32 o 64, he speedup is vey signican in pacice (and impoves wih echnological pogess). In ode o elae he behavio of bi-paallel algoihms o ohe woks, i is nomally assumed ha w = (log n), as dicaed by he RAM model of compuaion. We pefe, howeve, o keep w as an independen value. Some noaion we use fo bi-paallel algoihms is in ode. We denoe as b`:::b he bis of a mask of lengh `, which is soed somewhee inside he compue wod. We use C-like synax fo opeaions on he bis of compue wods, e.g. \j" is he biwise-o and \<<" moves he bis o he lef and enes zeos fom he igh, e.g. b m b m? :::b 2 b << 3 = b m?3 :::b 2 b. We can also pefom aihmeic opeaions on he bis, such as addiion and subacion, which opeaes he bis as if hey fomed a numbe. Fo insance, b`:::b x? = b`:::b x. We explain now he s bi-paallel algoihm, since i is he basis of much of which follows in his wok. The algoihm seaches a paen in a ex (wihou eos) by paallelizing he opeaion of a non-deeminisic nie auomaon ha looks fo he paen. Figue illusaes his auomaon. a l o h a Figue : Nondeeminisic auomaon ha seaches "aloha" exacly. This auomaon has m + saes, and can be simulaed in is non-deeminisic fom in O(mn) ime. The Shif-O algoihm achieves O(mn=w) wos-case ime (i.e. opimal speedup). Noice ha if we conve he non-deeminisic auomaon o a deeminisic one o have O(n) seach ime, we ge an impoved vesion of he KMP algoihm [5]. Howeve, KMP is wice as slow fo m w. The algoihm s builds a able B[ ] which fo each chaace c soes a bi mask B[c] = b m :::b. The mask B[c] has he bi b i in zeo if and only if P i = c. The sae of he seach is kep in a machine wod D = d m :::d, whee d i is zeo wheneve P ::i maches he end of he ex ead up o now (i.e. he sae numbeed i in Figue is acive). Theefoe, a mach is epoed wheneve d m is zeo. D is se o all ones oiginally, and fo each new ex chaace T j, D is updaed using he fomula D (D << ) j B[T j ] The fomula is coec because he i-h bi is zeo if and only if he (i? )-h bi was zeo fo he pevious ex chaace and he new ex chaace maches he paen a posiion i. In ohe wods, T j?i+::j = P ::i if and only if T j?i+::j? = P ::i? and T j = P i. I is possible o 4

5 elae his fomula o he movemen ha occus in he non-deeminisic auomaon fo each new ex chaace: each sae ges he value of he pevious sae, bu his happens only if he ex chaace maches he coesponding aow. Fo paens longe han he compue wod (i.e. m > w), he algoihm uses dm=we compue wods fo he simulaion (no all hem ae acive all he ime). The algoihm is O(mn=w) wos case ime, and he pepocessing is O(m + ) ime and O() space. On aveage, he algoihm is O(n) even when m > w, since only he s O() saes of he auomaon have acive saes on aveage (and hence he s O() compue wods need o be updaed on aveage). I is easy o exend Shif-O o handle classes of chaaces. In his exension, each posiion in he paen maches wih a se of chaaces ahe han wih a single chaace. The classical sing maching algoihms ae no so easily exended. In Shif-O, i is enough o se he i-h bi of B[c] fo evey c 2 P i (P i is a se now). Fo insance, o seach fo "suvey" in case-insensiive fom, we jus se he s bi of B["s"] and of B["S"] o \mach" (zeo), and he same wih he es. Shif-O can also seach fo muliple paens (whee he complexiy is O(mn=w) if we conside ha m is he oal lengh of all he paens) by aanging many masks B and D in he same machine wod. Shif-O was lae enhanced [34] o suppo a lage se of exended paens and even egula expessions. Recenly, in [25], Shif-O was combined wih a sublinea sing maching algoihm, obaining he same exibiliy and an eciency compeiive agains he bes classical algoihms. Many on-line ex algoihms can be seen as implemenaions of cleve auomaa (classically, in hei deeminisic fom). Bi-paallelism has since is invenion became a geneal way o simulae simple non-deeminisic auomaa insead of conveing hem o deeminisic. I has he advanage of being much simple, in many cases fase (since i makes bee usage of he egises of he compue wod), and easie o exend o handle complex paens han is classical counepas. Is main disadvanage is he limiaions i imposes wih egad o he size of he compue wod. In many cases is adapaions o cope wih longe paens ae no so ecien. 2.3 Bi-paallelism fo Appoximae Paen Maching We pesen now an applicaion of bi-paallelism o appoximae paen maching, which is especially elevan fo he pesen wok. Conside he NFA fo seaching "pa" wih a mos k = 2 eos shown in Figue 2. Evey ow denoes he numbe of eos seen. The s one, he second one, and so on. Evey column epesens maching he paen up o a given posiion. A each ieaion, a new ex chaace is consideed and he auomaon changes is saes. Hoizonal aows epesen maching a chaace (hey can only be followed if he coesponding mach occus). All he ohes epesen eos, as hey move o he nex ow. Veical aows epesen inseing a chaace in he paen (since hey advance in he ex and no in he paen), solid diagonal aows epesen eplacing a chaace (since hey advance in he ex and he paen), and dashed diagonal aows epesen deleing a chaace of he paen (since, as -ansiions, hey advance in he paen bu no in he ex). The loop a he iniial sae allows consideing any chaace as a poenial saing poin of a mach. The auomaon acceps a chaace (as he end of a mach) wheneve a ighmos sae is acive. Iniially, he acive saes a ow i (i 2 ::k) ae hose a he columns fom o i, o epesen he deleion of he s i chaaces of he paen P ::m. 5

6 p a no eos p a eo p a 2 eos D D 2 Figue 2: An NFA fo appoximae sing maching. We show he acive saes afe eading he ex "pai". An ineesing applicaion of bi-paallelism is o simulae his auomaon in is nondeeminisic fom. A s appoach [34] obained O(kdm=wen) ime, by packing each auomaon ow in a machine wod and exending he Shif-O algoihm o accoun fo he veical and diagonal aows. Noe ha even if all he saes in a single machine wod, he k + ows have o be sequenially updaed because of he -ansiions. The same happens in he classical dynamic pogamming algoihm [26], which can be egaded as a column-wise simulaion of his NFA. In his pape we ae ineesed in a moe ecen simulaion echnique [6], whee we show ha by packing diagonals of he auomaon insead of ows o columns all he new values can be compued in one sep if hey in a compue wod. We give a bief descipion of he idea. Because of he -ansiions, once a sae in a diagonal is acive, all he subsequen saes in ha diagonal become acive oo, so we can dene he minimal acive ow of each diagonal, D i (diagonals ae numbeed by looking he column hey sa a, e.g. D and D 2 ae enclosed in doed lines in Figue 2). The new values fo D i (i 2 ::m? k) afe we ead a new ex chaace c can be compued by D i = min( D i + ; D i+ + ; g(d i? ; c) ) whee g(d i ; c) = min ( fk + g [ f j = j D i ^ P i+j == c g ) whee i always holds D = D = and we epo a mach wheneve D m?k k. The fomula fo Di accouns fo eplacemens, inseions and maches, especively. Deleions ae accouned fo by keeping he minimum acive ow. All he ineesing maches ae caugh by consideing only he diagonals D :::D m?k. 6

7 We use bi-paallelism o epesen he D i 's in unay. Each one is hold in k + bis (plus an oveow bi) and soed sequenially inside a bi mask D. Ineesingly, he eec is he same if we ead he diagonals boom-up and exchange $, wih each bi epesening a sae of he NFA. The updae fomula can be seen eihe as an aihmeic implemenaion of he pevious fomula in unay o as a logical simulaion of he ow of bis acoss he aows of he NFA. As in Shif-O, a able of (m bis long) masks b[ ] is buil epesening mach o mismach agains he paen. A able B[c] is buil by mapping he bis of b[ ] o hei appopiae posiions inside D. Figue 3 shows how he saes ae epesened inside he masks D and B. sepaao sepaao nal sae D a p B[''] (2,3) (,2) (,) (2,4) (,3) (,2) a Figue 3: Bi-paallel epesenaion of he NFA of Figue 2. This epesenaion equies k +2 bis pe diagonal, so he oal numbe of bis is (m?k)(k +2). If his numbe of bis does no exceed he compue wod size w, he updae can be done in O() opeaions. The esuling algoihm is linea and vey fas in pacice. Fo ou puposes, i is impoan o ealize ha he only connecion beween he paen and he algoihm is given by he b[ ] able, and ha he paen can use classes of chaaces jus as in he Shif-O algoihm. We use his popey nex o seach fo muliple paens. 3 Supeimposed Auomaa In his secion we descibe an appoach based on he bi-paallel simulaion of he NFA jus descibed. Suppose we have o seach paens P ; :::; P. We ae ineesed in he occuences of any one of hem, wih a mos k eos. We can exend he pevious bi-paallelism appoach by building he auomaon fo each one, and hen \supeimpose" all he auomaa. Assume ha all paens have he same lengh (ohewise, uncae hem o he shoes one). Hence, all he auomaa have he same sucue, dieing only in he labels of he hoizonal aows. The supeimposiion is dened as follows: we build he b[ ] able fo each paen, and hen ake he biwise-and of all he ables (ecall ha means mach and means mismach). The esuling b[ ] able maches a posiion i wih he i-h chaace of any of he paens. We hen build he auomaon as befoe using his able. 7

8 The esuling auomaon acceps a ex posiion if i ends an occuence of a much moe elaxed paen wih classes of chaaces, namely fp ; :::; P g fp 2 ; :::; P 2g ::: fp m; :::; P mg fo example, if he seach is fo "pa" and "wai", as shown in Figue 4, he sing "pai" is acceped wih zeo eos. p o w a o i no eos p o w a o i eo p o w a o i 2 eos Figue 4: An NFA o le he seach fo "pa" and "wai". Fo a modeae numbe of paens, he le is sic enough a he same cos of a single seach. Each occuence epoed by he auomaon has o be veied fo all he involved paens (we use he single-paen auomaon fo his sep). Tha is, we have o eavese he las m + k = O(m) chaaces o deemine if hee is acually an occuence of some of he paens. If he numbe of paens is oo lage, he le will be oo elaxed and will igge oo many veicaions. In ha case, we paiion he se of paens ino goups of paens each, build he auomaon of each goup and pefom d= e independen seaches. The cos of his seach is O(= n), whee is small enough o make he cos of veicaions negligible. This always exiss, since fo = we have a single paen pe auomaon and no veicaion is needed. When gouping, we use he heuisic of soing he paens and packing neighbos in he same goup, ying o have he same s chaaces. 3. Hieachical Veicaion The simples veicaion alenaive (which we call \plain") is ha, once a supeimposed auomaon epos a mach, we y he individual paens one by one in he candidae aea. Howeve, a smae veicaion echnique (which we call hieachical) is possible. 8

9 Assume s ha is a powe of wo. Then, when he auomaon epos a mach, un wo new auomaa ove he candidae aea: one which supeimposes he s half of he paens and anohe wih he second half. Repea he pocess ecusively wih each of he wo auomaa ha nds again a mach. A he end, he auomaa will epesen single paens and if hey nd a mach we know ha hei paens have been eally found (see Figue 5). Of couse he auomaa fo he equied subses of paens ae all pepocessed. Since hey coespond o he inenal nodes of a binay ee of leaves, hey ae 2? = O(), so he space and pepocessing cos does no change. If is no a powe of wo hen one of he halves may have one moe paen han he ohe Figue 5: The hieachical veicaion mehod fo 4 paens. Each node of he ee epesens a check (he oo epesens in fac he global le). If a node passes he check, is wo childen ae esed. If a leaf passes he check, is paen has been found. The advanage of hieachical veicaion is ha i can emove a numbe of candidaes fom consideaion in a single es. Moeove, i can even nd ha no paen has eally mached befoe acually checking any specic paen (i.e. i may happen ha none of he wo halves mach in a spuious mach of he whole goup). The wos-case ovehead ove plain veicaion is jus a consan faco, ha is, wice as many ess ove he candidae aea (2? insead of ). On aveage, as we show lae analyically and expeimenally, hieachical veicaion is by fa supeio o plain veicaion. 3.2 Auomaon Paiioning Up o now we have consideed sho paens, whose NFA ino a compue wod. If his is no he case (i.e. (m? k)(k + 2) > w), we paiion he poblem. In his subsecion and he nex we adap he wo paiioning echniques descibed in [6]. The simples echnique o cope wih a lage auomaon is o use a numbe of machine wods fo he simulaion. The idea is as follows: once he (lage) auomaa have been supeimposed, we paiion he supeimposed auomaon ino a maix of subauomaa, each one ing in a compue wod. Those subauomaa behave slighly dieenly han he simple one, since hey mus popagae bis o hei neighbos. Figue 6 illusaes. Once he auomaon is paiioned, we un i ove he ex updaing is subauomaa. Each sep akes ime popoional o he numbe of cells o updae, i.e. O(k(m? k)=w). Obseve, howeve, ha i is no necessay o updae all he subauomaa, since hose on he igh may no have any acive sae. Following [3], we keep ack of up o whee we need o updae he maix of subauomaa, woking only on he \acive" cells. 9

10 c I ows J columns Infomaion flow Affeced aea Figue 6: A lage NFA paiioned ino a maix of I J compue wods, saisfying (` + )`c w. 3.3 Paen Paiioning This echnique is based on Lemma of Secion 2.. We can educe he size of he poblem if we divide he paen in j pas, povided we seach all he sub-paens wih bk=jc eos. Each mach of a sub-paen mus be veied o deemine if i is in fac a complee mach. To pefom he paiion, we pick he smalles j such ha he poblem s in a single compue wod (i.e. (dm=je? bk=jc)(bk=jc + 2) w). The limi of his mehod is eached fo j = k +, since in ha case we seach wih zeo eos. The algoihm fo his case is qualiaively dieen and is descibed in Secion 4. We divide each paen in j subpaens as evenly as possible. Once we paiion all he paens, we ae lef wih j subpaens o be seached wih bk=jc eos. We simply goup hem as if hey wee independen paens o seach wih he geneal mehod. The only dieence is ha, afe deemining ha a subpaen has appeaed, we have o veify is complee paen. Anohe kind of hieachical veicaion, which we call \hieachical piece veicaion", is applied in his case oo. As shown in [23, 24], he single-paen algoihm can veify hieachically whehe he complee paen maches given ha a piece maches (see Figue 7). Tha is, insead of checking he complee paen we check he concaenaion of wo pieces conaining he one ha mached, and if i maches hen we check he concaenaion of fou pieces, and so on. This woks because Lemma applies a each level of he ee of Figue 7. The mehod is ohogonal o ou hieachical veicaion idea because hieachical piece veicaion woks boom-up insead of op-down and opeaes on pieces of he paen ahe han on ses of paens. As we ae using ou hieachical veicaion on he ses of paen pieces o deemine which piece mached given ha a supeimposiion of hem mached, we ae coupling wo dieen hieachical veicaion echniques in his case: we s use ou new mechanism o deemine which piece mached fom he supeimposed goup and hen use hieachical piece veicaion o deemine he occuence of he complee paen he piece belongs o. Figue 8 illusaes he whole pocess.

11 aaabbbcccddd aaabbb cccddd aaa bbb ccc ddd Figue 7: The hieachical piece veicaion mehod fo a paen spli in 4 pas. The boxes (leaves) ae he elemens which ae acually seached, and he oo epesens he whole paen. A leas one paen a each level mus mach in any occuence of he complee paen. If he bold box is found, all he bold lines may be veied. 3 pieces o seach P P2 P3 each one is spli in 4 p33 p3 p22 p4 p3 p24 hieachical veif. p22 is found p22 p2 p22 hieachical piece veif. P2 is finally found P2 p23 p24 p p2 p3 p2 p22 p32 p3 p23 p33 p4 p24 p34 p p23 p32 p2 p2 p34 p2 p22 p23 p24 he pieces ae aanged in 2 supeimposed goups and seached Figue 8: The whole pocess of paen paiioning wih hieachical veicaions. 4 Paiioning ino Exac Seaching This echnique (called \exac paiioning" fo sho) is based on a single-paen le which educes he poblem of appoximae seaching o a poblem of mulipaen exac seaching. The algoihm s appeaed in [34], and was lae impoved in [7, 6, 24]. We s pesen he singlepaen vesion and hen ou exension o muliple paens. 4. A File Based on Exac Seaching A paicula case of Lemma shows ha if a paen maches a ex posiion wih k eos, and we spli he paen in k+ pieces, hen a leas one of he pieces mus be pesen wih no eos in each occuence (his is a folkloe popey which has been used seveal imes [34, 8, 2]). Seaching wih zeo eos leads o a compleely dieen echnique. Since hee ae ecien algoihms o seach fo a se of paens exacly, we paiion he paen in k + pieces (of simila lengh), and apply a mulipaen exac seach fo he pieces. Each occuence of a piece is veied o check if i is suounded by a complee mach. If hee ae

12 no oo many veicaions, his algoihm is exemely fas. Fom he many algoihms fo mulipaen seach, an exension of Sunday's algoihm [27] gave us he bes esuls. We build a ie wih he sub-paens. Fom each ex posiion we seach he ex chaaces ino he ie, unil a leaf is found (mach) o hee is no pah o follow (mismach). The jump o he nex ex posiion is pecompued as he minimum of he jumps allowed in each sub-paen by he Sunday algoihm. As in [24], we use he same echnique fo hieachical piece veicaion of a single paen pesened in Secion Seaching Muliple Paens Obseve ha we can easily add moe paens o his scheme. Suppose we have o seach fo paens P ; :::; P. We cu each one ino k + pieces and seach in paallel fo all he (k + ) pieces. When a piece is found in he ex, we use a classical algoihm o veify is paen in he candidae aea. Noe an impoan dieence wih supeimposed auomaa. In his mulipaen seach we know which piece has mached. This is no he case in supeimposed auomaa, whee no only we do no know which piece mached, bu i is even possible ha no piece has eally mached. The wok o deemine which is he maching piece (caied ou by hieachical veicaion in supeimposed auomaa) is no necessay hee. Moeove, we only deec eal maches, so hee ae no moe maches in he union of paens han he sum of he individual maches. Theefoe, hee is no poin in sepaaing he seach fo he (k + ) pieces in goups. The only eason o supeimpose less paens is ha he shifs of he Sunday algoihm ae educed as he numbe of paens gow, bu as we show in he expeimens, his neve jusies in pacice spliing one seach ino wo. 5 A Couning File We pesen now a le based on couning lees in common beween he paen and a ex window. This le was s pesened in [4] (a simple vaian of [3]), bu we use a slighly dieen vesion hee. Ou vaian uses a xed-size insead of vaiable-size ex window (a possibiliy aleady noed in [32]), which makes i bee suied fo paallelizaion. We s explain he single-paen le and hen exend i o handle many paens using bi-paallelism. 5. A Simple Coune This le is based in Lemma 2 of Secion 2.. I passes ove he ex examining an m-lees long window. I keeps ack of how many chaaces of P ae pesen in he cuen ex window (accouning fo mulipliciies oo). If, a a given ex posiion j, m? k o moe chaaces of P ae in he window T j?m+::j, he window aea is veied wih a classical algoihm. We implemen he leing algoihm as follows. We keep a coune coun of paen chaaces appeaing in he ex window. We also keep a able A[ ] whee, iniially, he numbe of imes ha each chaace c appeas in P is kep in A[c]. Thoughou he algoihm, each eny A[c] indicaes how many occuences of c can sill be aken as belonging o P. Fo example, if 'h' appeas once 2

13 in P, we coun only one of he 'h's of he ex window as belonging o P. When A[c] is negaive, i means ha c mus exi he ex window?a[c] imes befoe we ake i again as belonging o P. Fo example, if we un he paen "aloha" ove he ex "aaaaaaaa", i will hold A["a"] =?3, and he value of he coune will be 2. This is independen on k. To advance he window, we mus include he new chaace T j+ and exclude he las chaace, T j?m+. To include he new chaace, we subac one fom A[T j+ ]. If i was geae han zeo befoe being decemened, i is because he new chaace T j+ is in P, so we incemen coun. To exclude he old chaace T j?m+, we add one o A[T j?m+ ]. If is is geae han zeo afe being incemened, i is because T j?m+ was consideed o be in P, so we decemen coun. Wheneve coun eaches m? k we veify he peceding aea. As can be seen, he algoihm is no only linea (excluding veicaions), bu he numbe of opeaions pe chaace is vey small. 5.2 Keeping Many Counes in Paallel To seach paens in he same ex, we use bi-paallelism o keep all he counes in a single machine wod. We mus do ha fo he A[ ] able and fo coun. The values of he enies of A[ ] lie in he ange [?m::m], so we need exacly `+ = +dlog 2 (m+ )e bis o soe hem. This is also enough fo coun, since i is in he ange [::m]. Hence, we can pack bw=( + dlog 2 (m + )e)c w= log 2 m paens of lengh m in a single seach (ecall ha w is he numbe of bis in he compue wod). If he paens have dieen lenghs, we can eihe uncae hem o he shoes lengh o use a window size of he longes lengh. If we have moe paens, we mus divide he se in subses of maximal size and seach each subse sepaaely. We focus ou aenion on a single subse now. The algoihm simulaes he simple one as follows. We have a able MA[ ] ha packs all he A[ ] ables. Each eny of MA[ ] is divided in bi aeas of lengh ` +. In he aea of he machine wod coesponding o each paen, we soe is nomal A[ ] value, se o he mos signican bi of he aea, and subac (i.e. we soe 2`? + A[ ]). When, in he algoihm, we have o add o subac o all A[ ]'s, we can easily do i in paallel wihou causing oveow fom an aea o he nex. Moeove, he coesponding A[ ] value is no posiive if and only if he mos signican bi of he aea is zeo. We have also a paallel coune M coun, whee he aeas ae aligned wih MA[ ]. I is iniialized by seing o he mos signican bi of each aea and hen subacing m? k a each one, i.e. we soe 2`? (m? k). Lae, we can add o subac in paallel wihou causing oveow. Moeove, he window mus be veied fo a paen wheneve he mos signican bi of is aea eaches. The condiion can be checked in paallel, bu when some of he mos signican bis each, we need o sequenially check which one i was. Finally, obseve ha he counes ha we wan o selecively incemen o decemen coespond exacly o he MA[ ] aeas ha have a in hei mos signican bi (i.e. hose whose A[ ] value is posiive). This allows an obvious bi mask-shif-add mechanism o pefom his opeaion in paallel on all he counes. Figue 9 illusaes. 3

14 m = 5; k = ; = 3; ` = 3 M A [a] M A [l] A[c] M A [o] M A [h] +2`? M A[c] M A [e] coun?(m?k) A[c] >? +2` M coun M coun coun m?k? (false) Figue 9: The bi-paallel counes. The example coesponds o he paen "aloha" seached wih eo and he ex window "hello". The A values ae A[ a ] = 2; A[ l ] = A[ e ] =?; A[ o ] = A[ h ] =, and coun = 3. 6 Analysis We ae ineesed in he complexiy of he pesened algoihms, as well as in he esicions ha and mus saisfy fo each mechanism o be ecien in leing mos of he unelevan pa of he ex. To his eec, we dene wo conceps. Fis, we say ha a mulipaen seach algoihm is opimal if i seaches paens in he same ime i akes o seach one paen. If we call C n; he cos o seach paens in a ex of size n, hen an algoihm is opimal if C n; = C n;. Second, we say ha a mulipaen seach algoihm is useful if i seaches paens in less han he ime i akes o seach hem one by one wih he coesponding sequenial algoihm, i.e. C n; < C n;. As we wok wih les, we ae ineesed in he aveage case analysis, since in he wos case none is useful. We compae in Table he complexiies and limis of applicabiliy of all he algoihms. Muh & Manbe ae included fo compleeness. The analysis leading o hese esuls is pesened lae in his secion. Algoihm Complexiy Opimaliy Usefulness Simple Supeimp. (?) 2 n <? eq <? e= p q m Auomaon Pa. 2 n <? e <? e= p w(?) q m Paen Pa. p n <? e <? e= p w(?) Pa. Exac Seach + m n < < = log (m)+(log log (m)) log m Couning n < e?m= < e?m= w Muh & Manbe mn k = k = log m+(log log m) Table : Complexiy, opimaliy and limi of applicabiliy fo he dieen algoihms. 4

15 We pesen in Figue a schemaical epesenaion of he aeas whee each algoihm is he bes in ems of complexiy. We show lae how he expeimens mach hose gues. Exac paiioning is he fases choice in mos easonable scenaios, fo he eo levels whee i can be applied. Fis, i is fase han couning fo m= log m < = =w, which does no hold asympoically bu holds in pacice fo easonable values of m. Second, i is fase han supeimposing auomaa fo min( p w; w=m) < =? =(=? ), which is ue in mos pacical cases. The only algoihm which can be fase han exac paiioning is ha of Muh & Manbe [7], namely fo > =. Howeve, i is limied o k =. Fo inceasing m, couning is asympoically he fases algoihm since is cos gows as O(log m) insead of O(m) hanks o is opimal use of he bis of he compue wod. Howeve, is applicabiliy is educed as m gows, being useless a he poin whee i wins ove exac paiioning. When he eo level is oo high fo exac paiioning, supeimposing auomaa is he only emaining alenaive. Auomaon paiioning is bee fo m p w, while paen paiioning is asympoically bee. Boh algoihms have he same limi of usefulness, and fo highe eo levels no le can impove ove a sequenial seach. Auomaon Paiioning NONE USEFUL Paiioning ino Exac Seach p w?e= p Paen Paiioning = log m m NONE USEFUL Supeimposed Auomaa Paiioning ino Exac Seach?e= p = log m Muh-Manbe = Figue : The aeas whee each algoihm is bee, in ems of, m and. In he lef plo (vaying m), we have assumed a modeae (i.e. less han 5). 6. Supeimposed Auomaa Suppose ha we seach paens. As explained befoe, we can paiion he se in goups of paens each, and seach each goup sepaaely (wih is auomaa supeimposed). The size of he goups should be as lage as possible, bu small enough fo he veicaions o be no signican. We analyze which is he opimal value fo and which is he complexiy of he seach. 5

16 In [6] we pove ha he pobabiliy of a given ex posiion maching a andom paen wih eo level is O( m ), whee = =(? 2 (? ) 2(?) ). I is also poved ha < wheneve <? e= p, and expeimenally shown ha his holds vey pecisely in pacice if we eplace e by.9. In fac, a vey abup phenomenon occus, since he maching pobabiliy is vey low fo? :9= p and vey high ohewise. In his fomula, = sands fo he pobabiliy of a chaace cossing a hoizonal edge of he auomaon (i.e. he pobabiliy of wo chaaces being equal). To exend his esul, we noe ha we have chaaces on each edge now, so he above menioned pobabiliy is? (? =), which is smalle han =. We use his uppe bound as a pessimisic appoximaion (which sands fo he case of all he chaaces being dieen, and is igh fo << ). As he single-paen algoihm is O(n) ime, he mulipaen algoihm is opimal on aveage wheneve he oal cos of veicaions is O() pe chaace. Since each veicaion coss O(m) (because we use a linea-ime algoihm on an aea of lengh m + k = O(m)), we need ha he oal numbe of veicaions pefomed is O(=m) pe chaace, on aveage. If we used he plain veicaion scheme, his would mean ha he pobabiliy ha a supeimposed auomaon maches a ex posiion should be O(=(m)), as we have o pefom veicaions. If hieachical veicaion is no used we have ha, as inceases, maching becomes moe pobable (because i is easie o coss a hoizonal edge of he auomaon) and i coss moe (because we have o check he paens one by one). This esuls in wo dieen limis on he maximum allowable, one fo each of he wo facs jus saed. The limi due o he inceased cos of each veicaion is moe singen han ha of inceased maching pobabiliy. The esuling analysis wihou hieachical veicaion is vey complex and is omied hee because hieachical veicaion yields consideably bee esuls and a simple analysis. As we show in Appendix A, he aveage cos o veify a mach of he supeimposed auomaon is O(m) when hieachical veicaion is used, insead of he O(m) cos of plain veicaion. Tha is, he cos does no gow as he numbe of paens inceases. Hence, he only limi ha pevens us fom supeimposing all he paens is ha he maching pobabiliy becomes highe. Tha is, if >? e p =, hen he maching pobabiliy is oo high and we will spend oo much ime veifying almos all ex posiions. On he ohe hand, we can supeimpose as much as we like befoe ha limi is eached. This ells ha he bes (which we call ) is he maximum one no eaching he limi, i.e. = (? )2 e 2 () Since we paiion in ses small enough o make he veicaions no signican, he cos is simply O(= n) = O(n=((? ) 2 )). This means ha he algoihm is opimal fo = O() (aking he eo level as a consan), o alenaively? e p =. On he ohe hand, fo >? e= p, he cos is O(n), no bee han he ivial soluion (i.e. = and hence no supeimposiion occus and he algoihm is no useful). Figue illusaes. Auomaon Paiioning: he analysis fo his case is simila o he simple one, excep because each sep of he lage auomaon akes ime popoional o he oal numbe of subauomaa, i.e. 6

17 p p s e 2 (?) 2? ep p? e p Figue : Behavio of supeimposed auomaa. On he lef, he cos inceases linealy wih, wih slope depending on. On he igh, he cos of a paallel seach ( p ) appoaches single seaches ( s ) when gows. O(k(m? k)=w). In fac, his is a wos case since on aveage no all cells ae acive, bu we use he wos case because we supeimpose all he paens we can unil he wos case of he seach is almos eached. Theefoe, he cos fomula is e 2 (? ) 2 k(m? k) w n = O! m 2 w(? ) n This is opimal fo = O(w) (fo consan ), o alenaively fo? e p =. I is useful fo? e= p. Paen Paiioning: we have now j paens o seach wih bk=jc eos. The eo level is he same fo subpoblems (ecall ha he subpaens ae of lengh m=j). To deemine which piece mached fom he supeimposed goup, we pay O(m) independenly of he numbe of pieces supeimposed (hanks o he hieachical veicaion). Hence he limi fo ou gouping is given by Eq. (). In boh he supeimposed and in he single-paen algoihm, we also pay o veify if he mach of he piece is pa of a complee mach. As we show in [23], his cos is negligible fo <? e= p, which is less sic han he limi given by Eq. (). As we have j pieces o seach, we need an analyical expession fo j. Since j is jus lage enough so ha he subpaens in a compue wod, j = (m? k)d(w; ), fo d(w; ) = + p + w=(? ) w whee d(w; ) can be shown o be O(= p w) by maximizing i in ems of (see [23]). Theefoe, he complexiy is je 2 (? ) n = O m 2 p w(? ) n On he ohe hand, he seach cos of he single-paen algoihm is O(jn). Wih espec o he simple algoihm fo sho paens, boh coss have been muliplied by j, and heefoe he limis fo opimaliy and usefulness ae he same. 7

18 If we compae he complexiies of paen vesus auomaon paiioning, we have ha paen paiioning is bee fo k > p w. This means ha fo consan and inceasing m, paen paiioning is asympoically bee. 6.2 Paiioning ino Exac Seaching In [6] we analyze his algoihm as follows. Excep fo veicaions, he seach ime can be made O(n) in he wos case by using an Aho-Coasick machine [], and O(n) in he bes case if we use a mulipaen Boye-Mooe algoihm. This is because we seach pieces of lengh m=(k +) =. We ae ineesed in analyzing he cos of veicaions. Since we cu he paen in k + pieces, hey ae of lengh bm=(k + )c o dm=(k + )e. The pobabiliy of each piece maching is a mos = bm=(k+)c. Hence, he pobabiliy of any piece maching is a mos (k + )= bm=(k+)c. We can easily exend ha analysis o he case of muliple seach, since we have now (k + ) pieces of he same lengh. Hence, he pobabiliy of veifying is (k + )= bm=(k+)c. We check he maches using a classical algoihm such as dynamic pogamming. Noe ha in his case we know which paen o veify, since we know which piece mached. As we show in [23], he oal veicaion cos if he pieces ae of lengh ` is O(`2) (in ou case, ` = m=(k + )). Hence, he seach cos is O + m = whee he \" mus be changed o \" if we conside he bes case. We conside opimaliy and usefulness now. An opimal algoihm should pay O(n) oal seach ime, which holds fo < log (m) + log (=) = n log (m) + (log log (m)) The algoihm is always useful, since i seaches a he same cos independenly on he numbe of paens, and he numbe of veicaions iggeed is exacly he same as if we seached each paen sepaaely. Howeve, if > =(log m + (log log m)), hen boh algoihms (single and mulipaen) wok as much as dynamic pogamming and hence he mulipaen seach is no useful. The ohe case when he algoihm could no be useful is when he shifs of a Boye-Mooe seach ae shoened by having many paens up o he poin whee i is bee o pefom sepaae seaches. This neve happens in pacice. 6.3 Couning If he numbe of veicaions is negligible, each pass of he algoihms is O(n). In he case of muliple paens, only O(w= log m) paens can be packed in a single seach, so he cos o seach paens is O(n log(m)=w). The dicul pa of he analysis is he maximum eo level ha he laion scheme can oleae while keeping he numbe of veicaions low. We assume ha we use dynamic pogamming o veify poenial maches. We call he pobabiliy of veifying. If log(m)=(wm 2 ) he algoihm keeps linea (i.e. opimal) on aveage. The algoihm is always useful since he numbe of veicaions iggeed wih he mulipaen seach is he same as fo he single-paen vesion. 8

19 Howeve, if =m boh algoihms wok O(mn) as fo dynamic pogamming and hence he le is no useful. We deive in Appendix B a pessimisic bound fo he limi of opimaliy and usefulness, namely < e?m= (Eq. (5)). Hence, as m gows, we can oleae smalle eo levels. This limi holds fo any condiion of he ype = O(=m c ), independenly of he consan c. In ou case, we need c = 2 fo opimaliy and c = fo usefulness. 7 Expeimenal Resuls We expeimenally sudy ou algoihms and compae hem agains pevious wok. We esed wih megabyes of lowe-case English ex. The paens wee andomly seleced fom he same ex. We use a Sun UlaSpac- unning Solais 2.5., wih 64 megabyes of RAM, and w = 32. Each daa poin was obained by aveaging he Unix's use ime ove ials. We pesen all he imes in enhs of seconds pe megabye. We do no pesen esuls on andom ex o avoid an excessively lenghly exposiion. In geneal, all he les impove as he alphabe size gows. Lowe-case English ex behaves appoximaely as andom ex wih = 5, which is he invese of he pobabiliy ha wo andom lees ae equal. Figue 2 (lef) compaes he plain and hieachical veicaion mehods agains a sequenial applicaion of he seaches, fo he case of supeimposed auomaa when he auomaon s in a compue wod. We show he cases of inceasing and of inceasing k. I is clea ha hieachical veicaion oupefoms plain veicaion in all cases. Moeove, he analysis fo hieachical vei- caion is conmed since he maximum up o whee he cos of he paallel algoihm does no gow linealy is vey close o = (? ) 2 =:9 2. On he ohe hand, he algoihm wih simple veicaion degades soone, since he veicaion cos gows wih. The menioned maximum value is he poin whee he paallelism aio is maximized. Tha is, if we have o seach fo 2 paens, i is bee o spli hem in wo goups of size and seach each goup sequenially. To sess his poin, Figue 2 (igh) shows he quoien beween he paallel and he sequenial algoihms, whee he opimum is clea fo supeimposed auomaa. On he ohe hand, he paallelism aio of exac paiioning keeps impoving as gows, as pediced by he analysis (hee is an opimum fo lage m, elaed o he Sunday shifs, bu i sill does no jusify o spli a seach in wo). When we compae ou algoihms agains he ohes, we conside only hieachical veicaion and use his value o obain he opimal gouping fo he supeimposed auomaa algoihms. The exac paiioning, on he ohe hand, pefoms all he seaches in a single pass. In couning, i is clea ha he speedup is opimal and we pack as many paens as we can in a single seach. Noice ha he plos which depend on show he poin whee should be seleced. Those which depend on k (fo xed ), on he ohe hand, jus show how he paallelizaion woks as he eo level inceases, which canno be conolled by he algoihm. We compae now ou algoihms among hem and agains ohes. We begin wih sho paens whose NFA in a compue wod. Figue 3 shows he esuls fo inceasing and fo inceasing k. Fo low and modeae eo levels, exac paiioning is he fases algoihm. In paicula, i is fase han pevious wok [7] when he numbe of paens is below 5 (fo English ex). When 9

20 p s p s p s k k Sequenial NFA Supeimposed, plain veif. Exac Paiioning Supeimposed, hieachical veif. Figue 2: Compaison of sequenial and mulipaen algoihms fo m = 9. The ows coespond o k =, k = 3 and = 5, especively. The lef plos show seach ime and he igh plos show he aio beween he paallel ( p ) and he sequenial ime ( s ). 2

21 he eo level inceases, supeimposed auomaa is he bes choice. This agees wih he analysis k Exac Paiioning Supeimposed Auomaa Couning Muh & Manbe (k = ) k Figue 3: Compaison among algoihms fo m = 9. The op plos show inceasing fo k = and k = 3. The boom plos show inceasing k fo = 8 and = 6. We conside longe paens now (m = 3). Figue 4 shows he esuls fo inceasing and fo inceasing k. As befoe, exac paiioning is he bes whee i can be applied, and impoves ove pevious wok [7] fo up o 9{. Fo hese longe paens he supeimposed auomaa echnique also degades, and only aely is i able o impove ove exac paiioning. In mos cases i only begins o be he bes when i (and all he ohes) ae no longe useful. Figue 5 summaizes some of ou expeimenal esuls, becoming a pacical vesion of he heoeical Figue. The main dieences ae ha exac paiioning is bee in pacice han wha is complexiy suggess, and ha hee is no clea winne beween paen and auomaon paiioning. 2

22 k Exac Paiioning Paen Paiioning Auomaon Paiioning Couning Muh & Manbe (k = ) Figue 4: Compaison among algoihms fo m = 3. The op plos show, fo inceasing, k = and k = 4. The boom plos show, fo inceasing k, = 8 and = 6. Paen paiioning is no un fo k = because i would eso o exac paiioning k 22

23 .4 NONE USEFUL.4 NONE USEFUL α Supeimposed Auomaa α Supeimposed Auomaa.3.3 Paiioning ino Exac Seach Paiioning ino Exac Seach 9 3 m 5 - Muh-Manbe Figue 5: The aeas whee each algoihm is bee, in pacice, on English ex. In he igh plo we assumed m = 9. Compae wih Figue. 8 Conclusions We have pesened a numbe of dieen leing algoihms fo mulipaen appoximae seaching. These ae he only algoihms ha allow an abiay numbe of eos. On he ohe hand, he only pevious wok allows jus one eo and we have oupefomed i when he numbe of paens o seach is below 5{ on English ex, depending on he paen lengh. We have explained, analyzed and expeimenally esed ou algoihms. We have also pesened a map of he bes algoihms fo each case. Many of he ideas we popose hee can be used o adap ohe single-paen appoximae seaching algoihms o he case of mulipaen seaching. Fo insance, he idea of supeimposing auomaa can be adaped o mos bi-paallel algoihms, such as [9]. Anohe fuiful idea is ha of exac paiioning, whee a mulipaen exac seach is easily adaped o seach he pieces of many paens. Thee ae many ohe leing algoihms of he same ype, e.g. [28]. On he ohe hand, ohe exac mulipaen seach algoihms may be bee suied o ohe seach paamees (e.g. woking bee on many paens). A numbe of pacical opimizaions o ou algoihms ae possible, fo insance If he paens have dieen lenghs, we uncae hem o he shoes one when supeimposing auomaa. We can selec clevely he subsings o use, since having he same chaace a he same posiion in wo paens impoves he leing mechanism. We used simple heuisics o goup subpaens in supeimposed auomaa. These can be impoved o maximize common lees oo. A moe geneal echnique could goup paens which ae simila in ems of numbe of eos needed o conve one ino he ohe (i.e. a cluseing echnique). We ae fee o paiion each paen in k + pieces as we like in exac paiioning. This is used in [24] o minimize he expeced numbe of veicaions when he lees of he alphabe do no have he same pobabiliy of occuence (e.g. in English ex). An O(m 3 ) dynamic pogamming algoihm is pesened hee o selec he bes paiion, and his could be applied o mulipaen seach. 23

24 Acknowledgemens We hank Robe Muh and Udi Manbe fo hei implemenaion of [7]. anonymous efeees fo hei deailed commens ha impoved his wok. We also hank he Refeences [] A. Aho and M. Coasick. Ecien sing maching: an aid o bibliogaphic seach. CACM, 8(6):333{34, June 975. [2] R. Baeza-Yaes. Ecien Tex Seaching. PhD hesis, Dep. of Compue Science, Univ. of Waeloo, May 989. Also as Reseach Repo CS [3] R. Baeza-Yaes. Tex eieval: Theoy and pacice. In 2h IFIP Wold Compue Congess, volume I, pages 465{476. Elsevie Science, Sepembe 992. [4] R. Baeza-Yaes and G. Gonne. A new appoach o ex seaching. CACM, 35():74{82, Ocobe 992. [5] R. Baeza-Yaes and G. Navao. Muliple appoximae sing maching. In Poc. WADS'97, LNCS 272, pages 74{84, 997. [6] R. Baeza-Yaes and G. Navao. Fase appoximae sing maching. Algoihmica, 23(2):27{ 58, 999. [7] R. Baeza-Yaes and C. Pelebeg. Fas and pacical appoximae paen maching. In Poc. CPM'92, pages 85{92, 992. LNCS 644. [8] R. S. Boye and J. S. Mooe. A fas sing seaching algoihm. CACM, 2():762{772, 977. [9] W. Chang and J. Lampe. Theoeical and empiical compaisons of appoximae sing maching algoihms. In Poc. CPM'92, pages 72{8, 992. LNCS 644. [] W. Chang and E. Lawle. Sublinea appoximae sing maching and biological applicaions. Algoihmica, 2(4/5):327{344, 994. [] Z. Galil and K. Pak. An impoved algoihm fo appoximae sing maching. SIAM J. of Compuing, 9(6):989{999, 99. [2] D. Geene, M. Panas, and F. Yao. Muli-index hashing fo infomaion eieval. In Poc. FOCS'94, pages 722{73, 994. [3] R. Gossi and F. Luccio. Simple and ecien sing maching wih k mismaches. Infomaion Pocessing Lees, 33(3):3{2, 989. [4] P. Jokinen, J. Tahio, and E. Ukkonen. A compaison of appoximae sing maching algoihms. Sofwae Pacice and Expeience, 26(2):439{458,

25 [5] D. E. Knuh, J. H. Mois, J, and V. R. Pa. Fas paen maching in sings. SIAM J. on Compuing, 6():323{35, 977. [6] G. Landau and U. Vishkin. Fas paallel and seial appoximae sing maching. J. of Algoihms, :57{69, 989. [7] R. Muh and U. Manbe. Appoximae muliple sing seach. In Poc. CPM'96, LNCS 75, pages 75{86, 996. [8] E. Myes. A sublinea algoihm fo appoximae keywod seaching. Algoihmica, 2(4/5):345{374, 994. [9] G. Myes. A fas bi-veco algoihm fo appoximae paen maching based on dynamic pogamming. In Poc. CPM'98, LNCS 448, pages {3, 998. [2] G. Navao. Muliple appoximae sing maching by couning. In Poc. WSP'97, pages 25{39. Caleon Univesiy Pess, 997. [2] G. Navao. Appoximae Tex Seaching. PhD hesis, Depamen of Compue Science, Univesiy of Chile, Decembe 998. fp://fp.dcc.uchile.cl/pub/uses/gnavao/- hesis98.ps.gz. Also as Tech. Repo TR/DCC [22] G. Navao. A guided ou o appoximae sing maching. Technical Repo TR/DCC- 99-5, Dep. of Compue Science, Univ. of Chile, July 999. Submied. fp://- fp.dcc.uchile.cl/pub/uses/gnavao/suvasm.ps.gz. [23] G. Navao and R. Baeza-Yaes. Impoving an algoihm fo appoximae paen maching. Technical Repo TR/DCC-98-5, Dep. of Compue Science, Univ. of Chile, 998. Submied. fp://fp.dcc.uchile.cl/pub/uses/gnavao/dexp.ps.gz. [24] G. Navao and R. Baeza-Yaes. Vey fas and simple appoximae sing maching. Infomaion Pocessing Lees, 999. To appea. fp://fp.dcc.uchile.cl/pub/uses/gnavao/- hpexac.ps.gz. [25] G. Navao and M. Rano. A bi-paallel appoach o sux auomaa: Fas exended sing maching. In Poc. CPM'98, LNCS 448, pages 4{33, 998. [26] P. Selles. The heoy and compuaion of evoluionay disances: paen ecogniion. J. of Algoihms, :359{373, 98. [27] D. Sunday. A vey fas subsing seach algoihm. CACM, 33(8):32{42, Augus 99. [28] E. Suinen and J. Tahio. On using q-gam locaions in appoximae sing maching. In Poc. ESA'95, 995. LNCS 979. [29] J. Tahio and E. Ukkonen. Appoximae Boye-Mooe sing maching. SIAM Jounal on Compuing, 22(2):243{26,

Computer Propagation Analysis Tools

Computer Propagation Analysis Tools Compue Popagaion Analysis Tools. Compue Popagaion Analysis Tools Inoducion By now you ae pobably geing he idea ha pedicing eceived signal sengh is a eally impoan as in he design of a wieless communicaion

More information

Representing Knowledge. CS 188: Artificial Intelligence Fall Properties of BNs. Independence? Reachability (the Bayes Ball) Example

Representing Knowledge. CS 188: Artificial Intelligence Fall Properties of BNs. Independence? Reachability (the Bayes Ball) Example C 188: Aificial Inelligence Fall 2007 epesening Knowledge ecue 17: ayes Nes III 10/25/2007 an Klein UC ekeley Popeies of Ns Independence? ayes nes: pecify complex join disibuions using simple local condiional

More information

Reinforcement learning

Reinforcement learning Lecue 3 Reinfocemen leaning Milos Hauskech milos@cs.pi.edu 539 Senno Squae Reinfocemen leaning We wan o lean he conol policy: : X A We see examples of x (bu oupus a ae no given) Insead of a we ge a feedback

More information

Lecture-V Stochastic Processes and the Basic Term-Structure Equation 1 Stochastic Processes Any variable whose value changes over time in an uncertain

Lecture-V Stochastic Processes and the Basic Term-Structure Equation 1 Stochastic Processes Any variable whose value changes over time in an uncertain Lecue-V Sochasic Pocesses and he Basic Tem-Sucue Equaion 1 Sochasic Pocesses Any vaiable whose value changes ove ime in an unceain way is called a Sochasic Pocess. Sochasic Pocesses can be classied as

More information

An Automatic Door Sensor Using Image Processing

An Automatic Door Sensor Using Image Processing An Auomaic Doo Senso Using Image Pocessing Depamen o Elecical and Eleconic Engineeing Faculy o Engineeing Tooi Univesiy MENDEL 2004 -Insiue o Auomaion and Compue Science- in BRNO CZECH REPUBLIC 1. Inoducion

More information

Sections 3.1 and 3.4 Exponential Functions (Growth and Decay)

Sections 3.1 and 3.4 Exponential Functions (Growth and Decay) Secions 3.1 and 3.4 Eponenial Funcions (Gowh and Decay) Chape 3. Secions 1 and 4 Page 1 of 5 Wha Would You Rahe Have... $1million, o double you money evey day fo 31 days saing wih 1cen? Day Cens Day Cens

More information

Low-complexity Algorithms for MIMO Multiplexing Systems

Low-complexity Algorithms for MIMO Multiplexing Systems Low-complexiy Algoihms fo MIMO Muliplexing Sysems Ouline Inoducion QRD-M M algoihm Algoihm I: : o educe he numbe of suviving pahs. Algoihm II: : o educe he numbe of candidaes fo each ansmied signal. :

More information

General Non-Arbitrage Model. I. Partial Differential Equation for Pricing A. Traded Underlying Security

General Non-Arbitrage Model. I. Partial Differential Equation for Pricing A. Traded Underlying Security 1 Geneal Non-Abiage Model I. Paial Diffeenial Equaion fo Picing A. aded Undelying Secuiy 1. Dynamics of he Asse Given by: a. ds = µ (S, )d + σ (S, )dz b. he asse can be eihe a sock, o a cuency, an index,

More information

Combinatorial Approach to M/M/1 Queues. Using Hypergeometric Functions

Combinatorial Approach to M/M/1 Queues. Using Hypergeometric Functions Inenaional Mahemaical Foum, Vol 8, 03, no 0, 463-47 HIKARI Ld, wwwm-hikaicom Combinaoial Appoach o M/M/ Queues Using Hypegeomeic Funcions Jagdish Saan and Kamal Nain Depamen of Saisics, Univesiy of Delhi,

More information

Lecture 18: Kinetics of Phase Growth in a Two-component System: general kinetics analysis based on the dilute-solution approximation

Lecture 18: Kinetics of Phase Growth in a Two-component System: general kinetics analysis based on the dilute-solution approximation Lecue 8: Kineics of Phase Gowh in a Two-componen Sysem: geneal kineics analysis based on he dilue-soluion appoximaion Today s opics: In he las Lecues, we leaned hee diffeen ways o descibe he diffusion

More information

The sudden release of a large amount of energy E into a background fluid of density

The sudden release of a large amount of energy E into a background fluid of density 10 Poin explosion The sudden elease of a lage amoun of enegy E ino a backgound fluid of densiy ceaes a song explosion, chaaceized by a song shock wave (a blas wave ) emanaing fom he poin whee he enegy

More information

Extremal problems for t-partite and t-colorable hypergraphs

Extremal problems for t-partite and t-colorable hypergraphs Exemal poblems fo -paie and -coloable hypegaphs Dhuv Mubayi John Talbo June, 007 Absac Fix ineges and an -unifom hypegaph F. We pove ha he maximum numbe of edges in a -paie -unifom hypegaph on n veices

More information

The shortest path between two truths in the real domain passes through the complex domain. J. Hadamard

The shortest path between two truths in the real domain passes through the complex domain. J. Hadamard Complex Analysis R.G. Halbud R.Halbud@ucl.ac.uk Depamen of Mahemaics Univesiy College London 202 The shoes pah beween wo uhs in he eal domain passes hough he complex domain. J. Hadamad Chape The fis fundamenal

More information

CS 188: Artificial Intelligence Fall Probabilistic Models

CS 188: Artificial Intelligence Fall Probabilistic Models CS 188: Aificial Inelligence Fall 2007 Lecue 15: Bayes Nes 10/18/2007 Dan Klein UC Bekeley Pobabilisic Models A pobabilisic model is a join disibuion ove a se of vaiables Given a join disibuion, we can

More information

, on the power of the transmitter P t fed to it, and on the distance R between the antenna and the observation point as. r r t

, on the power of the transmitter P t fed to it, and on the distance R between the antenna and the observation point as. r r t Lecue 6: Fiis Tansmission Equaion and Rada Range Equaion (Fiis equaion. Maximum ange of a wieless link. Rada coss secion. Rada equaion. Maximum ange of a ada. 1. Fiis ansmission equaion Fiis ansmission

More information

Approximate String Matching. Department of Computer Science. University of Chile. Blanco Encalada Santiago - Chile

Approximate String Matching. Department of Computer Science. University of Chile. Blanco Encalada Santiago - Chile Very Fas and Simple Approximae Sring Maching Gonzalo Navarro Ricardo Baeza-Yaes Deparmen of Compuer Science Universiy of Chile Blanco Encalada 2120 - Saniago - Chile fgnavarro,rbaezag@dcc.uchile.cl Absrac

More information

On Control Problem Described by Infinite System of First-Order Differential Equations

On Control Problem Described by Infinite System of First-Order Differential Equations Ausalian Jounal of Basic and Applied Sciences 5(): 736-74 ISS 99-878 On Conol Poblem Descibed by Infinie Sysem of Fis-Ode Diffeenial Equaions Gafujan Ibagimov and Abbas Badaaya J'afau Insiue fo Mahemaical

More information

Variance and Covariance Processes

Variance and Covariance Processes Vaiance and Covaiance Pocesses Pakash Balachandan Depamen of Mahemaics Duke Univesiy May 26, 2008 These noes ae based on Due s Sochasic Calculus, Revuz and Yo s Coninuous Maingales and Bownian Moion, Kaazas

More information

Lecture 22 Electromagnetic Waves

Lecture 22 Electromagnetic Waves Lecue Elecomagneic Waves Pogam: 1. Enegy caied by he wave (Poyning veco).. Maxwell s equaions and Bounday condiions a inefaces. 3. Maeials boundaies: eflecion and efacion. Snell s Law. Quesions you should

More information

Orthotropic Materials

Orthotropic Materials Kapiel 2 Ohoopic Maeials 2. Elasic Sain maix Elasic sains ae elaed o sesses by Hooke's law, as saed below. The sesssain elaionship is in each maeial poin fomulaed in he local caesian coodinae sysem. ε

More information

On The Estimation of Two Missing Values in Randomized Complete Block Designs

On The Estimation of Two Missing Values in Randomized Complete Block Designs Mahemaical Theoy and Modeling ISSN 45804 (Pape ISSN 505 (Online Vol.6, No.7, 06 www.iise.og On The Esimaion of Two Missing Values in Randomized Complee Bloc Designs EFFANGA, EFFANGA OKON AND BASSE, E.

More information

Lecture 17: Kinetics of Phase Growth in a Two-component System:

Lecture 17: Kinetics of Phase Growth in a Two-component System: Lecue 17: Kineics of Phase Gowh in a Two-componen Sysem: descipion of diffusion flux acoss he α/ ineface Today s opics Majo asks of oday s Lecue: how o deive he diffusion flux of aoms. Once an incipien

More information

Quantum Algorithms for Matrix Products over Semirings

Quantum Algorithms for Matrix Products over Semirings CHICAGO JOURNAL OF THEORETICAL COMPUTER SCIENCE 2017, Aicle 1, pages 1 25 hp://cjcscsuchicagoedu/ Quanum Algoihms fo Maix Poducs ove Semiings Fançois Le Gall Haumichi Nishimua Received July 24, 2015; Revised

More information

STUDY OF THE STRESS-STRENGTH RELIABILITY AMONG THE PARAMETERS OF GENERALIZED INVERSE WEIBULL DISTRIBUTION

STUDY OF THE STRESS-STRENGTH RELIABILITY AMONG THE PARAMETERS OF GENERALIZED INVERSE WEIBULL DISTRIBUTION Inenaional Jounal of Science, Technology & Managemen Volume No 04, Special Issue No. 0, Mach 205 ISSN (online): 2394-537 STUDY OF THE STRESS-STRENGTH RELIABILITY AMONG THE PARAMETERS OF GENERALIZED INVERSE

More information

336 ERIDANI kfk Lp = sup jf(y) ; f () jj j p p whee he supemum is aken ove all open balls = (a ) inr n, jj is he Lebesgue measue of in R n, () =(), f

336 ERIDANI kfk Lp = sup jf(y) ; f () jj j p p whee he supemum is aken ove all open balls = (a ) inr n, jj is he Lebesgue measue of in R n, () =(), f TAMKANG JOURNAL OF MATHEMATIS Volume 33, Numbe 4, Wine 2002 ON THE OUNDEDNESS OF A GENERALIED FRATIONAL INTEGRAL ON GENERALIED MORREY SPAES ERIDANI Absac. In his pape we exend Nakai's esul on he boundedness

More information

Online Completion of Ill-conditioned Low-Rank Matrices

Online Completion of Ill-conditioned Low-Rank Matrices Online Compleion of Ill-condiioned Low-Rank Maices Ryan Kennedy and Camillo J. Taylo Compue and Infomaion Science Univesiy of Pennsylvania Philadelphia, PA, USA keny, cjaylo}@cis.upenn.edu Laua Balzano

More information

KINEMATICS OF RIGID BODIES

KINEMATICS OF RIGID BODIES KINEMTICS OF RIGID ODIES In igid body kinemaics, we use he elaionships govening he displacemen, velociy and acceleaion, bu mus also accoun fo he oaional moion of he body. Descipion of he moion of igid

More information

7 Wave Equation in Higher Dimensions

7 Wave Equation in Higher Dimensions 7 Wave Equaion in Highe Dimensions We now conside he iniial-value poblem fo he wave equaion in n dimensions, u c u x R n u(x, φ(x u (x, ψ(x whee u n i u x i x i. (7. 7. Mehod of Spheical Means Ref: Evans,

More information

Molecular Evolution and Phylogeny. Based on: Durbin et al Chapter 8

Molecular Evolution and Phylogeny. Based on: Durbin et al Chapter 8 Molecula Evoluion and hylogeny Baed on: Dubin e al Chape 8. hylogeneic Tee umpion banch inenal node leaf Topology T : bifucaing Leave - N Inenal node N+ N- Lengh { i } fo each banch hylogeneic ee Topology

More information

MEEN 617 Handout #11 MODAL ANALYSIS OF MDOF Systems with VISCOUS DAMPING

MEEN 617 Handout #11 MODAL ANALYSIS OF MDOF Systems with VISCOUS DAMPING MEEN 67 Handou # MODAL ANALYSIS OF MDOF Sysems wih VISCOS DAMPING ^ Symmeic Moion of a n-dof linea sysem is descibed by he second ode diffeenial equaions M+C+K=F whee () and F () ae n ows vecos of displacemens

More information

[ ] 0. = (2) = a q dimensional vector of observable instrumental variables that are in the information set m constituents of u

[ ] 0. = (2) = a q dimensional vector of observable instrumental variables that are in the information set m constituents of u Genealized Mehods of Momens he genealized mehod momens (GMM) appoach of Hansen (98) can be hough of a geneal pocedue fo esing economics and financial models. he GMM is especially appopiae fo models ha

More information

The Production of Polarization

The Production of Polarization Physics 36: Waves Lecue 13 3/31/211 The Poducion of Polaizaion Today we will alk abou he poducion of polaized ligh. We aleady inoduced he concep of he polaizaion of ligh, a ansvese EM wave. To biefly eview

More information

MATHEMATICAL FOUNDATIONS FOR APPROXIMATING PARTICLE BEHAVIOUR AT RADIUS OF THE PLANCK LENGTH

MATHEMATICAL FOUNDATIONS FOR APPROXIMATING PARTICLE BEHAVIOUR AT RADIUS OF THE PLANCK LENGTH Fundamenal Jounal of Mahemaical Phsics Vol 3 Issue 013 Pages 55-6 Published online a hp://wwwfdincom/ MATHEMATICAL FOUNDATIONS FOR APPROXIMATING PARTICLE BEHAVIOUR AT RADIUS OF THE PLANCK LENGTH Univesias

More information

Monochromatic Wave over One and Two Bars

Monochromatic Wave over One and Two Bars Applied Mahemaical Sciences, Vol. 8, 204, no. 6, 307-3025 HIKARI Ld, www.m-hikai.com hp://dx.doi.og/0.2988/ams.204.44245 Monochomaic Wave ove One and Two Bas L.H. Wiyano Faculy of Mahemaics and Naual Sciences,

More information

The Substring Search Problem

The Substring Search Problem The Substing Seach Poblem One algoithm which is used in a vaiety of applications is the family of substing seach algoithms. These algoithms allow a use to detemine if, given two chaacte stings, one is

More information

Probabilistic Models. CS 188: Artificial Intelligence Fall Independence. Example: Independence. Example: Independence? Conditional Independence

Probabilistic Models. CS 188: Artificial Intelligence Fall Independence. Example: Independence. Example: Independence? Conditional Independence C 188: Aificial Inelligence Fall 2007 obabilisic Models A pobabilisic model is a join disibuion ove a se of vaiables Lecue 15: Bayes Nes 10/18/2007 Given a join disibuion, we can eason abou unobseved vaiables

More information

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB Elecronic Companion EC.1. Proofs of Technical Lemmas and Theorems LEMMA 1. Le C(RB) be he oal cos incurred by he RB policy. Then we have, T L E[C(RB)] 3 E[Z RB ]. (EC.1) Proof of Lemma 1. Using he marginal

More information

r P + '% 2 r v(r) End pressures P 1 (high) and P 2 (low) P 1 , which must be independent of z, so # dz dz = P 2 " P 1 = " #P L L,

r P + '% 2 r v(r) End pressures P 1 (high) and P 2 (low) P 1 , which must be independent of z, so # dz dz = P 2  P 1 =  #P L L, Lecue 36 Pipe Flow and Low-eynolds numbe hydodynamics 36.1 eading fo Lecues 34-35: PKT Chape 12. Will y fo Monday?: new daa shee and daf fomula shee fo final exam. Ou saing poin fo hydodynamics ae wo equaions:

More information

Research on the Algorithm of Evaluating and Analyzing Stationary Operational Availability Based on Mission Requirement

Research on the Algorithm of Evaluating and Analyzing Stationary Operational Availability Based on Mission Requirement Reseach on he Algoihm of Evaluaing and Analyzing Saionay Opeaional Availabiliy Based on ission Requiemen Wang Naichao, Jia Zhiyu, Wang Yan, ao Yilan, Depamen of Sysem Engineeing of Engineeing Technology,

More information

arxiv: v1 [math.co] 4 Apr 2019

arxiv: v1 [math.co] 4 Apr 2019 Dieced dominaion in oiened hypegaphs axiv:1904.02351v1 [mah.co] 4 Ap 2019 Yai Cao Dep. of Mahemaics Univesiy of Haifa-Oanim Tivon 36006, Isael yacao@kvgeva.og.il This pape is dedicaed o Luz Volkmann on

More information

AN EVOLUTIONARY APPROACH FOR SOLVING DIFFERENTIAL EQUATIONS

AN EVOLUTIONARY APPROACH FOR SOLVING DIFFERENTIAL EQUATIONS AN EVOLUTIONARY APPROACH FOR SOLVING DIFFERENTIAL EQUATIONS M. KAMESWAR RAO AND K.P. RAVINDRAN Depamen of Mechanical Engineeing, Calicu Regional Engineeing College, Keala-67 6, INDIA. Absac:- We eploe

More information

WORK POWER AND ENERGY Consevaive foce a) A foce is said o be consevaive if he wok done by i is independen of pah followed by he body b) Wok done by a consevaive foce fo a closed pah is zeo c) Wok done

More information

Risk tolerance and optimal portfolio choice

Risk tolerance and optimal portfolio choice Risk oleance and opimal pofolio choice Maek Musiela BNP Paibas London Copoae and Invesmen Join wok wih T. Zaiphopoulou (UT usin) Invesmens and fowad uiliies Pepin 6 Backwad and fowad dynamic uiliies and

More information

An Open cycle and Closed cycle Gas Turbine Engines. Methods to improve the performance of simple gas turbine plants

An Open cycle and Closed cycle Gas Turbine Engines. Methods to improve the performance of simple gas turbine plants An Open cycle and losed cycle Gas ubine Engines Mehods o impove he pefomance of simple gas ubine plans I egeneaive Gas ubine ycle: he empeaue of he exhaus gases in a simple gas ubine is highe han he empeaue

More information

ENGI 4430 Advanced Calculus for Engineering Faculty of Engineering and Applied Science Problem Set 9 Solutions [Theorems of Gauss and Stokes]

ENGI 4430 Advanced Calculus for Engineering Faculty of Engineering and Applied Science Problem Set 9 Solutions [Theorems of Gauss and Stokes] ENGI 44 Avance alculus fo Engineeing Faculy of Engineeing an Applie cience Poblem e 9 oluions [Theoems of Gauss an okes]. A fla aea A is boune by he iangle whose veices ae he poins P(,, ), Q(,, ) an R(,,

More information

Today - Lecture 13. Today s lecture continue with rotations, torque, Note that chapters 11, 12, 13 all involve rotations

Today - Lecture 13. Today s lecture continue with rotations, torque, Note that chapters 11, 12, 13 all involve rotations Today - Lecue 13 Today s lecue coninue wih oaions, oque, Noe ha chapes 11, 1, 13 all inole oaions slide 1 eiew Roaions Chapes 11 & 1 Viewed fom aboe (+z) Roaional, o angula elociy, gies angenial elociy

More information

Unsupervised Segmentation of Moving MPEG Blocks Based on Classification of Temporal Information

Unsupervised Segmentation of Moving MPEG Blocks Based on Classification of Temporal Information Unsupevised Segmenaion of Moving MPEG Blocs Based on Classificaion of Tempoal Infomaion Ofe Mille 1, Ami Avebuch 1, and Yosi Kelle 2 1 School of Compue Science,Tel-Aviv Univesiy, Tel-Aviv 69978, Isael

More information

Relative and Circular Motion

Relative and Circular Motion Relaie and Cicula Moion a) Relaie moion b) Cenipeal acceleaion Mechanics Lecue 3 Slide 1 Mechanics Lecue 3 Slide 2 Time on Video Pelecue Looks like mosly eeyone hee has iewed enie pelecue GOOD! Thank you

More information

Dynamic Estimation of OD Matrices for Freeways and Arterials

Dynamic Estimation of OD Matrices for Freeways and Arterials Novembe 2007 Final Repo: ITS Dynamic Esimaion of OD Maices fo Feeways and Aeials Auhos: Juan Calos Heea, Sauabh Amin, Alexande Bayen, Same Madana, Michael Zhang, Yu Nie, Zhen Qian, Yingyan Lou, Yafeng

More information

ÖRNEK 1: THE LINEAR IMPULSE-MOMENTUM RELATION Calculate the linear momentum of a particle of mass m=10 kg which has a. kg m s

ÖRNEK 1: THE LINEAR IMPULSE-MOMENTUM RELATION Calculate the linear momentum of a particle of mass m=10 kg which has a. kg m s MÜHENDİSLİK MEKANİĞİ. HAFTA İMPULS- MMENTUM-ÇARPIŞMA Linea oenu of a paicle: The sybol L denoes he linea oenu and is defined as he ass ies he elociy of a paicle. L ÖRNEK : THE LINEAR IMPULSE-MMENTUM RELATIN

More information

Numerical solution of fuzzy differential equations by Milne s predictor-corrector method and the dependency problem

Numerical solution of fuzzy differential equations by Milne s predictor-corrector method and the dependency problem Applied Maemaics and Sciences: An Inenaional Jounal (MaSJ ) Vol. No. Augus 04 Numeical soluion o uzz dieenial equaions b Milne s pedico-coeco meod and e dependenc poblem Kanagaajan K Indakuma S Muukuma

More information

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17 EES 16A Designing Informaion Devices and Sysems I Spring 019 Lecure Noes Noe 17 17.1 apaciive ouchscreen In he las noe, we saw ha a capacior consiss of wo pieces on conducive maerial separaed by a nonconducive

More information

EFFECT OF PERMISSIBLE DELAY ON TWO-WAREHOUSE INVENTORY MODEL FOR DETERIORATING ITEMS WITH SHORTAGES

EFFECT OF PERMISSIBLE DELAY ON TWO-WAREHOUSE INVENTORY MODEL FOR DETERIORATING ITEMS WITH SHORTAGES Volume, ssue 3, Mach 03 SSN 39-4847 EFFEC OF PERMSSBLE DELAY ON WO-WAREHOUSE NVENORY MODEL FOR DEERORANG EMS WH SHORAGES D. Ajay Singh Yadav, Ms. Anupam Swami Assisan Pofesso, Depamen of Mahemaics, SRM

More information

Support Vector Machines

Support Vector Machines Suppo Veco Machine CSL 3 ARIFICIAL INELLIGENCE SPRING 4 Suppo Veco Machine O, Kenel Machine Diciminan-baed mehod olean cla boundaie Suppo veco coni of eample cloe o bounday Kenel compue imilaiy beeen eample

More information

Chapter 7. Interference

Chapter 7. Interference Chape 7 Inefeence Pa I Geneal Consideaions Pinciple of Supeposiion Pinciple of Supeposiion When wo o moe opical waves mee in he same locaion, hey follow supeposiion pinciple Mos opical sensos deec opical

More information

156 There are 9 books stacked on a shelf. The thickness of each book is either 1 inch or 2

156 There are 9 books stacked on a shelf. The thickness of each book is either 1 inch or 2 156 Thee ae 9 books sacked on a shelf. The hickness of each book is eihe 1 inch o 2 F inches. The heigh of he sack of 9 books is 14 inches. Which sysem of equaions can be used o deemine x, he numbe of

More information

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle Chaper 2 Newonian Mechanics Single Paricle In his Chaper we will review wha Newon s laws of mechanics ell us abou he moion of a single paricle. Newon s laws are only valid in suiable reference frames,

More information

Chapter Finite Difference Method for Ordinary Differential Equations

Chapter Finite Difference Method for Ordinary Differential Equations Chape 8.7 Finie Diffeence Mehod fo Odinay Diffeenial Eqaions Afe eading his chape, yo shold be able o. Undesand wha he finie diffeence mehod is and how o se i o solve poblems. Wha is he finie diffeence

More information

Kalman Filter: an instance of Bayes Filter. Kalman Filter: an instance of Bayes Filter. Kalman Filter. Linear dynamics with Gaussian noise

Kalman Filter: an instance of Bayes Filter. Kalman Filter: an instance of Bayes Filter. Kalman Filter. Linear dynamics with Gaussian noise COM47 Inoducion o Roboics and Inelligen ysems he alman File alman File: an insance of Bayes File alman File: an insance of Bayes File Linea dynamics wih Gaussian noise alman File Linea dynamics wih Gaussian

More information

A Bijective Approach to the Permutational Power of a Priority Queue

A Bijective Approach to the Permutational Power of a Priority Queue A Bijective Appoach to the Pemutational Powe of a Pioity Queue Ia M. Gessel Kuang-Yeh Wang Depatment of Mathematics Bandeis Univesity Waltham, MA 02254-9110 Abstact A pioity queue tansfoms an input pemutation

More information

Reichenbach and f-generated implications in fuzzy database relations

Reichenbach and f-generated implications in fuzzy database relations INTERNATIONAL JOURNAL O CIRCUITS SYSTEMS AND SIGNAL PROCESSING Volume 08 Reichenbach and f-geneaed implicaions in fuzzy daabase elaions Nedžad Dukić Dženan Gušić and Nemana Kajmoić Absac Applying a definiion

More information

Two-dimensional Effects on the CSR Interaction Forces for an Energy-Chirped Bunch. Rui Li, J. Bisognano, R. Legg, and R. Bosch

Two-dimensional Effects on the CSR Interaction Forces for an Energy-Chirped Bunch. Rui Li, J. Bisognano, R. Legg, and R. Bosch Two-dimensional Effecs on he CS Ineacion Foces fo an Enegy-Chiped Bunch ui Li, J. Bisognano,. Legg, and. Bosch Ouline 1. Inoducion 2. Pevious 1D and 2D esuls fo Effecive CS Foce 3. Bunch Disibuion Vaiaion

More information

CHAPTER 12 DIRECT CURRENT CIRCUITS

CHAPTER 12 DIRECT CURRENT CIRCUITS CHAPTER 12 DIRECT CURRENT CIUITS DIRECT CURRENT CIUITS 257 12.1 RESISTORS IN SERIES AND IN PARALLEL When wo resisors are conneced ogeher as shown in Figure 12.1 we said ha hey are conneced in series. As

More information

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3 and d = c b - b c c d = c b - b c c This process is coninued unil he nh row has been compleed. The complee array of coefficiens is riangular. Noe ha in developing he array an enire row may be divided or

More information

Chapter 2. First Order Scalar Equations

Chapter 2. First Order Scalar Equations Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.

More information

Exponential and Logarithmic Equations and Properties of Logarithms. Properties. Properties. log. Exponential. Logarithmic.

Exponential and Logarithmic Equations and Properties of Logarithms. Properties. Properties. log. Exponential. Logarithmic. Eponenial and Logaihmic Equaions and Popeies of Logaihms Popeies Eponenial a a s = a +s a /a s = a -s (a ) s = a s a b = (ab) Logaihmic log s = log + logs log/s = log - logs log s = s log log a b = loga

More information

HOTELLING LOCATION MODEL

HOTELLING LOCATION MODEL HOTELLING LOCATION MODEL THE LINEAR CITY MODEL The Example of Choosing only Locaion wihou Price Compeiion Le a be he locaion of rm and b is he locaion of rm. Assume he linear ransporaion cos equal o d,

More information

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still. Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in

More information

A Study on Non-Binary Turbo Codes

A Study on Non-Binary Turbo Codes A Sudy on Non-Binay Tubo Codes Hoia BALTA, Maia KOVACI Univesiy Polyechnic of Timişoaa, Faculy of Eleconics and Telecommunicaions, Posal Addess, 3223 Timişoaa, ROMANIA, E-Mail: hoia.bala@ec.u.o, maia.kovaci@ec.u.o

More information

EVENT HORIZONS IN COSMOLOGY

EVENT HORIZONS IN COSMOLOGY Mahemaics Today Vol7(Dec-)54-6 ISSN 976-38 EVENT HORIZONS IN COSMOLOGY K Punachanda Rao Depamen of Mahemaics Chiala Engineeing College Chiala 53 57 Andha Padesh, INDIA E-mail: dkpaocecc@yahoocoin ABSTRACT

More information

Distribution Free Evolvability of Polynomial Functions over all Convex Loss Functions

Distribution Free Evolvability of Polynomial Functions over all Convex Loss Functions Disibuion Fee Evolvabiliy of Polynomial Funcions ove all Convex Loss Funcions Paul Valian UC Beeley Beeley, Califonia pvalian@gmail.com ABSTRACT We fomulae a noion of evolvabiliy fo funcions wih domain

More information

Chapter 7: Solving Trig Equations

Chapter 7: Solving Trig Equations Haberman MTH Secion I: The Trigonomeric Funcions Chaper 7: Solving Trig Equaions Le s sar by solving a couple of equaions ha involve he sine funcion EXAMPLE a: Solve he equaion sin( ) The inverse funcions

More information

Circular Motion. Radians. One revolution is equivalent to which is also equivalent to 2π radians. Therefore we can.

Circular Motion. Radians. One revolution is equivalent to which is also equivalent to 2π radians. Therefore we can. 1 Cicula Moion Radians One evoluion is equivalen o 360 0 which is also equivalen o 2π adians. Theefoe we can say ha 360 = 2π adians, 180 = π adians, 90 = π 2 adians. Hence 1 adian = 360 2π Convesions Rule

More information

Physics 2001/2051 Moments of Inertia Experiment 1

Physics 2001/2051 Moments of Inertia Experiment 1 Physics 001/051 Momens o Ineia Expeimen 1 Pelab 1 Read he ollowing backgound/seup and ensue you ae amilia wih he heoy equied o he expeimen. Please also ill in he missing equaions 5, 7 and 9. Backgound/Seup

More information

Notes for Lecture 17-18

Notes for Lecture 17-18 U.C. Berkeley CS278: Compuaional Complexiy Handou N7-8 Professor Luca Trevisan April 3-8, 2008 Noes for Lecure 7-8 In hese wo lecures we prove he firs half of he PCP Theorem, he Amplificaion Lemma, up

More information

On Energy-Efficient Node Deployment in Wireless Sesnor Networks

On Energy-Efficient Node Deployment in Wireless Sesnor Networks I J Communicaions, Newok and Sysem Sciences, 008, 3, 07-83 Published Online Augus 008 in Scies (hp://wwwscipog/jounal/ijcns/) On Enegy-Efficien Node Deploymen in Wieless Sesno Newoks Hui WANG 1, KeZhong

More information

Let us start with a two dimensional case. We consider a vector ( x,

Let us start with a two dimensional case. We consider a vector ( x, Roaion marices We consider now roaion marices in wo and hree dimensions. We sar wih wo dimensions since wo dimensions are easier han hree o undersand, and one dimension is a lile oo simple. However, our

More information

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t... Mah 228- Fri Mar 24 5.6 Marix exponenials and linear sysems: The analogy beween firs order sysems of linear differenial equaions (Chaper 5) and scalar linear differenial equaions (Chaper ) is much sronger

More information

Bayes Nets. CS 188: Artificial Intelligence Spring Example: Alarm Network. Building the (Entire) Joint

Bayes Nets. CS 188: Artificial Intelligence Spring Example: Alarm Network. Building the (Entire) Joint C 188: Aificial Inelligence ping 2008 Bayes Nes 2/5/08, 2/7/08 Dan Klein UC Bekeley Bayes Nes A Bayes ne is an efficien encoding of a pobabilisic model of a domain Quesions we can ask: Infeence: given

More information

Final Spring 2007

Final Spring 2007 .615 Final Spring 7 Overview The purpose of he final exam is o calculae he MHD β limi in a high-bea oroidal okamak agains he dangerous n = 1 exernal ballooning-kink mode. Effecively, his corresponds o

More information

Online Ranking by Projecting

Online Ranking by Projecting LETTER Communicaed by Edwad Haingon Online Ranking by Pojecing Koby Camme kobics@cs.huji.ac.il Yoam Singe singe@cs.huji.ac.il School of Compue Science and Engineeing, Hebew Univesiy, Jeusalem 91904, Isael

More information

Lecture 20: Riccati Equations and Least Squares Feedback Control

Lecture 20: Riccati Equations and Least Squares Feedback Control 34-5 LINEAR SYSTEMS Lecure : Riccai Equaions and Leas Squares Feedback Conrol 5.6.4 Sae Feedback via Riccai Equaions A recursive approach in generaing he marix-valued funcion W ( ) equaion for i for he

More information

The k-filtering Applied to Wave Electric and Magnetic Field Measurements from Cluster

The k-filtering Applied to Wave Electric and Magnetic Field Measurements from Cluster The -fileing pplied o Wave lecic and Magneic Field Measuemens fom Cluse Jean-Louis PINÇON and ndes TJULIN LPC-CNRS 3 av. de la Recheche Scienifique 4507 Oléans Fance jlpincon@cns-oleans.f OUTLINS The -fileing

More information

A Weighted Moving Average Process for Forecasting. Shou Hsing Shih Chris P. Tsokos

A Weighted Moving Average Process for Forecasting. Shou Hsing Shih Chris P. Tsokos A Weighed Moving Aveage Pocess fo Foecasing Shou Hsing Shih Chis P. Tsokos Depamen of Mahemaics and Saisics Univesiy of Souh Floida, USA Absac The objec of he pesen sudy is o popose a foecasing model fo

More information

Secure Frameproof Codes Through Biclique Covers

Secure Frameproof Codes Through Biclique Covers Discee Mahemaics and Theoeical Compue Science DMTCS vol. 4:2, 202, 26 270 Secue Famepoof Codes Though Biclique Coves Hossein Hajiabolhassan,2 and Faokhlagha Moazami 3 Depamen of Mahemaical Sciences, Shahid

More information

Linear Response Theory: The connection between QFT and experiments

Linear Response Theory: The connection between QFT and experiments Phys540.nb 39 3 Linear Response Theory: The connecion beween QFT and experimens 3.1. Basic conceps and ideas Q: How do we measure he conduciviy of a meal? A: we firs inroduce a weak elecric field E, and

More information

( ) exp i ω b ( ) [ III-1 ] exp( i ω ab. exp( i ω ba

( ) exp i ω b ( ) [ III-1 ] exp( i ω ab. exp( i ω ba THE INTEACTION OF ADIATION AND MATTE: SEMICLASSICAL THEOY PAGE 26 III. EVIEW OF BASIC QUANTUM MECHANICS : TWO -LEVEL QUANTUM SYSTEMS : The lieaue of quanum opics and lase specoscop abounds wih discussions

More information

A note on characterization related to distributional properties of random translation, contraction and dilation of generalized order statistics

A note on characterization related to distributional properties of random translation, contraction and dilation of generalized order statistics PobSa Foum, Volume 6, July 213, Pages 35 41 ISSN 974-3235 PobSa Foum is an e-jounal. Fo eails please visi www.pobsa.og.in A noe on chaaceizaion elae o isibuional popeies of anom anslaion, conacion an ilaion

More information

ON 3-DIMENSIONAL CONTACT METRIC MANIFOLDS

ON 3-DIMENSIONAL CONTACT METRIC MANIFOLDS Mem. Fac. Inegaed As and Sci., Hioshima Univ., Se. IV, Vol. 8 9-33, Dec. 00 ON 3-DIMENSIONAL CONTACT METRIC MANIFOLDS YOSHIO AGAOKA *, BYUNG HAK KIM ** AND JIN HYUK CHOI ** *Depamen of Mahemaics, Faculy

More information

Design Guideline for Buried Hume Pipe Subject to Coupling Forces

Design Guideline for Buried Hume Pipe Subject to Coupling Forces Design Guideline fo Buied Hume Pipe Sujec o Coupling Foces Won Pyo Hong 1), *Seongwon Hong 2), and Thomas Kang 3) 1) Depamen of Civil, nvionmenal and Plan ngineeing, Chang-Ang Univesiy, Seoul 06974, Koea

More information

Pressure Vessels Thin and Thick-Walled Stress Analysis

Pressure Vessels Thin and Thick-Walled Stress Analysis Pessue Vessels Thin and Thick-Walled Sess Analysis y James Doane, PhD, PE Conens 1.0 Couse Oveview... 3.0 Thin-Walled Pessue Vessels... 3.1 Inoducion... 3. Sesses in Cylindical Conaines... 4..1 Hoop Sess...

More information

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon 3..3 INRODUCION O DYNAMIC OPIMIZAION: DISCREE IME PROBLEMS A. he Hamilonian and Firs-Order Condiions in a Finie ime Horizon Define a new funcion, he Hamilonian funcion, H. H he change in he oal value of

More information

Traversal of a subtree is slow, which affects prefix and range queries.

Traversal of a subtree is slow, which affects prefix and range queries. Compac Tries Tries suffer from a large number nodes, Ω( R ) in he wors case. The space requiremen is large, since each node needs much more space han a single symbol. Traversal of a subree is slow, which

More information

Inventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions

Inventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions Muli-Period Sochasic Models: Opimali of (s, S) Polic for -Convex Objecive Funcions Consider a seing similar o he N-sage newsvendor problem excep ha now here is a fixed re-ordering cos (> 0) for each (re-)order.

More information

PHYS PRACTICE EXAM 2

PHYS PRACTICE EXAM 2 PHYS 1800 PRACTICE EXAM Pa I Muliple Choice Quesions [ ps each] Diecions: Cicle he one alenaive ha bes complees he saemen o answes he quesion. Unless ohewise saed, assume ideal condiions (no ai esisance,

More information

Servomechanism Design

Servomechanism Design Sevomechanism Design Sevomechanism (sevo-sysem) is a conol sysem in which he efeence () (age, Se poin) changes as ime passes. Design mehods PID Conol u () Ke P () + K I ed () + KDe () Sae Feedback u()

More information

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence MATH 433/533, Fourier Analysis Secion 6, Proof of Fourier s Theorem for Poinwise Convergence Firs, some commens abou inegraing periodic funcions. If g is a periodic funcion, g(x + ) g(x) for all real x,

More information

New problems in universal algebraic geometry illustrated by boolean equations

New problems in universal algebraic geometry illustrated by boolean equations New poblems in univesal algebaic geomety illustated by boolean equations axiv:1611.00152v2 [math.ra] 25 Nov 2016 Atem N. Shevlyakov Novembe 28, 2016 Abstact We discuss new poblems in univesal algebaic

More information

Improving an Algorithm for Approximate Pattern Matching. University of Chile. Blanco Encalada Santiago - Chile.

Improving an Algorithm for Approximate Pattern Matching. University of Chile. Blanco Encalada Santiago - Chile. Improving an Algorihm for Approximae Paern Maching Gonzalo Navarro Ricardo Baeza-Yaes Deparmen of Compuer Science Universiy of Chile Blanco Encalada - Saniago - Chile fgnavarro,rbaezag@dcc.uchile.cl Absrac

More information

Some Basic Information about M-S-D Systems

Some Basic Information about M-S-D Systems Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,

More information