Edit Distance with Duplications and Contractions Revisited - Supplementary Materials

Size: px
Start display at page:

Download "Edit Distance with Duplications and Contractions Revisited - Supplementary Materials"

Transcription

1 Edt Dstance wth Duplcatons and Contractons Revsted - Supplementary Materals Tamar Pnhas, Dekel Tsur, Shay Zakov, and Mchal Zv-Ukelson Department of Computer Scence Ben-Guron Unversty of the Negev, Israel {matuskat, dekelts, zakovs, mchaluz}@cs.bgu.ac.l 1 Correctness of the recursve computaton In ths secton we show that the basc recurson gven, n Secton 2.2 n the paper, s correct. Call an edt scrpt whch contans only mutatons, duplcatons, and nsertons, a generatng edt scrpt, and an edt scrpt whch contans only mutatons, contractons, and deletons, a reducng edt scrpt. Consder the case of a generatng edt scrpt s = u 0 u 1... u l = t. For each letter u k n some ntermedate strng u k, t s possble to defne a letter u k 1 n uk 1 whch generated t: u k was ether obtaned by takng some letter u k 1 as s or by mutatng t, or by duplcatng some letter uk 1, or obtaned by an nserton next to some letter u k 1 n whch case the generatng letter uk 1 s arbtrarly chosen to be the letter before or after the nserton poston. Thus, n a transtve manner, t s possble to defne for every letter n t ts unque generatng letter n s. It s straghtforward to observe that the set of letters n t generated by some letter s n s corresponds to some consecutve substrng t of t. Also, t s clear that f the edt scrpt s an optmal scrpt from s nto t, then the sub-sequence of edt operatons whch generated t from s s an optmal generatng scrpt from s nto t. The case of a reducng edt scrpt from s nto t s symmetrc, where n ths case we may thnk of every letter t n t as the outcome of reducng some substrng s of s. s s 0 s 1 s 2 s r = s k, w w 0 w 1 w 2... w r = α t t 0 t 1 t 2 t r = t l, Fg. 1: An edt of two strngs va a common ancestral strng w. The followng lemma restates a lemma presented and proven n [2]. Lemma 1.1 [Lemma 2 n [2]] For every par of strngs s and t, there s an optmal edt scrpt from s nto t n whch all deletons and contractons are performed pror to all nsertons and duplcatons. Let s and t be two strngs, and consder an optmal edt scrpt s = u 0 u 1... u l = t of the form mpled by the above Lemma. Let w = u k be the ntermedate strng whch s obtaned rght after performng all deletons and contractons, and before performng any nserton or duplcaton. Note that the prefx of the scrpt s = u 0... u k = w s a reducng edt scrpt, where the suffx of the scrpt w = u k... u l = t s a generatng edt scrpt. Thus, each letter w n w s obtaned by applyng a reducng scrpt on some substrng s of s, and s transformed to some substrng t of t by applyng a generatng scrpt see Fg. 1. Due to the optmalty of the scrpt from s to t, t s clear that the costs of these substrng-letter edt scrpts are of the forms ed s, w and ed w, t. Consder a prefx s 0, of s and a prefx t 0, of t. As shown n Fg 1, ed s 0,, t 0, can be computed recursvely by fndng the best possble rght-most letter α n an optmal ntermedate strng w. Ths letter s found by examnng all letters n the alphabet and all parttons of s 0, and t 0, at ndces k and l, correspondngly, such that both s k, and t l, are reduced or generated, correspondngly from α. Ths yelds the computaton exhbted by Eq. 2.1 n the paper.

2 2 Tamar Pnhas, Dekel Tsur, Shay Zakov, and Mchal Zv-Ukelson 2 Fnte number of steps for dscrete costs In ths secton, we show that f the set of costs s dscrete then the matrces T α,s α, T D and T D α are D-dscrete matrces. Ths requrement was dscussed n Secton 5.1 n the paper. We start wth a short dscusson on how values are dealt wth, n an otherwse D-dscrete matrx. Recall that, accordng to the defntons of the matrces used by our algorthms, these matrces hold the ntal value of n some cells. Specfcally, the matrces T α and S α hold the value n the lower trangle of the matrx throughout the algorthm. The matrces T D α and T D hold the value as an ntal value n all cells. These values are replaced by real ones accordng to the executon of the algorthm. In practce, however, the value of can be replaced n a matrx by suffcently large nteger values, that acts as placeholders for and allow both an unaltered computaton of the mn value, whle at the same tme mantanng the dscreteness of the matrx. Specfcally, that placeholder may be set as follows. Let B be a matrx wth some values n an outer regon e.g. lower trangle of the matrx and assume that the property of dscreteness holds for all adacent cells n B that have values whch are not. Then, for adacent cells B, = val and B, = we set B, = val + 2D. For valued cells n the column or row of, the value s also set to val + 2D. We call B, B, for two adacent cells a step n B. In Lemma 2.1 we show that the steps of any edt dstance matrx are bounded. Then, n Lemma 2.2 we show that f the set of costs s dscrete and the steps n a matrx are bounded then the matrx s D-dscrete. The proof s smlar to the one gven n Masek and Paterson s paper [6] for smple edt dstance. Lemma 2.1 For any two strngs s, t the set of steps n an edt dstance matrx of s and t s bounded. Proof. Let B be an edt dstance matrx. We show that there exsts a constant b such that for every par of ndces,, B[ + 1, ] B[, ] b and B[, + 1] B[, ] b. Our argument uses an optmal edt scrpt for a par of substrngs correspondng to a certan cell n B to construct an edt scrpt for a slghtly dfferent par of substrng correspondng to the neghborng cell n B. Thus, the optmal value of the neghborng cell s bounded by the cost of the construct edt scrpt. The edt scrpt transformng s 0,+1 nto t 0, can be composed by frst deletng s +1 and then transformng s 0, nto t 0,, hence B[ + 1, ] dels +1 + B[, ]. Smlarly, the edt scrpt of s 0, nto t 0, can be composed by frst nsertng s +1 and then transformng s 0,+1 nto t 0,, hence B[, ] nss +1 +B[+1, ]. Thus, nss +1 B[ + 1, ] B[, ] dels +1. A smlar argument holds for B[, + 1] B[, ]. Lemma 2.2 If the set of costs s dscrete then the set of possble steps n edt dstance matrces s fnte. Proof. Let Q denote a dscrete set of operaton costs cost functons mappng nto the ratonal numbers are always dscrete [6]. Any element of an edt matrx s the sum of the costs of a seres of edt operatons. Therefore, the steps are a lnear ntegral combnaton of Q. By Lemma 2.1, there exsts a constant b such that < b for any possble step. Snce Q s dscrete, there exsts a real number r > 0 such that every step s a multple of r. Hence, there are at most 2 b/r + 1 possble steps. 3 Omtted lemma proofs In ths secton we gve proofs for lemmas 1 appearng n Secton 5.2 n the paper. Lemma 1 Let X n k and Y k m be two D-dscrete matrces. Then, Z = X Y s also a D-dscrete matrx. Let X n m and Y n m be two D-dscrete matrces. Then, Z = X Y s also a D-dscrete matrx. Proof. Part 1. Let D = [a, b]. Consder a par of adacent entres of the form Z, and Z +1,, and let r 1 and r 2 be ndces such that Z, = X,r1 + Y r1,, and Z +1, = X +1,r2 + Y r2,. Then: Z +1, Z, = X +1,r2 + Y r2, X,r1 + Y r1, X +1,r1 + Y r1, X,r1 + Y r1, = X +1,r1 X,r1 b.

3 Edt Dstance wth Duplcatons and Contractons Revsted - Supplementary Materals 3 Smlarly, t can be shown that Z +1, Z, a, as well as the symmetrc case of adacent entres of the form Z, and Z,+1. Part 2. Let D = [a, b], and consder a par of adacent entres Z, and Z +1, n Z. Then Z +1, Z, = mnx +1,, Y +1, mnx,, Y, mnx, + b, Y, + b mnx,, Y, = b. Smlarly, t can be shown that Z +1, Z, a, as well as the symmetrc case of adacent entres of the form Z, and Z,+1. Lemma 2 Let x = 0, x and y = y 0, y be two D-dscrete vectors of length q. If y 0 D 1q 1, then x y = x. Proof. Let D = [a, b]. Snce the dfference between each par of adacent entres n x s at least a and at most b, and snce the frst entry x 0 n x equals 0, each entry x of x satsfes a x b. Smlarly, each entry y of y satsfes y 0 + a y y 0 + b. Therefore, y 0 b + a y x y 0 + b a, and thus y 0 q 1 D 1 y x y 0 + q 1 D 1. It follows that f y 0 q 1 D 1, then y x 0 for every 0 q 1, and thus x = mnx, y for every 0 q 1, and x y = x. The case where y 0 q 1 D 1 s symmetrc. 4 Tme complexty analyss of run-length encoded EDDC In ths secton we elaborate the tme complexty analyss of the algorthm presented n Secton 4.2 n the paper. Theorem 4.1 Applyng mn-plus square matrx multplcaton to run-length encoded EDDC yelds an O Σ n 2 + nn 2 log 3 log n tme algorthm. log 2 n Proof. Let Mn denote the tme complexty of performng a mn-plus multplcaton of two n n matrces. The currently fastest algorthm for mn-plus matrx multplcaton s due to Chan [3], wth the runnng tme of O. n 3 log 3 log n log 2 n Let T n, m, n, m denote the tme complexty of the algorthm, descrbed n Secton 4.2 n the paper, when runnng on two strngs of lengths n and m, wth n and m runs, respectvely. Consder the case when n > 1 and m > 1. At the frst level of the recurson, the COMPUTE procedure parttons the regon [1, n] [1, m] nto two subregons [1, n 1 ] [1, m] and [n 1 + 1, n] [1, m] for some nteger n 1. In the next level of the recurson, each of these two subregons s parttoned horzontally: the frst subregon s parttoned nto the subregons R 1 = [1, n 1 ] [1, m 1 ] and R 2 = [1, n 1 ] [m 1 + 1, m], and the second subregon s parttoned to the subregons R 3 = [n 1 + 1, n] [1, m 1 ] and R 4 = [n 1 + 1, n] [m 1 +1, m]. Due to the defnton of the partton stage, the recursve call to COMPUTER 1 takes T n 1, m 1, n /2, m /2 tme, and a smlar expresson holds for the recursve calls on R 2, R 3, and R 4. We also need to account for the tme of the update stages performed on the frst two levels of the recurson: one update stage s performed on the frst level, and two stages are performed on the second level. The update stage on the frst level has two steps. The frst step requres Σ mn-plus matrx multplcatons, where each multplcaton s of an n 2 n matrx by an n m matrx. Each such multplcaton can be performed n O m /n Mn /2 tme by parttonng the two matrces nto n 2 n 2 submatrces and performng O m /n multplcatons between the submatrces. The second step requres Σ mn-plus matrx multplcatons, where each multplcaton s of an n 2 n matrx by an n m m matrx. Agan, by parttonng the matrces nto n 2 n 2 submatrces, ths step can be performed n O Σ m/n Mn /2 tme. Smlarly, the updates of the second level of the recurson can be done n O Σ n/m Mm /2 tme by performng O Σ n/m multplcatons of m 2 m 2 matrces.

4 4 Tamar Pnhas, Dekel Tsur, Shay Zakov, and Mchal Zv-Ukelson Smlar analyss of the other cases gves the followng recurrence. T n 1, m 1, n /2, m /2 +T n n 1, m 1, n /2, m /2 max n 1,m 1 +T n 1, m m 1, n /2, m /2 T n, m, n, m +T n n 1, m m 1, n /2, m /2 m n +c Σ n Mn /2 + m Mm /2 T n1, m, n /2, 1 max n 1 max m 1 +T n n 1, m, n /2, 1 m +c Σ n Mn /2 T n, m 1, 1, m /2 +c Σ c Σ nm +T n, m m 1, 1, m /2 n m Mm /2 f n > 1, m > 1 f n > 1, m = 1 f n = 1, m > 1 otherwse for some constant c. It s easy to show by nducton that T n, m, n, m = O Σ nm + Σ m n Mn /2 + n m Mm /2. 5 Tme complexty analyss of the fast D-dscrete matrx-vector multplcaton algorthm. In ths secton we prove the tme complexty analyss of the algorthm presented n Secton 5.2 n the paper. Theorem 5.1 Gven an n m D-dscrete matrx A and an m-length D-dscrete vector x, Fast D-dscrete Matrx-Vector Multplcaton A x can be computed n O nm log 2 n tme. Proof. Choose q = log D n 2 = Olog n note that D s a constant whch s ndependent of n. For smplcty of the presentaton, we assume that m = On, and that q dvdes both n and m. Note that the number D q 1 of dfference sequences x of length q 1 satsfes D q 1 = n/ D. Under the RAM model assumptons, we may assume that representng an nteger n the range [0, On] requres a constant amount of space, and that readng and wrtng an nteger n ths range, as well as accessng an entry n a table accordng to an ndex n ths range, can be performed n constant tme. There are nm/q 2 blocks B = A Q,Q n the decomposton of A. Each computaton of a table MUL B requres to perform the multplcaton of B wth all O n canoncal q-length vectors, where the tme for computng each such multplcaton s Oq 2. Thus, the overall tme for computng all lookup tables MUL B s Omn 1.5. In the lookup table MIN, there are Oq D 2q = On log n entres, each s computed n Oq = Olog n tme, thus ts computaton requres On log 2 n tme. Therefore, the overall processng tme of A s Omn n log 2 n = Omn 1.5. When computng a multplcaton A x, the algorthm frst computes all -encodngs of q-length sub-vectors x Q of x. Ths can be done n Om tme, n a straghtforward manner. Then, the algorthm computes ndependently On/q sub-vectors y Q n the result. In each computaton of a sub-vector y Q there are Om/q computatons of the form A Q,Q x Q, as well as Om/q applcatons of the operator over ntermedate computed D-dscrete q-length vectors. As we descrbed, each such computaton s mplemented by performng a constant number of operatons ncludng one lookup table query, and thus the overall tme for computng A x s Omn/q 2 = O. mn log 2 n The algorthm has an addtonal valuable property: f A s extended by addng columns or rows, correspondng addtonal lookup tables MUL B can be computed n tme proportonal only to the amount of added data. After each addton of q columns, the algorthm computes addtonal n/q tables MUL B, n Oqn 1.5 tme. Ths tme s less than the tme spent on matrx-vector multplcatons. Ths property allows for the ncremental approach of the onlne EDDC algorthm descrbed Secton 5.1 n the paper.

5 Edt Dstance wth Duplcatons and Contractons Revsted - Supplementary Materals 5 6 Onlne weghted CFG parsng In ths secton we gve a detaled descrpton of the algorthm outlned n Secton 5.1 n the paper. The standard algorthm for solvng the Weghted CFG Parsng problem s a modfcaton by Tetelbaum [7] to the well known CKY algorthm [4, 5, 9]. For an nput strng s of length n, parsed accordng to a Chomsky normal form grammar wth N non-termnals, the algorthm mantans N matrces, each of sze n n. Each non-termnal X n the grammar has a correspondng matrx ˆX, where an entry ˆX, reflects the mnmum weght of a parse tree of s, n the grammar, gven that the root node n the tree s X. Note that only cases where correspond to vald substrngs of the nput, thus all matrces ˆX are upper-trangle matrces. As explaned n [10], the computaton of the best dervaton of s, from a rule of the form X Y Z can be expressed as a vector multplcaton of the form Ŷ,[+1, 1] Ẑ[+1, 1],. Followng Valant s algorthm for the non-weghted verson of the problem [8], Akutsu [1] has explaned how to reduce the amortzed tme for computng such vector multplcatons by explotng fast mn-plus matrx multplcaton algorthms see also [10]. Ths algorthm has the runnng tme of ONn 2 + R MP n, where R s the number of bnary dervaton rules n the grammar and M P n s the tme for performng a mn-plus multplcaton of two n n matrces. Usng Chan s algorthm [3], MP n = O n 3 log 3 log n log 2 n. The algorthm s an off-lne algorthm, n the sense t requres the complete nput strng s to be avalable pror to the computaton. In the case where t s guaranteed that the matrces handled by the algorthm are D-dscrete, t s possble to replace the off-lne computaton by an effcent on-lne, column by column computaton, whch explots the fast matrx-vector mn-plus multplcaton descrbed n Secton 5.2 n the paper. Note that there s a small dffculty here to drectly apply the matrx-vector multplcaton approach descrbed there, due to the fact that the multpled vectors consst of entres of column n the matrces, that were not computed yet at the begnnng of the stage n whch the th letter of t s added. Nevertheless, ths dffculty can be overcome as follows. We assume that the fnal length n of the nput strng s known at the begnnng of the run of the algorthm. As n Secton 5.2 n the paper, the algorthm begns by creatng the data structure MIN entry-wse mnmum, for enumerated q-length vectors, where q = log D n 2 n On log 2 n tme. It then receves the letters of the nput one by one. Whenever a letter s s obtaned, the algorthm computes the th column n all matrces ˆX. The algorthm parttons, n an onlne manner, the columns and rows of the matrces nto q szed ntervals denoted Q 0, Q 1,..., Q p. In addton, whenever q computed columns of an nterval Q p accumulate, the algorthm computes lookup table MUL B, as descrbed n Secton 5.2 n the paper, for blocks B = ˆX Qr,Q p such that r < p for all ˆX. Now, consder the computaton of the th column n all matrces ˆX. For every 0 and every rule of the form X Y Z, the algorthm has to compute a vector multplcaton of the form ˆX, = Ŷ,[+1, 1] Ẑ[+1, 1],. 6.1 We show how to use multplcaton of blocks of sze q for most of the computaton of Eq Let p be the column block ndex of the block that ncludes.e. p = /q and let r 1 be the row block ndex of the block that ncludes.e. r 1 = /q. Then the vector multplcaton of Eq. 6.1 can be wrtten as follows Fg. 2: ˆX, = Ŷ,[+1,qr 1] Ẑ[+1,qr 1], Ŷ,[qr,qp 1] Ẑ[qr,qp 1], Ŷ,[qp, 1] Ẑ[qp, 1], For a gven nterval [qr, qp 1], t s possble to compute Ŷ,[qr,qp 1] Ẑ[qr,qp 1], for all n a gven nterval Q r 1 by usng the followng matrx-vector multplcaton: 6.2 ŶQr 1,[qr,qp 1] Ẑ[qr,qp 1],. 6.3 The algorthm computes the th column block by block, bottom-up. The common part for all entres n nterval Q r 1 s computed once accordng to Eq Then, for cells wthn ˆX Qr 1,, the entres are computed one by one bottom-up, as follows. In addton to the common computaton of Eq. 6.3, the remanng computaton of Eq. 6.2, that s, the partal blocks multplcatons Ŷ,[+1,qr 1] Ẑ[+1,qr 1], and Ŷ,[qp, 1] Ẑ[qp, 1], are drectly computed n Oq tme. Fnally, the algorthm updates the th entres n nterval Q r 1 of the th column of matrces ˆX accordng to rules of the form X Y, f such exst, by checkng for a better value orgnatng from an entry of matrx Ŷ wth the same ndces.

6 6 Tamar Pnhas, Dekel Tsur, Shay Zakov, and Mchal Zv-Ukelson Fg. 2: Fast on-lne weghted CFG parsng. For smplcty, the fgure presents the computaton of the best dervaton of a substrng s, accordng to a rule of the form X XX. For rules of the form X Y Z, the entres whch partcpate n the computaton are taken from three dfferent matrces, rather than from a sngle one. Tme Complexty Analyss. The multplcaton of Eq. 6.3 can be computed n On/q tme, as explaned n Secton 5.2 n the paper and n Secton 5 here. Recall that there are R such vector multplcatons to perform, thus the computaton of all q entres n the th column of all matrces ˆX and the row nterval Q r 1 can be mplemented n ORn/q + q 2 = ORn/q tme. Startng from r = p + 1 and decreasng to r = 1, these ntervals of the th columns are computed, where the entres n each nterval are computed by decreasng row ndex. Observe that all needed values are avalable once the algorthm computes some entry, thus, the computaton can be conducted correctly. Snce there are On/q such ntervals, and there are ONn entres n the th columns of all matrces, the tme for computng a column n all the matrces s ONn + Rn 2 /q 2 = ONn + Rn 2 / log 2 n. The overall runnng tme for computng all n columns s therefore ONn 2 + Rn 3 / log 2 n. 7 Addtonal fgures T D α S α T T D Fg. 3: Vector multplcaton calculaton of T D[, ], as descrbed n Secton 3.2 n the paper n Eq. 3.2.

7 Edt Dstance wth Duplcatons and Contractons Revsted - Supplementary Materals 7 T α T D T D α Fg. 4: Matrx-vector multplcaton calculaton of the th column of T D α, as descrbed n Secton 5.1 n the paper, n Eq s k s k s k w... α w... α w... α t l a Case 1: and are starts of runs n s and n t. t l b Cases 2 and 3: In Case 2, starts a run n s and does not start a run n t. Case 3 s symmetrc. The th letter ether mutates to α or s generated from the adacent letter. t l c Case 4: and are not starts of runs n s and t. Ether the th letter of s and the th letter both mutate to α or are generated from ther adacent letters. Fg. 5: An llustraton of the cases handled n the run-length recurrence appearng n Eq. 4.2 gven n Secton 4.1 n the paper.

8 8 Tamar Pnhas, Dekel Tsur, Shay Zakov, and Mchal Zv-Ukelson Fg. 6: An llustraton of the matrx-vector multplcaton procedure, descrbed n Secton 5.2 n the paper. Each one of the n/q ntervals of length q n the result vector s computed separately. Ths computaton nvolves the multplcaton of m/q blocks of sze q q wth q-length vectors n ths example, m/q = 5. Due to the pre-processed look-up tables, each block-vector multplcaton takes a constant tme, as well as the accumulaton of ts result to the current ntermedate computed q-length vector va operatons. Thus the computaton of a q-length vector takes Om/q tme, and the computaton of all n/q such ntervals of the result vector takes Onm/q 2 = On 2 / log 2 n. References 1. T. Akutsu. Approxmaton and exact algorthms for RNA secondary structure predcton and recognton of stochastc context-free languages. J. of Combnatoral Optmzaton, 32: , B. Behzad and J. M. Steyaert. An mproved algorthm for generalzed comparson of mnsatelltes. J. of Dscrete Algorthms, 32-4: , T. M. Chan. More algorthms for all-pars shortest paths n weghted graphs. In Proc. 39th ACM Symposum on Theory of Computng STOC, pages , J. Cocke and J. T. Schwartz. Programmng Languages and Ther Complers. Courant Insttute of Mathematcal Scences, New York, T. Kasam. An effcent recognton and syntax-analyss algorthm for context-free languages. Defense Techncal Informaton Center, W. J. Masek and M. S. Paterson. A faster algorthm computng strng edt dstances. J. of Computer and System Scences, 201:18 31, Ray Tetelbaum. Context-free error analyss by evaluaton of algebrac power seres. In STOC, pages ACM, L. G. Valant. General context-free recognton n less than cubc tme. J. of Computer and System Scences, 102: , Danel H. Younger. Recognton and parsng of context-free languages n tme n 3. Informaton and Control, 102: , February S. Zakov, D. Tsur, and M. Zv-Ukelson. Reducng the worst case runnng tmes of a famly of RNA and CFG problems, usng Valant s approach. Algorthms n Bonformatcs, pages 65 77, 2010.

Structure and Drive Paul A. Jensen Copyright July 20, 2003

Structure and Drive Paul A. Jensen Copyright July 20, 2003 Structure and Drve Paul A. Jensen Copyrght July 20, 2003 A system s made up of several operatons wth flow passng between them. The structure of the system descrbes the flow paths from nputs to outputs.

More information

Problem Set 9 Solutions

Problem Set 9 Solutions Desgn and Analyss of Algorthms May 4, 2015 Massachusetts Insttute of Technology 6.046J/18.410J Profs. Erk Demane, Srn Devadas, and Nancy Lynch Problem Set 9 Solutons Problem Set 9 Solutons Ths problem

More information

Min Cut, Fast Cut, Polynomial Identities

Min Cut, Fast Cut, Polynomial Identities Randomzed Algorthms, Summer 016 Mn Cut, Fast Cut, Polynomal Identtes Instructor: Thomas Kesselhem and Kurt Mehlhorn 1 Mn Cuts n Graphs Lecture (5 pages) Throughout ths secton, G = (V, E) s a mult-graph.

More information

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results. Neural Networks : Dervaton compled by Alvn Wan from Professor Jtendra Malk s lecture Ths type of computaton s called deep learnng and s the most popular method for many problems, such as computer vson

More information

Dynamic Programming. Preview. Dynamic Programming. Dynamic Programming. Dynamic Programming (Example: Fibonacci Sequence)

Dynamic Programming. Preview. Dynamic Programming. Dynamic Programming. Dynamic Programming (Example: Fibonacci Sequence) /24/27 Prevew Fbonacc Sequence Longest Common Subsequence Dynamc programmng s a method for solvng complex problems by breakng them down nto smpler sub-problems. It s applcable to problems exhbtng the propertes

More information

Calculation of time complexity (3%)

Calculation of time complexity (3%) Problem 1. (30%) Calculaton of tme complexty (3%) Gven n ctes, usng exhaust search to see every result takes O(n!). Calculaton of tme needed to solve the problem (2%) 40 ctes:40! dfferent tours 40 add

More information

Formulas for the Determinant

Formulas for the Determinant page 224 224 CHAPTER 3 Determnants e t te t e 2t 38 A = e t 2te t e 2t e t te t 2e 2t 39 If 123 A = 345, 456 compute the matrx product A adj(a) What can you conclude about det(a)? For Problems 40 43, use

More information

Outline and Reading. Dynamic Programming. Dynamic Programming revealed. Computing Fibonacci. The General Dynamic Programming Technique

Outline and Reading. Dynamic Programming. Dynamic Programming revealed. Computing Fibonacci. The General Dynamic Programming Technique Outlne and Readng Dynamc Programmng The General Technque ( 5.3.2) -1 Knapsac Problem ( 5.3.3) Matrx Chan-Product ( 5.3.1) Dynamc Programmng verson 1.4 1 Dynamc Programmng verson 1.4 2 Dynamc Programmng

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Desgn and Analyss of Algorthms CSE 53 Lecture 4 Dynamc Programmng Junzhou Huang, Ph.D. Department of Computer Scence and Engneerng CSE53 Desgn and Analyss of Algorthms The General Dynamc Programmng Technque

More information

The Minimum Universal Cost Flow in an Infeasible Flow Network

The Minimum Universal Cost Flow in an Infeasible Flow Network Journal of Scences, Islamc Republc of Iran 17(2): 175-180 (2006) Unversty of Tehran, ISSN 1016-1104 http://jscencesutacr The Mnmum Unversal Cost Flow n an Infeasble Flow Network H Saleh Fathabad * M Bagheran

More information

A new construction of 3-separable matrices via an improved decoding of Macula s construction

A new construction of 3-separable matrices via an improved decoding of Macula s construction Dscrete Optmzaton 5 008 700 704 Contents lsts avalable at ScenceDrect Dscrete Optmzaton journal homepage: wwwelsevercom/locate/dsopt A new constructon of 3-separable matrces va an mproved decodng of Macula

More information

Simultaneous Optimization of Berth Allocation, Quay Crane Assignment and Quay Crane Scheduling Problems in Container Terminals

Simultaneous Optimization of Berth Allocation, Quay Crane Assignment and Quay Crane Scheduling Problems in Container Terminals Smultaneous Optmzaton of Berth Allocaton, Quay Crane Assgnment and Quay Crane Schedulng Problems n Contaner Termnals Necat Aras, Yavuz Türkoğulları, Z. Caner Taşkın, Kuban Altınel Abstract In ths work,

More information

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems Numercal Analyss by Dr. Anta Pal Assstant Professor Department of Mathematcs Natonal Insttute of Technology Durgapur Durgapur-713209 emal: anta.bue@gmal.com 1 . Chapter 5 Soluton of System of Lnear Equatons

More information

Module 9. Lecture 6. Duality in Assignment Problems

Module 9. Lecture 6. Duality in Assignment Problems Module 9 1 Lecture 6 Dualty n Assgnment Problems In ths lecture we attempt to answer few other mportant questons posed n earler lecture for (AP) and see how some of them can be explaned through the concept

More information

Lecture 12: Discrete Laplacian

Lecture 12: Discrete Laplacian Lecture 12: Dscrete Laplacan Scrbe: Tanye Lu Our goal s to come up wth a dscrete verson of Laplacan operator for trangulated surfaces, so that we can use t n practce to solve related problems We are mostly

More information

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur Module 3 LOSSY IMAGE COMPRESSION SYSTEMS Verson ECE IIT, Kharagpur Lesson 6 Theory of Quantzaton Verson ECE IIT, Kharagpur Instructonal Objectves At the end of ths lesson, the students should be able to:

More information

MMA and GCMMA two methods for nonlinear optimization

MMA and GCMMA two methods for nonlinear optimization MMA and GCMMA two methods for nonlnear optmzaton Krster Svanberg Optmzaton and Systems Theory, KTH, Stockholm, Sweden. krlle@math.kth.se Ths note descrbes the algorthms used n the author s 2007 mplementatons

More information

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 8 Luca Trevisan February 17, 2016

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 8 Luca Trevisan February 17, 2016 U.C. Berkeley CS94: Spectral Methods and Expanders Handout 8 Luca Trevsan February 7, 06 Lecture 8: Spectral Algorthms Wrap-up In whch we talk about even more generalzatons of Cheeger s nequaltes, and

More information

EEE 241: Linear Systems

EEE 241: Linear Systems EEE : Lnear Systems Summary #: Backpropagaton BACKPROPAGATION The perceptron rule as well as the Wdrow Hoff learnng were desgned to tran sngle layer networks. They suffer from the same dsadvantage: they

More information

Exercises. 18 Algorithms

Exercises. 18 Algorithms 18 Algorthms Exercses 0.1. In each of the followng stuatons, ndcate whether f = O(g), or f = Ω(g), or both (n whch case f = Θ(g)). f(n) g(n) (a) n 100 n 200 (b) n 1/2 n 2/3 (c) 100n + log n n + (log n)

More information

Lecture 5 Decoding Binary BCH Codes

Lecture 5 Decoding Binary BCH Codes Lecture 5 Decodng Bnary BCH Codes In ths class, we wll ntroduce dfferent methods for decodng BCH codes 51 Decodng the [15, 7, 5] 2 -BCH Code Consder the [15, 7, 5] 2 -code C we ntroduced n the last lecture

More information

Supplement: Proofs and Technical Details for The Solution Path of the Generalized Lasso

Supplement: Proofs and Technical Details for The Solution Path of the Generalized Lasso Supplement: Proofs and Techncal Detals for The Soluton Path of the Generalzed Lasso Ryan J. Tbshran Jonathan Taylor In ths document we gve supplementary detals to the paper The Soluton Path of the Generalzed

More information

APPENDIX A Some Linear Algebra

APPENDIX A Some Linear Algebra APPENDIX A Some Lnear Algebra The collecton of m, n matrces A.1 Matrces a 1,1,..., a 1,n A = a m,1,..., a m,n wth real elements a,j s denoted by R m,n. If n = 1 then A s called a column vector. Smlarly,

More information

On the Multicriteria Integer Network Flow Problem

On the Multicriteria Integer Network Flow Problem BULGARIAN ACADEMY OF SCIENCES CYBERNETICS AND INFORMATION TECHNOLOGIES Volume 5, No 2 Sofa 2005 On the Multcrtera Integer Network Flow Problem Vassl Vasslev, Marana Nkolova, Maryana Vassleva Insttute of

More information

The Order Relation and Trace Inequalities for. Hermitian Operators

The Order Relation and Trace Inequalities for. Hermitian Operators Internatonal Mathematcal Forum, Vol 3, 08, no, 507-57 HIKARI Ltd, wwwm-hkarcom https://doorg/0988/mf088055 The Order Relaton and Trace Inequaltes for Hermtan Operators Y Huang School of Informaton Scence

More information

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009 College of Computer & Informaton Scence Fall 2009 Northeastern Unversty 20 October 2009 CS7880: Algorthmc Power Tools Scrbe: Jan Wen and Laura Poplawsk Lecture Outlne: Prmal-dual schema Network Desgn:

More information

Complete subgraphs in multipartite graphs

Complete subgraphs in multipartite graphs Complete subgraphs n multpartte graphs FLORIAN PFENDER Unverstät Rostock, Insttut für Mathematk D-18057 Rostock, Germany Floran.Pfender@un-rostock.de Abstract Turán s Theorem states that every graph G

More information

Appendix B: Resampling Algorithms

Appendix B: Resampling Algorithms 407 Appendx B: Resamplng Algorthms A common problem of all partcle flters s the degeneracy of weghts, whch conssts of the unbounded ncrease of the varance of the mportance weghts ω [ ] of the partcles

More information

On the Repeating Group Finding Problem

On the Repeating Group Finding Problem The 9th Workshop on Combnatoral Mathematcs and Computaton Theory On the Repeatng Group Fndng Problem Bo-Ren Kung, Wen-Hsen Chen, R.C.T Lee Graduate Insttute of Informaton Technology and Management Takmng

More information

Speeding up Computation of Scalar Multiplication in Elliptic Curve Cryptosystem

Speeding up Computation of Scalar Multiplication in Elliptic Curve Cryptosystem H.K. Pathak et. al. / (IJCSE) Internatonal Journal on Computer Scence and Engneerng Speedng up Computaton of Scalar Multplcaton n Ellptc Curve Cryptosystem H. K. Pathak Manju Sangh S.o.S n Computer scence

More information

Singular Value Decomposition: Theory and Applications

Singular Value Decomposition: Theory and Applications Sngular Value Decomposton: Theory and Applcatons Danel Khashab Sprng 2015 Last Update: March 2, 2015 1 Introducton A = UDV where columns of U and V are orthonormal and matrx D s dagonal wth postve real

More information

An efficient algorithm for multivariate Maclaurin Newton transformation

An efficient algorithm for multivariate Maclaurin Newton transformation Annales UMCS Informatca AI VIII, 2 2008) 5 14 DOI: 10.2478/v10065-008-0020-6 An effcent algorthm for multvarate Maclaurn Newton transformaton Joanna Kapusta Insttute of Mathematcs and Computer Scence,

More information

LOW BIAS INTEGRATED PATH ESTIMATORS. James M. Calvin

LOW BIAS INTEGRATED PATH ESTIMATORS. James M. Calvin Proceedngs of the 007 Wnter Smulaton Conference S G Henderson, B Bller, M-H Hseh, J Shortle, J D Tew, and R R Barton, eds LOW BIAS INTEGRATED PATH ESTIMATORS James M Calvn Department of Computer Scence

More information

Lecture Notes on Linear Regression

Lecture Notes on Linear Regression Lecture Notes on Lnear Regresson Feng L fl@sdueducn Shandong Unversty, Chna Lnear Regresson Problem In regresson problem, we am at predct a contnuous target value gven an nput feature vector We assume

More information

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty Addtonal Codes usng Fnte Dfference Method Benamn Moll 1 HJB Equaton for Consumpton-Savng Problem Wthout Uncertanty Before consderng the case wth stochastc ncome n http://www.prnceton.edu/~moll/ HACTproect/HACT_Numercal_Appendx.pdf,

More information

Lecture Space-Bounded Derandomization

Lecture Space-Bounded Derandomization Notes on Complexty Theory Last updated: October, 2008 Jonathan Katz Lecture Space-Bounded Derandomzaton 1 Space-Bounded Derandomzaton We now dscuss derandomzaton of space-bounded algorthms. Here non-trval

More information

An Interactive Optimisation Tool for Allocation Problems

An Interactive Optimisation Tool for Allocation Problems An Interactve Optmsaton ool for Allocaton Problems Fredr Bonäs, Joam Westerlund and apo Westerlund Process Desgn Laboratory, Faculty of echnology, Åbo Aadem Unversty, uru 20500, Fnland hs paper presents

More information

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography CSc 6974 and ECSE 6966 Math. Tech. for Vson, Graphcs and Robotcs Lecture 21, Aprl 17, 2006 Estmatng A Plane Homography Overvew We contnue wth a dscusson of the major ssues, usng estmaton of plane projectve

More information

Time-Varying Systems and Computations Lecture 6

Time-Varying Systems and Computations Lecture 6 Tme-Varyng Systems and Computatons Lecture 6 Klaus Depold 14. Januar 2014 The Kalman Flter The Kalman estmaton flter attempts to estmate the actual state of an unknown dscrete dynamcal system, gven nosy

More information

Yong Joon Ryang. 1. Introduction Consider the multicommodity transportation problem with convex quadratic cost function. 1 2 (x x0 ) T Q(x x 0 )

Yong Joon Ryang. 1. Introduction Consider the multicommodity transportation problem with convex quadratic cost function. 1 2 (x x0 ) T Q(x x 0 ) Kangweon-Kyungk Math. Jour. 4 1996), No. 1, pp. 7 16 AN ITERATIVE ROW-ACTION METHOD FOR MULTICOMMODITY TRANSPORTATION PROBLEMS Yong Joon Ryang Abstract. The optmzaton problems wth quadratc constrants often

More information

COS 521: Advanced Algorithms Game Theory and Linear Programming

COS 521: Advanced Algorithms Game Theory and Linear Programming COS 521: Advanced Algorthms Game Theory and Lnear Programmng Moses Charkar February 27, 2013 In these notes, we ntroduce some basc concepts n game theory and lnear programmng (LP). We show a connecton

More information

8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS

8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS SECTION 8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS 493 8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS All the vector spaces you have studed thus far n the text are real vector spaces because the scalars

More information

arxiv:cs.cv/ Jun 2000

arxiv:cs.cv/ Jun 2000 Correlaton over Decomposed Sgnals: A Non-Lnear Approach to Fast and Effectve Sequences Comparson Lucano da Fontoura Costa arxv:cs.cv/0006040 28 Jun 2000 Cybernetc Vson Research Group IFSC Unversty of São

More information

HMMT February 2016 February 20, 2016

HMMT February 2016 February 20, 2016 HMMT February 016 February 0, 016 Combnatorcs 1. For postve ntegers n, let S n be the set of ntegers x such that n dstnct lnes, no three concurrent, can dvde a plane nto x regons (for example, S = {3,

More information

Finding Dense Subgraphs in G(n, 1/2)

Finding Dense Subgraphs in G(n, 1/2) Fndng Dense Subgraphs n Gn, 1/ Atsh Das Sarma 1, Amt Deshpande, and Rav Kannan 1 Georga Insttute of Technology,atsh@cc.gatech.edu Mcrosoft Research-Bangalore,amtdesh,annan@mcrosoft.com Abstract. Fndng

More information

NUMERICAL DIFFERENTIATION

NUMERICAL DIFFERENTIATION NUMERICAL DIFFERENTIATION 1 Introducton Dfferentaton s a method to compute the rate at whch a dependent output y changes wth respect to the change n the ndependent nput x. Ths rate of change s called the

More information

Numerical Heat and Mass Transfer

Numerical Heat and Mass Transfer Master degree n Mechancal Engneerng Numercal Heat and Mass Transfer 06-Fnte-Dfference Method (One-dmensonal, steady state heat conducton) Fausto Arpno f.arpno@uncas.t Introducton Why we use models and

More information

2.3 Nilpotent endomorphisms

2.3 Nilpotent endomorphisms s a block dagonal matrx, wth A Mat dm U (C) In fact, we can assume that B = B 1 B k, wth B an ordered bass of U, and that A = [f U ] B, where f U : U U s the restrcton of f to U 40 23 Nlpotent endomorphsms

More information

CS 331 DESIGN AND ANALYSIS OF ALGORITHMS DYNAMIC PROGRAMMING. Dr. Daisy Tang

CS 331 DESIGN AND ANALYSIS OF ALGORITHMS DYNAMIC PROGRAMMING. Dr. Daisy Tang CS DESIGN ND NLYSIS OF LGORITHMS DYNMIC PROGRMMING Dr. Dasy Tang Dynamc Programmng Idea: Problems can be dvded nto stages Soluton s a sequence o decsons and the decson at the current stage s based on the

More information

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal Inner Product Defnton 1 () A Eucldean space s a fnte-dmensonal vector space over the reals R, wth an nner product,. Defnton 2 (Inner Product) An nner product, on a real vector space X s a symmetrc, blnear,

More information

EEL 6266 Power System Operation and Control. Chapter 3 Economic Dispatch Using Dynamic Programming

EEL 6266 Power System Operation and Control. Chapter 3 Economic Dispatch Using Dynamic Programming EEL 6266 Power System Operaton and Control Chapter 3 Economc Dspatch Usng Dynamc Programmng Pecewse Lnear Cost Functons Common practce many utltes prefer to represent ther generator cost functons as sngle-

More information

= z 20 z n. (k 20) + 4 z k = 4

= z 20 z n. (k 20) + 4 z k = 4 Problem Set #7 solutons 7.2.. (a Fnd the coeffcent of z k n (z + z 5 + z 6 + z 7 + 5, k 20. We use the known seres expanson ( n+l ( z l l z n below: (z + z 5 + z 6 + z 7 + 5 (z 5 ( + z + z 2 + z + 5 5

More information

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011 Stanford Unversty CS359G: Graph Parttonng and Expanders Handout 4 Luca Trevsan January 3, 0 Lecture 4 In whch we prove the dffcult drecton of Cheeger s nequalty. As n the past lectures, consder an undrected

More information

Errors for Linear Systems

Errors for Linear Systems Errors for Lnear Systems When we solve a lnear system Ax b we often do not know A and b exactly, but have only approxmatons  and ˆb avalable. Then the best thng we can do s to solve ˆx ˆb exactly whch

More information

NP-Completeness : Proofs

NP-Completeness : Proofs NP-Completeness : Proofs Proof Methods A method to show a decson problem Π NP-complete s as follows. (1) Show Π NP. (2) Choose an NP-complete problem Π. (3) Show Π Π. A method to show an optmzaton problem

More information

More metrics on cartesian products

More metrics on cartesian products More metrcs on cartesan products If (X, d ) are metrc spaces for 1 n, then n Secton II4 of the lecture notes we defned three metrcs on X whose underlyng topologes are the product topology The purpose of

More information

Turing Machines (intro)

Turing Machines (intro) CHAPTER 3 The Church-Turng Thess Contents Turng Machnes defntons, examples, Turng-recognzable and Turng-decdable languages Varants of Turng Machne Multtape Turng machnes, non-determnstc Turng Machnes,

More information

Online Classification: Perceptron and Winnow

Online Classification: Perceptron and Winnow E0 370 Statstcal Learnng Theory Lecture 18 Nov 8, 011 Onlne Classfcaton: Perceptron and Wnnow Lecturer: Shvan Agarwal Scrbe: Shvan Agarwal 1 Introducton In ths lecture we wll start to study the onlne learnng

More information

Lecture 4: Universal Hash Functions/Streaming Cont d

Lecture 4: Universal Hash Functions/Streaming Cont d CSE 5: Desgn and Analyss of Algorthms I Sprng 06 Lecture 4: Unversal Hash Functons/Streamng Cont d Lecturer: Shayan Oves Gharan Aprl 6th Scrbe: Jacob Schreber Dsclamer: These notes have not been subjected

More information

Kernel Methods and SVMs Extension

Kernel Methods and SVMs Extension Kernel Methods and SVMs Extenson The purpose of ths document s to revew materal covered n Machne Learnng 1 Supervsed Learnng regardng support vector machnes (SVMs). Ths document also provdes a general

More information

The Second Eigenvalue of Planar Graphs

The Second Eigenvalue of Planar Graphs Spectral Graph Theory Lecture 20 The Second Egenvalue of Planar Graphs Danel A. Spelman November 11, 2015 Dsclamer These notes are not necessarly an accurate representaton of what happened n class. The

More information

CHAPTER 17 Amortized Analysis

CHAPTER 17 Amortized Analysis CHAPTER 7 Amortzed Analyss In an amortzed analyss, the tme requred to perform a sequence of data structure operatons s averaged over all the operatons performed. It can be used to show that the average

More information

Edge Isoperimetric Inequalities

Edge Isoperimetric Inequalities November 7, 2005 Ross M. Rchardson Edge Isopermetrc Inequaltes 1 Four Questons Recall that n the last lecture we looked at the problem of sopermetrc nequaltes n the hypercube, Q n. Our noton of boundary

More information

The Synchronous 8th-Order Differential Attack on 12 Rounds of the Block Cipher HyRAL

The Synchronous 8th-Order Differential Attack on 12 Rounds of the Block Cipher HyRAL The Synchronous 8th-Order Dfferental Attack on 12 Rounds of the Block Cpher HyRAL Yasutaka Igarash, Sej Fukushma, and Tomohro Hachno Kagoshma Unversty, Kagoshma, Japan Emal: {garash, fukushma, hachno}@eee.kagoshma-u.ac.jp

More information

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017 U.C. Berkeley CS94: Beyond Worst-Case Analyss Handout 4s Luca Trevsan September 5, 07 Summary of Lecture 4 In whch we ntroduce semdefnte programmng and apply t to Max Cut. Semdefnte Programmng Recall that

More information

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS Avalable onlne at http://sck.org J. Math. Comput. Sc. 3 (3), No., 6-3 ISSN: 97-537 COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

More information

Computing Correlated Equilibria in Multi-Player Games

Computing Correlated Equilibria in Multi-Player Games Computng Correlated Equlbra n Mult-Player Games Chrstos H. Papadmtrou Presented by Zhanxang Huang December 7th, 2005 1 The Author Dr. Chrstos H. Papadmtrou CS professor at UC Berkley (taught at Harvard,

More information

Finding Primitive Roots Pseudo-Deterministically

Finding Primitive Roots Pseudo-Deterministically Electronc Colloquum on Computatonal Complexty, Report No 207 (205) Fndng Prmtve Roots Pseudo-Determnstcally Ofer Grossman December 22, 205 Abstract Pseudo-determnstc algorthms are randomzed search algorthms

More information

The internal structure of natural numbers and one method for the definition of large prime numbers

The internal structure of natural numbers and one method for the definition of large prime numbers The nternal structure of natural numbers and one method for the defnton of large prme numbers Emmanul Manousos APM Insttute for the Advancement of Physcs and Mathematcs 3 Poulou str. 53 Athens Greece Abstract

More information

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix Lectures - Week 4 Matrx norms, Condtonng, Vector Spaces, Lnear Independence, Spannng sets and Bass, Null space and Range of a Matrx Matrx Norms Now we turn to assocatng a number to each matrx. We could

More information

Bézier curves. Michael S. Floater. September 10, These notes provide an introduction to Bézier curves. i=0

Bézier curves. Michael S. Floater. September 10, These notes provide an introduction to Bézier curves. i=0 Bézer curves Mchael S. Floater September 1, 215 These notes provde an ntroducton to Bézer curves. 1 Bernsten polynomals Recall that a real polynomal of a real varable x R, wth degree n, s a functon of

More information

Learning Theory: Lecture Notes

Learning Theory: Lecture Notes Learnng Theory: Lecture Notes Lecturer: Kamalka Chaudhur Scrbe: Qush Wang October 27, 2012 1 The Agnostc PAC Model Recall that one of the constrants of the PAC model s that the data dstrbuton has to be

More information

LECTURE 9 CANONICAL CORRELATION ANALYSIS

LECTURE 9 CANONICAL CORRELATION ANALYSIS LECURE 9 CANONICAL CORRELAION ANALYSIS Introducton he concept of canoncal correlaton arses when we want to quantfy the assocatons between two sets of varables. For example, suppose that the frst set of

More information

The Second Anti-Mathima on Game Theory

The Second Anti-Mathima on Game Theory The Second Ant-Mathma on Game Theory Ath. Kehagas December 1 2006 1 Introducton In ths note we wll examne the noton of game equlbrum for three types of games 1. 2-player 2-acton zero-sum games 2. 2-player

More information

On the correction of the h-index for career length

On the correction of the h-index for career length 1 On the correcton of the h-ndex for career length by L. Egghe Unverstet Hasselt (UHasselt), Campus Depenbeek, Agoralaan, B-3590 Depenbeek, Belgum 1 and Unverstet Antwerpen (UA), IBW, Stadscampus, Venusstraat

More information

Lecture 20: Lift and Project, SDP Duality. Today we will study the Lift and Project method. Then we will prove the SDP duality theorem.

Lecture 20: Lift and Project, SDP Duality. Today we will study the Lift and Project method. Then we will prove the SDP duality theorem. prnceton u. sp 02 cos 598B: algorthms and complexty Lecture 20: Lft and Project, SDP Dualty Lecturer: Sanjeev Arora Scrbe:Yury Makarychev Today we wll study the Lft and Project method. Then we wll prove

More information

Lecture 3. Ax x i a i. i i

Lecture 3. Ax x i a i. i i 18.409 The Behavor of Algorthms n Practce 2/14/2 Lecturer: Dan Spelman Lecture 3 Scrbe: Arvnd Sankar 1 Largest sngular value In order to bound the condton number, we need an upper bound on the largest

More information

Maximizing the number of nonnegative subsets

Maximizing the number of nonnegative subsets Maxmzng the number of nonnegatve subsets Noga Alon Hao Huang December 1, 213 Abstract Gven a set of n real numbers, f the sum of elements of every subset of sze larger than k s negatve, what s the maxmum

More information

MEM 255 Introduction to Control Systems Review: Basics of Linear Algebra

MEM 255 Introduction to Control Systems Review: Basics of Linear Algebra MEM 255 Introducton to Control Systems Revew: Bascs of Lnear Algebra Harry G. Kwatny Department of Mechancal Engneerng & Mechancs Drexel Unversty Outlne Vectors Matrces MATLAB Advanced Topcs Vectors A

More information

CSCE 790S Background Results

CSCE 790S Background Results CSCE 790S Background Results Stephen A. Fenner September 8, 011 Abstract These results are background to the course CSCE 790S/CSCE 790B, Quantum Computaton and Informaton (Sprng 007 and Fall 011). Each

More information

Solutions to exam in SF1811 Optimization, Jan 14, 2015

Solutions to exam in SF1811 Optimization, Jan 14, 2015 Solutons to exam n SF8 Optmzaton, Jan 4, 25 3 3 O------O -4 \ / \ / The network: \/ where all lnks go from left to rght. /\ / \ / \ 6 O------O -5 2 4.(a) Let x = ( x 3, x 4, x 23, x 24 ) T, where the varable

More information

Geometric drawings of K n with few crossings

Geometric drawings of K n with few crossings Geometrc drawngs of K n wth few crossngs Bernardo M. Ábrego, Slva Fernández-Merchant Calforna State Unversty Northrdge {bernardo.abrego,slva.fernandez}@csun.edu ver 9 Abstract We gve a new upper bound

More information

Approximate Smallest Enclosing Balls

Approximate Smallest Enclosing Balls Chapter 5 Approxmate Smallest Enclosng Balls 5. Boundng Volumes A boundng volume for a set S R d s a superset of S wth a smple shape, for example a box, a ball, or an ellpsod. Fgure 5.: Boundng boxes Q(P

More information

LINEAR REGRESSION ANALYSIS. MODULE IX Lecture Multicollinearity

LINEAR REGRESSION ANALYSIS. MODULE IX Lecture Multicollinearity LINEAR REGRESSION ANALYSIS MODULE IX Lecture - 30 Multcollnearty Dr. Shalabh Department of Mathematcs and Statstcs Indan Insttute of Technology Kanpur 2 Remedes for multcollnearty Varous technques have

More information

Lecture 2: Gram-Schmidt Vectors and the LLL Algorithm

Lecture 2: Gram-Schmidt Vectors and the LLL Algorithm NYU, Fall 2016 Lattces Mn Course Lecture 2: Gram-Schmdt Vectors and the LLL Algorthm Lecturer: Noah Stephens-Davdowtz 2.1 The Shortest Vector Problem In our last lecture, we consdered short solutons to

More information

The Geometry of Logit and Probit

The Geometry of Logit and Probit The Geometry of Logt and Probt Ths short note s meant as a supplement to Chapters and 3 of Spatal Models of Parlamentary Votng and the notaton and reference to fgures n the text below s to those two chapters.

More information

Generalized Linear Methods

Generalized Linear Methods Generalzed Lnear Methods 1 Introducton In the Ensemble Methods the general dea s that usng a combnaton of several weak learner one could make a better learner. More formally, assume that we have a set

More information

The Expectation-Maximization Algorithm

The Expectation-Maximization Algorithm The Expectaton-Maxmaton Algorthm Charles Elan elan@cs.ucsd.edu November 16, 2007 Ths chapter explans the EM algorthm at multple levels of generalty. Secton 1 gves the standard hgh-level verson of the algorthm.

More information

A combinatorial problem associated with nonograms

A combinatorial problem associated with nonograms A combnatoral problem assocated wth nonograms Jessca Benton Ron Snow Nolan Wallach March 21, 2005 1 Introducton. Ths work was motvated by a queston posed by the second named author to the frst named author

More information

TOPICS MULTIPLIERLESS FILTER DESIGN ELEMENTARY SCHOOL ALGORITHM MULTIPLICATION

TOPICS MULTIPLIERLESS FILTER DESIGN ELEMENTARY SCHOOL ALGORITHM MULTIPLICATION 1 2 MULTIPLIERLESS FILTER DESIGN Realzaton of flters wthout full-fledged multplers Some sldes based on support materal by W. Wolf for hs book Modern VLSI Desgn, 3 rd edton. Partly based on followng papers:

More information

3.1 Expectation of Functions of Several Random Variables. )' be a k-dimensional discrete or continuous random vector, with joint PMF p (, E X E X1 E X

3.1 Expectation of Functions of Several Random Variables. )' be a k-dimensional discrete or continuous random vector, with joint PMF p (, E X E X1 E X Statstcs 1: Probablty Theory II 37 3 EPECTATION OF SEVERAL RANDOM VARIABLES As n Probablty Theory I, the nterest n most stuatons les not on the actual dstrbuton of a random vector, but rather on a number

More information

Basic Regular Expressions. Introduction. Introduction to Computability. Theory. Motivation. Lecture4: Regular Expressions

Basic Regular Expressions. Introduction. Introduction to Computability. Theory. Motivation. Lecture4: Regular Expressions Introducton to Computablty Theory Lecture: egular Expressons Prof Amos Israel Motvaton If one wants to descrbe a regular language, La, she can use the a DFA, Dor an NFA N, such L ( D = La that that Ths

More information

Discussion 11 Summary 11/20/2018

Discussion 11 Summary 11/20/2018 Dscusson 11 Summary 11/20/2018 1 Quz 8 1. Prove for any sets A, B that A = A B ff B A. Soluton: There are two drectons we need to prove: (a) A = A B B A, (b) B A A = A B. (a) Frst, we prove A = A B B A.

More information

Example: (13320, 22140) =? Solution #1: The divisors of are 1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20, 27, 30, 36, 41,

Example: (13320, 22140) =? Solution #1: The divisors of are 1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20, 27, 30, 36, 41, The greatest common dvsor of two ntegers a and b (not both zero) s the largest nteger whch s a common factor of both a and b. We denote ths number by gcd(a, b), or smply (a, b) when there s no confuson

More information

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0 MODULE 2 Topcs: Lnear ndependence, bass and dmenson We have seen that f n a set of vectors one vector s a lnear combnaton of the remanng vectors n the set then the span of the set s unchanged f that vector

More information

Foundations of Arithmetic

Foundations of Arithmetic Foundatons of Arthmetc Notaton We shall denote the sum and product of numbers n the usual notaton as a 2 + a 2 + a 3 + + a = a, a 1 a 2 a 3 a = a The notaton a b means a dvdes b,.e. ac = b where c s an

More information

Week 5: Neural Networks

Week 5: Neural Networks Week 5: Neural Networks Instructor: Sergey Levne Neural Networks Summary In the prevous lecture, we saw how we can construct neural networks by extendng logstc regresson. Neural networks consst of multple

More information

Common loop optimizations. Example to improve locality. Why Dependence Analysis. Data Dependence in Loops. Goal is to find best schedule:

Common loop optimizations. Example to improve locality. Why Dependence Analysis. Data Dependence in Loops. Goal is to find best schedule: 15-745 Lecture 6 Data Dependence n Loops Copyrght Seth Goldsten, 2008 Based on sldes from Allen&Kennedy Lecture 6 15-745 2005-8 1 Common loop optmzatons Hostng of loop-nvarant computatons pre-compute before

More information

One-sided finite-difference approximations suitable for use with Richardson extrapolation

One-sided finite-difference approximations suitable for use with Richardson extrapolation Journal of Computatonal Physcs 219 (2006) 13 20 Short note One-sded fnte-dfference approxmatons sutable for use wth Rchardson extrapolaton Kumar Rahul, S.N. Bhattacharyya * Department of Mechancal Engneerng,

More information

Lecture 4: Constant Time SVD Approximation

Lecture 4: Constant Time SVD Approximation Spectral Algorthms and Representatons eb. 17, Mar. 3 and 8, 005 Lecture 4: Constant Tme SVD Approxmaton Lecturer: Santosh Vempala Scrbe: Jangzhuo Chen Ths topc conssts of three lectures 0/17, 03/03, 03/08),

More information