CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching

Size: px
Start display at page:

Download "CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching"

Transcription

1 CS261: A Seon Course in Algorithms Leture #5: Minimum-Cost Biprtite Mthing Tim Roughgren Jnury 19, Preliminries Figure 1: Exmple of iprtite grph. The eges {, } n {, } onstitute mthing. Lst leture introue the mximum-rinlity iprtite mthing prolem. Rell tht iprtite grph G = (V W, E) is one whose verties re split into two sets suh tht every ege hs one enpoint in eh set (no eges internl to V or W llowe). Rell tht mthing is suset M E of eges with no shre enpoints (e.g., Figure 1). Lst leture, we skethe simple reution from this prolem to the mximum flow prolem. Moreover, we eue from this reution n the mx-flow/min-ut theorem fmous optimlity onition for iprtite mthings. A speil se is Hll s theorem, whih sttes tht iprtite grph with V W hs perfet mthing if n only if for every suset S V of the left-hn sie, the numer N(S) of S on the right-hn sie is t lest S. See Prolem Set #2 for quite goo running time ouns for the prolem. But wht if iprtite grph hs mny perfet mthings? In pplitions, there re often resons to prefer one over nother. For exmple, when ssigning jos to works, perhps there re mny workers who n perform prtiulr jo, ut some of them re etter t 2016, Tim Roughgren. Deprtment of Computer Siene, Stnfor University, 474 Gtes Builing, 353 Serr Mll, Stnfor, CA Emil: tim@s.stnfor.eu. 1

2 it thn others. The simplest wy to moel suh preferenes is tth ost e to eh ege e E of the input iprtite grph G = (V W, E). We lso mke three ssumptions. These re for onveniene, n re not ruil for ny of our results. 1. The sets V n W hve the sme size, ll it n. This ssumption is esily enfore y ing ummy verties (with no inient eges) to the smller sie. 2. The grph G hs t lest one perfet mthing. This is esily enfore y ing ummy eges tht hve very high ost (e.g., one suh ege from the ith vertex of V to the ith vertex of W, for eh i). 3. Ege osts re nonnegtive. This n e enfore in the ovious wy: if the most negtive ege ost is M, just M to the ost of every ege. This s the sme numer (nm) to every perfet mthing, n thus oes not hnge the prolem. The gol in the minimum-ost perfet iprtite mthing prolem is to ompute the perfet mthing M tht minimizes e M e. The fesile solutions to the prolem re the perfet mthings of G. An equivlent prolem is the mximum-weight perfet iprtite mthing prolem (just multiply ll weights y 1 to trnsform them into osts). When every ege hs the sme ost n we only re out rinlity, the prolem reues to the mximum flow prolem (Leture #4). With generl osts, there oes not seem to e nturl reution to the mximum flow prolem. It s true tht eges in flow network ome with tthe numers (their pities), ut there is type mismth: ege pities ffet the set of fesile solutions ut not their ojetive funtion vlues, while ege osts o the opposite. Thus, the minimum-ost perfet iprtite mthing prolem seems like new prolem, for whih we hve to esign n lgorithm from srth. We ll follow the sme kin of isipline pproh tht serve us so well in the mximum flow prolem. First, we ientify optimlity onitions, whih tell us when given perfet mthing is in ft minimum-ost. This step is struturl, not lgorithmi, n is nlogous to our result in Leture #2 tht flow is mximum if n only if there is no s-t pth in the resiul network. Then, we esign n lgorithm tht n only terminte with the fesiility n optimlity onitions stisfie. For mximum flow, we h one lgorithmi prigm tht mintine fesiility n worke towr the optimlity onitions (ugmenting pth lgorithms), n seon prigm tht mintin the optimlity onitions n worke towr fesiility (push-relel). Here, we follow the seon pproh. We ll ientify invrints tht imply the optimlity onition, n esign n lgorithm tht keeps them stisfie t ll times n works towr fesile solution (i.e., perfet mthing). 2 Optimlity Conitions How o we know if given perfet mthing hs the minimum-possile ost? Optimlity onitions re ifferent for ifferent prolems, ut for the prolems stuie in CS261 they re 2

3 ll quite nturl in hinsight. We first nee n nlog of resiul network. This requires some efinitions (see lso Figure 2) Figure 2: If our mthing ontins {, } n {, }, then is oth n M-lternting yle n negtive yle. Definition 2.1 (Negtive Cyle) Let M e mthing in the iprtite grph G = (V W, E). () A yle C of G is M-lternting if every other ege of C elongs to M (Figure 2). 1 () An M-lternting yle is negtive if the eges in the mthing hve higher ost thn those outsie the mthing: e > e. Otherwise, it is nonnegtive. e C M e C\M One interesting thing out lternting yles is tht y toggling the eges of C with respet to M tht is, removing the eges of C M n plugging in the eges of C \ M yiels new mthing M tht mthes extly the sme set of verties. (Verties outsie of C re lerly unffete; verties insie C remin mthe to preisely one other vertex of C, just ifferent one thn efore.) Suppose M is perfet mthing, n we toggle the eges of n M-lternting yle to get nother (perfet) mthing M. Dropping the eges from C M sves us ost of e C M e, while ing the eges of C \ M ost us e C\M e. Then M hs smller ost thn M if n only if C is negtive yle. The point of negtive yle is tht it offers quik n onvining proof tht perfet mthing is not minimum-ost (sine toggling the eges of the yle yiels heper mthing). But wht out the onverse? If perfet mthing is not minimum-ost, re we gurntee suh short n onvining proof of this ft? Or re there ostles to optimlity eyon the ovious ones of negtive yles? 1 Sine G is iprtite, C is neessrily n even yle. One ertinly n t hve more thn every other ege of C ontine in the mthing M. 3

4 Theorem 2.2 (Optimlity Conitions for Min-Cost Biprtite Mthing) A perfet mthing of iprtite grph hs minimum-ost if n only if there is no negtive M- lternting yle. Proof: We hve lrey rgue the only if iretion. For the hrer if iretion, suppose tht M is perfet mthing n tht there is no negtive M-lternting yle. Let M e ny other perfet mthing; we wnt to show tht the ost of M is t lest tht of M. Consier M M, mening the symmetri ifferene of M, M (if you wnt to think of them s sets) or their XOR (if you wnt to think of them s 0/1 vetors). See Figure 3 for two exmples. e e e f f = f e e e f f = f Figure 3: Two exmples tht show wht hppens when we XOR two mthings (the she eges). In generl, M M is union of (vertex-)isjoint yles. The reson is tht, sine every vertex hs egree 1 in oth M n M, every vertex of v hs egree either 0 (if it is mthe to the sme vertex in oth M n M ) or 2 (otherwise). A grph with ll egrees either 0 or 2 must e the union of isjoint yles. Sine tking the symmetri ifferene/xor with the sme set two times in row reovers the initil set, (M M ) M = M. Sine M M is isjoint union of yles, tking the symmetri ifferent/xor with M M just mens toggling the eges in eh of its yles (sine they re isjoint, they on t interfere n the toggling n e one in prllel). Eh of these yles is M-lternting, n y ssumption eh is nonnegtive. Thus toggling the eges of the yles n only proue more expensive perfet mthing M. Sine M ws n ritrry perfet mthing, M must e minimum-ost perfet mthing. 4

5 3 Reue Costs n Invrints Now tht we know when we re one, we work towr lgorithms tht terminte with the optimlity onitions stisfie. Following the push-relel pproh (Leture #3), we next ientify invrints tht will imply the optimlity onitions t ll times. Our lgorithm will mintin these s it works towr fesile solution (i.e., perfet mthing). Continuing the nlogy with the push-relel prigm, we mintin extr numer p v for eh vertex v V W, lle prie (nlogous to the heights in Leture #3). Pries re llowe to e positive or negtive. We use pries to fore us to eges to our urrent mthing only in isipline wy, somewht nlogous to how we only pushe flow ownhill in Leture #3. Formlly, for prie vetor p (inexe y verties), we efine the reue ost of n ege e = (v, w) y p e = e p v p w. (1) Here re our invrints, whih re respet to urrent mthing M n urrent vetor p of pries. Invrints 1. Every ege of G hs nonnegtive reue ost. 2. Every ege of M is tight, mening it hs zero reue ost. v(7) 7 w(0) v(5) 7 w(2) x(2) 2 y(0) x(2) 2 y(0) Figure 4: For the given (perfet) mthing (she eges), () violtes invrint 1, while () stisfies ll invrints. For exmple, onsier the (perfet) mthing in Figure 4. Is it possile to efine pries so tht the invrints hol? To stisfy the seon invrint, we nee to mke the eges (v, w) n (x, y) tight. We oul try setting the prie of w n y to 0, whih then ittes setting p v = 7 n p x = 2 (Figure 4()). This violtes the first invrint, however, sine the reue ost of ege (v, y) is -1. We n stisfy oth invrints y resetting p v = 5 n p w = 2; then oth eges in the mthing re tight n the other two eges hve reue ost 1 (Figure 4()). 5

6 The mthing in Figure 4 is min-ost perfet mthing. This is no oiniene. Lemm 3.1 (Invrints Imply Optimlity Conition) If M is perfet mthing n oth invrints hol, then M is minimum-ost perfet mthing. Proof: Let M e perfet mthing suh tht oth invrints hol. By our optimlity onition (Theorem 2.2), we just nee to hek tht there is no negtive yle. So onsier ny M-lternting yle C (rememer negtive yle must e M-lternting, y efinition). We wnt to show tht the eges of C tht re in M hve ost t most tht of the eges of C not in M. Aing n sutrting v C p v n using the ft tht every vertex of C is the enpoint of extly one ege of C M n of C \ M (e.g., Figure 5), we n write e = p e + p v (2) v C n e C M e C\M e = e C M e C\M p e + v C p v. (3) (We re using nottion n using C oth to enote the verties in the yle n the eges in the yle; hopefully the mening is lwys ler from ontext.) Clerly, the thir terms in (2) n (3) re the sme. By the seon invrint (eges of M re tight), the seon term in (2) is 0. By the first invrint (ll eges hve nonnegtive reue ost), the seon term in (3) is t lest 0. We onlue tht the left-hn sie of (2) is t most tht of (3), whih proves tht C is not negtive yle. Sine C ws ritrry M-lternting yle, the proof is omplete. f e Figure 5: In the exmple M-lternting yle n mthing shown ove, every vertex is n enpoint of extly one ege in M n one ege not in M. 4 The Hungrin Algorithm Lemm 3.1 reues the prolem of esigning orret lgorithm for the minimum-ost perfet iprtite mthing prolem to tht of esigning n lgorithm tht mintins the two invrints n omputes n ritrry perfet mthing. This setion presents suh n lgorithm. 6

7 4.1 Bkstory The lgorithm we present goes y vrious nmes, the two most ommon eing the Hungrin lgorithm n the Kuhn-Munkres lgorithm. You might therefore fin it weir tht Kuhn n Munkres re Amerin. Here s the story. In the erly/mi-1950s, Kuhn relly wnte n lgorithm for solving the minimum-ost iprtite mthing prolem. So he ws reing grph theory ook y Kőnig. This ws tully the first grph theory ook ever written in the 1930s, n ville in the U.S. only in 1950 (even then, only in Germn). Kuhn ws intrigue y n offhn ittion in the ook, to pper of Egerváry. Kuhn trke own the pper, whih ws written in Hungrin. This ws wy efore Google Trnslte, so he ought ig English-Hungrin itionry n trnslte the whole thing. An inee, Egerváry s pper h the key ies neessry for goo lgorithm. Kőnig n Egerváry were oth Hungrin, so Kuhn lle his lgorithm the Hungrin lgorithm. Kuhn only prove termintion of his lgorithm, n soon therefter Munkres oserve polynomil time oun (silly the oun prove in this leture). Hene, lso lle the Kuhn-Munkres lgorithm. In (finl?) twist to the story, in 2006 it ws isovere tht Joi, the fmous mthemtiin (you ve stuie multiple onepts nme fter him in your mth lsses), me up with n equivlent lgorithm in the 1840s! (Pulishe only posthumously, in 1890.) Kuhn, then in his 80s, ws goo sport out it, giving tlks with the title The Hungrin Algorithm n How Joi Bet Me By 100 Yers. 4.2 The Algorithm: High-Level Struture The Hungrin lgorithm mintins oth mthing M n pries p. The initiliztion is strightforwr. set M = set p v = 0 for ll v V W Initiliztion The seon invrint hols vuously. The first invrint hols euse we re ssuming tht ll ege osts (n hene initil reue osts) re nonnegtive. Informlly (n wy unerspeifie), the min loop works s follows. The terms ugment, goo pth, n goo set will e efine shortly. Min Loop (High-Level) while M is not perfet mthing o if there is goo pth P then ugment M y P else fin goo set S; upte pries oringly 7

8 4.3 Goo Pths We now strt filling in the etils. Fix the urrent mthing M n urrent pries p. Cll pth P from v to w goo if: 1. oth enpoints v, w re unmthe in M, with v V n w W (hene P hs o length); 2. it lterntes eges out of M with eges in M (sine v, w re unmthe, the first n lst eges re not in M); 3. every ege of P is tight (i.e., hs zero reue ost n hene eligile to e inlue in the urrent mthing). Figure 6 epits simple exmple of goo pth. (2) 4 (2) 4 4 (2) 4 (2) Figure 6: Dshe eges enote eges in the mthing n re eges enote goo pth. The reson we re out goo pths is tht suh pth llows us to inrese the rinlity of M without reking either invrint. Speifilly, onsier repling M y M = M P. This n e thought of s toggling whih eges of P re in the urrent mthing. By efinition, goo pth is M-lternting, with first n lst hops not in M; thus, P M = P \ M 1, n the size of M is one more thn M. (E.g., if P is 9-hop pth, this toggling removes 4 eges from M ut tht s in 5 other eges.) No reue osts hve hnge, so ertinly the first invrint still hols. All eges of P re tight e efinition, so the seon invrint lso ontinues to hol. Augmenttion Step given goo pth P, reple M y M P Fining goo pth is efinitely progress fter n suh ugmenttions, the urrent mthing M must e perfet n (sine the invrints hol) we re one. How n we effiiently fin suh pth? An wht o we o if there s no suh pth? 8

9 To effiiently serh for suh pth, let s just follow our nose. It turns out tht rethfirst serh (BFS), with twist to enfore M-lterntion, is ll we nee Figure 7: Dshe eges re the eges in the mthing. Only tight eges re shown. The lgorithm will e ler from n exmple. Consier the grph in Figure 7; only the tight eges re shown. Note tht the grph oes not ontin goo pth (if it i, we oul use it to ugment the urrent mthing to otin perfet mthing, ut vertex #4 is isolte so there is no perfet mthing.). 2 So we know in vne tht our serh will fil. But it s useful to see wht hppens when it fils Figure 8: BFS spnning tree if we strt BFS trvel from noe 3. Note tht the ege {2, 6} is not use. We strt grph serh from n unmthe vertex of V (the first suh vertex, sy); see lso Figure 8. In the exmple, this is vertex #3. Lyer 0 of our serh tree is {3}. We otin lyer 1 from lyer 0 y BFS; thus, lyer 1 is {2, 7}. Note tht if either 2 or 7 is unmthe, then we hve foun (one-hop) goo pth n we n stop the serh. Both 2 n 7 re lrey mthe in the exmple, however. Here is the twist to BFS: t the next lyer 2 we put only the verties to whih 2 n 7 re mthe, nmely 1 n 8. Conspiuous in its sene is vertex #6; in regulr BFS it woul e inlue in lyer 2, ut here we omit it euse it is not mthe to vertex of lyer 1. The reson for this twist is tht we wnt every pth in our serh tree to e M-lternting (sine goo pths nee to e M-lternting). 2 Rememer we ssume only tht G ontins perfet mthing; the sugrph of tight eges t ny given time will generlly not ontin perfet mthing. 9

10 We then swith k to BFS. At vertex #8 we re stuk (we ve lrey seen its only neighor, #7). At vertex #1, we ve lrey seen its neighor 2 ut hve not yet seen vertex #5, so the thir lyer is {5}. Note tht if 5 were unmthe, we woul hve foun goo pth, from 5 k to the root 3. (All eges in the tree re tight y efinition; the pth is lternting n of o length, joining two unmthe verties of V n W.) But 5 is lrey mthe to 6, so lyer 4 of the serh tree is {6}. We ve lrey seen oth of 6 s neighors efore, so t this point we re stuk n the serh termintes. In generl, here is the serh proeure for fining goo pth (given urrent mthing M n pries p). Serhing for Goo Pth level 0 = the first unmthe vertex r of V while not stuk n no other unmthe vertex foun o if next level i is o then efine level i from level i 1 vi BFS // i.e., neighors of level i 1 not lrey seen else if next level i is even then efine level i s the verties mthe in M to verties t level i 1 if foun nother unmthe vertex w then return the serh tree pth etween the root r n w else return stuk To unerstn this suroutine, onsier n ege (v, w) M, n suppose tht v is rehe first, t level i. Importntly, it is not possile tht w is lso rehe t level i. This is where we use the ssumption tht G is iprtite: if v, w re rehe in the sme level, then psting together the pths from r to v n from r to w (whih hve the sme length) with the ege (v, w) exhiits n o yle, ontriting iprtiteness. Seon, we lim tht i must e o (f., Figure 8). The reson is just tht, y onstrution, every vertex t n even level (other thn 0) is the seon enpoint rehe of some mthe ege (n hene nnot e the enpoint of ny other mthe ege). We onlue tht: (*) if either enpoint of n ege of M is rehe in the serh tree, then oth enpoints re rehe, n they pper t onseutive levels i, i + 1 with i o. Suppose the serh tree rehes n unmthe vertex w other thn the root r. Sine every vertex t n even level (fter 0) is mthe to vertex t the previous level, w must e t n o level (n hene in W ). By onstrution, every ege of the serh tree is tight, n every pth in the tree is M-lternting. Thus the r-w pth in the serh tree is goo pth, llowing us to inrese the size of M y 1. 10

11 4.4 Goo Sets Suppose the serh gets stuk, s in our exmple. How o we mke progress, n in wht sense? In this se, we keep the mthing the sme ut upte the pries. Define S V s the verties t even levels. Define N(S) W s the neighors of S vi tight eges, i.e., N(S) = {w : v S with (v, w) tight}. (4) We lim tht N(S) is preisely the verties tht pper in the o levels of the serh tree. In proof, first note tht every vertex t n o level is (y onstrution/bfs) jent vi tight ege to vertex t the previous (even) level. For the onverse, every vertex w N(S) must e rehe in the serh, euse (y si properties of grph serh) the serh n only stuk if there re no unexplore eges out of ny even vertex. The set S is goo set, in tht is stisfies: 1. S ontins n unmthe vertex; 2. every vertex of N(S) is mthe in M to vertex of S (sine the serh file, every vertex in n o level is mthe to some vertex t the next (even) level). See lso Figure Figure 9: S = {1, 2, 3, 4} is exmple of goo set, with N(S) = {5, 6}. Only lk eges re tight eges (i.e. (4, 7) is not tight). The mthing eges re she. Hving foun suh goo set S, the Hungrin lgorithm uptes pries s follows. Prie Upte Step given goo set S, with neighors vi tight eges N(S) for ll v S o inrese p v y for ll w N(S) o erese p v y // is s lrge s possile, sujet to invrints 11

12 Pries in S (on the left-hn sie) re inrese, while pries in N(S) (on the right-hn sie) re erese y the sme mount. How oes this ffet the reue ost of eh ege of G (Figure 9)? 1. for n ege (v, w) with v / S n w / N(S), the pries of v, w re unhnge so p vw is unhnge; 2. for n ege (v, w) with v S n w N(S), the sum of the pries of v, w is unhnge (one inrese y, the other erese y ) so p vw is unhnge; 3. for n ege (v, w) with v / S n w N(S), p v stys the sme while p w goes own y, so p vw goes up y ; 4. for n ege (v, w) with v S n w / N(S), p w stys the sme while p v goes up y, so p vw goes own y. So wht hppens with the invrints? Relling (*) from Setion 4.3, we see tht eges of M re in either the first or seon tegory. Thus they sty tight, n the seon invrint remins stisfie. The first invrint is enngere y eges in the fourth tegory, whose reue osts re ropping with. 3 By the efinition of N(S), eges in this tegory re not tight. So we inrese to the lrgest-possile vlue sujet to the first invrint the first point t whih the reue ost of some ege in the fourth tegory is zeroe out. 4 Every prie upte mkes progress, in the sense tht it stritly inreses the size of serh tree. To see this, suppose prie upte uses the ege (v, w) to eome tight (with v S, w / N(S)). Wht hppens in the next itertion, when we serh from the sme vertex r for goo pth? All eges in the previous serh tree fll in the seon tegory, n hene re gin tight in the next itertion. Thus, the serh proeure will regrow extly the sme serh tree s efore, will gin reh the vertex v, n now will lso explore long the newly tight ege (v, w), whih s the itionl vertex w W to the tree. This n only hppen n times in row efore fining goo pth, sine there re only n verties in W. 3 Eges in thir tegory might go from tight to non-tight, ut these eges re not in M (every vertex of N(S) is mthe to vertex of S) n so no invrint is violte. 4 A etil: how o we know tht suh n ege exists? If not, then ll neighors of S in G (vi tight eges or not) elong to N(S). The two properties of goo sets imply tht N(S) < S. But this violtes Hll s onition for perfet mthings (Leture #4), ontriting our stning ssumption tht G hs t lest one perfet mthing. 12

13 4.5 The Hungrin Algorithm (All in One Ple) The Hungrin Algorithm set M = set p v = 0 for ll v V W while M is not perfet mthing o level 0 of serh tree T = the first unmthe vertex r of V while not stuk n no other unmthe vertex foun o if next level i is o then efine level i of T from level i 1 vi BFS // i.e., neighors of level i 1 not lrey seen else if next level i is even then efine level i of T s the verties mthe in M to verties t level i 1 if T ontins n unmthe vertex w W then let P enote the r-w pth in T reple M y M P else let S enote the verties of T in even levels let N(S) enote the verties of T in o levels for ll v S o inrese p v y for ll w N(S) o erese p v y // is s lrge s possile, sujet to invrints return M 4.6 Running Time Sine M n only ontin n eges, there n only e n itertions tht fin goo pth. Sine the serh tree n only ontin n verties of W, there n only e n pries uptes etween itertions tht fin goo pths. Computing the serh tree (n hene P or S n N(S)) n (if neessry) n e one in O(m) time. This gives running time oun of O(mn 2 ). See Prolem Set #2 for n implementtion with running time O(mn log n). 4.7 Exmple We reinfore the lgorithm vi n exmple. Consier the grph in Figure

14 v(0) w(0) x(0) 7 y(0) Figure 10: Exmple grph. Initilly, ll pries re 0. We initilize ll pries to 0 n the urrent mthing to the empty set. Initilly, there re no tight eges, so there is ertinly no goo pth. The serh for suh pth gets stuk where it strts, t vertex v. So S = {v} n N(S) =. We exeute prie upte step, rising the prie of v to 2, t whih point the ege (v, w) eomes tight. Next itertion, the serh strts t v, explores the tight ege (v, w), n enounters vertex w, whih is unmthe. Thus this ege is e to the urrent mthing. Next itertion, new serh strts from the only remining unmthe vertex on the left (x). It hs no tight inient eges, so the serh gets stuk immeitely, with S = {x} n N(S) =. We thus o prie upte step, with = 5, t whih point the ege (x, w) eomes newly tight. Note tht the eges (v, y) n (x, y) hve reue osts 1 n 2, respetively, so neither is tight. Next itertion, the serh from x explores the inient tight ege (x, w). If w were unmthe, we oul stop the serh n the ege (x, w). But w is lrey mthe, to v, so w n v re ple t levels 1 n 2 of the serh tree. v hs no tight inient eges other thn to w, so the serh gets stuk here, with S = {x, v} n N(S) = {w}. So we o nother prie upte step, inresing the prie of x n v y n eresing the prie of w y. With = 1, the reue ost of ege (v, y) gets zeroe out. The finl itertion isovers the goo pth x w v y. Augmenting on this pth yiels the minimum-ost perfet mthing {(v, y), (x, w)}. 14

CS 491G Combinatorial Optimization Lecture Notes

CS 491G Combinatorial Optimization Lecture Notes CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,

More information

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite! Solutions for HW9 Exerise 28. () Drw C 6, W 6 K 6, n K 5,3. C 6 : W 6 : K 6 : K 5,3 : () Whih of the following re iprtite? Justify your nswer. Biprtite: put the re verties in V 1 n the lk in V 2. Biprtite:

More information

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs Isomorphism of Grphs Definition The simple grphs G 1 = (V 1, E 1 ) n G = (V, E ) re isomorphi if there is ijetion (n oneto-one n onto funtion) f from V 1 to V with the property tht n re jent in G 1 if

More information

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours Mi-Term Exmintion - Spring 0 Mthemtil Progrmming with Applitions to Eonomis Totl Sore: 5; Time: hours. Let G = (N, E) e irete grph. Define the inegree of vertex i N s the numer of eges tht re oming into

More information

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of: 22: Union Fin CS 473u - Algorithms - Spring 2005 April 14, 2005 1 Union-Fin We wnt to mintin olletion of sets, uner the opertions of: 1. MkeSet(x) - rete set tht ontins the single element x. 2. Fin(x)

More information

Lecture 6: Coding theory

Lecture 6: Coding theory Leture 6: Coing theory Biology 429 Crl Bergstrom Ferury 4, 2008 Soures: This leture loosely follows Cover n Thoms Chpter 5 n Yeung Chpter 3. As usul, some of the text n equtions re tken iretly from those

More information

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area Journl of Grph Algorithms n Applitions http://jg.info/ vol. 13, no. 2, pp. 153 177 (2009) On Clss of Plnr Grphs with Stright-Line Gri Drwings on Liner Are M. Rezul Krim 1,2 M. Siur Rhmn 1 1 Deprtment of

More information

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)} Grph Theory Simple Grph G = (V, E). V ={verties}, E={eges}. h k g f e V={,,,,e,f,g,h,k} E={(,),(,g),(,h),(,k),(,),(,k),...,(h,k)} E =16. 1 Grph or Multi-Grph We llow loops n multiple eges. G = (V, E.ψ)

More information

15-451/651: Design & Analysis of Algorithms December 3, 2013 Lecture #28 last changed: November 28, 2013

15-451/651: Design & Analysis of Algorithms December 3, 2013 Lecture #28 last changed: November 28, 2013 15-451/651: Design & nlysis of lgorithms Deemer 3, 2013 Leture #28 lst hnged: Novemer 28, 2013 Lst time we strted tlking out mehnism design: how to llote n item to the person who hs the mximum vlue for

More information

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106 8. Problem Set Due Wenesy, Ot., t : p.m. in - Problem Mony / Consier the eight vetors 5, 5, 5,..., () List ll of the one-element, linerly epenent sets forme from these. (b) Wht re the two-element, linerly

More information

Lecture 2: Cayley Graphs

Lecture 2: Cayley Graphs Mth 137B Professor: Pri Brtlett Leture 2: Cyley Grphs Week 3 UCSB 2014 (Relevnt soure mteril: Setion VIII.1 of Bollos s Moern Grph Theory; 3.7 of Gosil n Royle s Algeri Grph Theory; vrious ppers I ve re

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 6: Minigoals Towards Simplifying and Rewriting Expressions MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy

More information

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. 1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the

More information

Now we must transform the original model so we can use the new parameters. = S max. Recruits

Now we must transform the original model so we can use the new parameters. = S max. Recruits MODEL FOR VARIABLE RECRUITMENT (ontinue) Alterntive Prmeteriztions of the pwner-reruit Moels We n write ny moel in numerous ifferent ut equivlent forms. Uner ertin irumstnes it is onvenient to work with

More information

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4 Am Blnk Leture 13 Winter 2016 CSE 332 CSE 332: Dt Astrtions Sorting Dt Astrtions QuikSort Cutoff 1 Where We Are 2 For smll n, the reursion is wste. The onstnts on quik/merge sort re higher thn the ones

More information

CIT 596 Theory of Computation 1. Graphs and Digraphs

CIT 596 Theory of Computation 1. Graphs and Digraphs CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege

More information

Lecture 4: Graph Theory and the Four-Color Theorem

Lecture 4: Graph Theory and the Four-Color Theorem CCS Disrete II Professor: Pri Brtlett Leture 4: Grph Theory n the Four-Color Theorem Week 4 UCSB 2015 Through the rest of this lss, we re going to refer frequently to things lle grphs! If you hen t seen

More information

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233, Surs n Inies Surs n Inies Curriulum Rey ACMNA:, 6 www.mthletis.om Surs SURDS & & Inies INDICES Inies n surs re very losely relte. A numer uner (squre root sign) is lle sur if the squre root n t e simplifie.

More information

6.5 Improper integrals

6.5 Improper integrals Eerpt from "Clulus" 3 AoPS In. www.rtofprolemsolving.om 6.5. IMPROPER INTEGRALS 6.5 Improper integrls As we ve seen, we use the definite integrl R f to ompute the re of the region under the grph of y =

More information

Factorising FACTORISING.

Factorising FACTORISING. Ftorising FACTORISING www.mthletis.om.u Ftorising FACTORISING Ftorising is the opposite of expning. It is the proess of putting expressions into rkets rther thn expning them out. In this setion you will

More information

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 S 224 DIGITAL LOGI & STATE MAHINE DESIGN SPRING 214 DUE : Mrh 27, 214 HOMEWORK III READ : Relte portions of hpters VII n VIII ASSIGNMENT : There re three questions. Solve ll homework n exm prolems s shown

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their

More information

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points: Eidgenössishe Tehnishe Hohshule Zürih Eole polytehnique fédérle de Zurih Politenio federle di Zurigo Federl Institute of Tehnology t Zurih Deprtement of Computer Siene. Novemer 0 Mrkus Püshel, Dvid Steurer

More information

arxiv: v2 [math.co] 31 Oct 2016

arxiv: v2 [math.co] 31 Oct 2016 On exlue minors of onnetivity 2 for the lss of frme mtrois rxiv:1502.06896v2 [mth.co] 31 Ot 2016 Mtt DeVos Dryl Funk Irene Pivotto Astrt We investigte the set of exlue minors of onnetivity 2 for the lss

More information

Monochromatic Plane Matchings in Bicolored Point Set

Monochromatic Plane Matchings in Bicolored Point Set CCCG 2017, Ottw, Ontrio, July 26 28, 2017 Monohromti Plne Mthings in Biolore Point Set A. Krim Au-Affsh Sujoy Bhore Pz Crmi Astrt Motivte y networks interply, we stuy the prolem of omputing monohromti

More information

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point GCSE C Emple 7 Work out 9 Give your nswer in its simplest form Numers n inies Reiprote mens invert or turn upsie own The reiprol of is 9 9 Mke sure you only invert the frtion you re iviing y 7 You multiply

More information

2.4 Theoretical Foundations

2.4 Theoretical Foundations 2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level

More information

CS 573 Automata Theory and Formal Languages

CS 573 Automata Theory and Formal Languages Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple

More information

I 3 2 = I I 4 = 2A

I 3 2 = I I 4 = 2A ECE 210 Eletril Ciruit Anlysis University of llinois t Chigo 2.13 We re ske to use KCL to fin urrents 1 4. The key point in pplying KCL in this prolem is to strt with noe where only one of the urrents

More information

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Voting Prdoxes Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Voting Prdoxes Properties Arrow s Theorem Leture Overview 1 Rep

More information

Subsequence Automata with Default Transitions

Subsequence Automata with Default Transitions Susequene Automt with Defult Trnsitions Philip Bille, Inge Li Gørtz, n Freerik Rye Skjoljensen Tehnil University of Denmrk {phi,inge,fskj}@tu.k Astrt. Let S e string of length n with hrters from n lphet

More information

Section 2.3. Matrix Inverses

Section 2.3. Matrix Inverses Mtri lger Mtri nverses Setion.. Mtri nverses hree si opertions on mtries, ition, multiplition, n sutrtion, re nlogues for mtries of the sme opertions for numers. n this setion we introue the mtri nlogue

More information

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005 RLETON UNIVERSIT eprtment of Eletronis ELE 2607 Swithing iruits erury 28, 05; 0 pm.0 Prolems n Most Solutions, Set, 2005 Jn. 2, #8 n #0; Simplify, Prove Prolem. #8 Simplify + + + Reue to four letters (literls).

More information

Introduction to Olympiad Inequalities

Introduction to Olympiad Inequalities Introdution to Olympid Inequlities Edutionl Studies Progrm HSSP Msshusetts Institute of Tehnology Snj Simonovikj Spring 207 Contents Wrm up nd Am-Gm inequlity 2. Elementry inequlities......................

More information

Chapter 4 State-Space Planning

Chapter 4 State-Space Planning Leture slides for Automted Plnning: Theory nd Prtie Chpter 4 Stte-Spe Plnning Dn S. Nu CMSC 722, AI Plnning University of Mrylnd, Spring 2008 1 Motivtion Nerly ll plnning proedures re serh proedures Different

More information

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 ) Neessry n suient onitions for some two vrile orthogonl esigns in orer 44 C. Koukouvinos, M. Mitrouli y, n Jennifer Seerry z Deite to Professor Anne Penfol Street Astrt We give new lgorithm whih llows us

More information

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh Computtionl Biology Leture 8: Genome rerrngements, finding miml mthes Sd Mneimneh We hve seen how to rerrnge genome to otin nother one sed on reversls nd the knowledge of the preserved loks or genes. Now

More information

Lecture 11 Binary Decision Diagrams (BDDs)

Lecture 11 Binary Decision Diagrams (BDDs) C 474A/57A Computer-Aie Logi Design Leture Binry Deision Digrms (BDDs) C 474/575 Susn Lyseky o 3 Boolen Logi untions Representtions untion n e represente in ierent wys ruth tle, eqution, K-mp, iruit, et

More information

A Primer on Continuous-time Economic Dynamics

A Primer on Continuous-time Economic Dynamics Eonomis 205A Fll 2008 K Kletzer A Primer on Continuous-time Eonomi Dnmis A Liner Differentil Eqution Sstems (i) Simplest se We egin with the simple liner first-orer ifferentil eqution The generl solution

More information

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression 5-2 Dt Strutures n Algorithms Dt Compression n Huffmn s Algorithm th Fe 2003 Rjshekr Rey Outline Dt ompression Lossy n lossless Exmples Forml view Coes Definition Fixe length vs. vrile length Huffmn s

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design nd Anlysis LECTURE 5 Supplement Greedy Algorithms Cont d Minimizing lteness Ching (NOT overed in leture) Adm Smith 9/8/10 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov,

More information

If the numbering is a,b,c,d 1,2,3,4, then the matrix representation is as follows:

If the numbering is a,b,c,d 1,2,3,4, then the matrix representation is as follows: Reltions. Solutions 1. ) true; ) true; ) flse; ) true; e) flse; f) true; g) flse; h) true; 2. 2 A B 3. Consier ll reltions tht o not inlue the given pir s n element. Oviously, the rest of the reltions

More information

Computing on rings by oblivious robots: a unified approach for different tasks

Computing on rings by oblivious robots: a unified approach for different tasks Computing on rings y olivious roots: unifie pproh for ifferent tsks Ginlorenzo D Angelo, Griele Di Stefno, Alfreo Nvrr, Niols Nisse, Krol Suhn To ite this version: Ginlorenzo D Angelo, Griele Di Stefno,

More information

SIMPLE NONLINEAR GRAPHS

SIMPLE NONLINEAR GRAPHS S i m p l e N o n l i n e r G r p h s SIMPLE NONLINEAR GRAPHS www.mthletis.om.u Simple SIMPLE Nonliner NONLINEAR Grphs GRAPHS Liner equtions hve the form = m+ where the power of (n ) is lws. The re lle

More information

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6 CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized

More information

Discrete Structures Lecture 11

Discrete Structures Lecture 11 Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion.

More information

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition Dt Strutures, Spring 24 L. Joskowiz Dt Strutures LEURE Humn oing Motivtion Uniquel eipherle oes Prei oes Humn oe onstrution Etensions n pplitions hpter 6.3 pp 385 392 in tetook Motivtion Suppose we wnt

More information

Separable discrete functions: recognition and sufficient conditions

Separable discrete functions: recognition and sufficient conditions Seprle isrete funtions: reognition n suffiient onitions Enre Boros Onřej Čepek Vlimir Gurvih Novemer 21, 217 rxiv:1711.6772v1 [mth.co] 17 Nov 217 Astrt A isrete funtion of n vriles is mpping g : X 1...

More information

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18 Computt onl Biology Leture 18 Genome Rerrngements Finding preserved genes We hve seen before how to rerrnge genome to obtin nother one bsed on: Reversls Knowledge of preserved bloks (or genes) Now we re

More information

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz Welome nge Li Gørt. everse tehing n isussion of exerises: 02110 nge Li Gørt 3 tehing ssistnts 8.00-9.15 Group work 9.15-9.45 isussions of your solutions in lss 10.00-11.15 Leture 11.15-11.45 Work on exerises

More information

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

The DOACROSS statement

The DOACROSS statement The DOACROSS sttement Is prllel loop similr to DOALL, ut it llows prouer-onsumer type of synhroniztion. Synhroniztion is llowe from lower to higher itertions sine it is ssume tht lower itertions re selete

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

More information

Maximum size of a minimum watching system and the graphs achieving the bound

Maximum size of a minimum watching system and the graphs achieving the bound Mximum size of minimum wthing system n the grphs hieving the oun Tille mximum un système e ontrôle minimum et les grphes tteignnt l orne Dvi Auger Irène Chron Olivier Hury Antoine Lostein 00D0 Mrs 00 Déprtement

More information

Solutions to Problem Set #1

Solutions to Problem Set #1 CSE 233 Spring, 2016 Solutions to Prolem Set #1 1. The movie tse onsists of the following two reltions movie: title, iretor, tor sheule: theter, title The first reltion provies titles, iretors, n tors

More information

Exercise sheet 6: Solutions

Exercise sheet 6: Solutions Eerise sheet 6: Solutions Cvet emptor: These re merel etended hints, rther thn omplete solutions. 1. If grph G hs hromti numer k > 1, prove tht its verte set n e prtitioned into two nonempt sets V 1 nd

More information

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph Inin Institute of Informtion Tehnology Design n Mnufturing, Knheepurm, Chenni 00, Ini An Autonomous Institute uner MHRD, Govt of Ini http://www.iiitm..in COM 0T Design n Anlysis of Algorithms -Leture Notes

More information

Lecture 8: Abstract Algebra

Lecture 8: Abstract Algebra Mth 94 Professor: Pri Brtlett Leture 8: Astrt Alger Week 8 UCSB 2015 This is the eighth week of the Mthemtis Sujet Test GRE prep ourse; here, we run very rough-n-tumle review of strt lger! As lwys, this

More information

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx Applitions of Integrtion Are of Region Between Two Curves Ojetive: Fin the re of region etween two urves using integrtion. Fin the re of region etween interseting urves using integrtion. Desrie integrtion

More information

GRUPOS NANTEL BERGERON

GRUPOS NANTEL BERGERON Drft of Septemer 8, 2017 GRUPOS NANTEL BERGERON Astrt. 1. Quik Introution In this mini ourse we will see how to ount severl ttriute relte to symmetries of n ojet. For exmple, how mny ifferent ies with

More information

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Fun Gme Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Fun Gme Properties Arrow s Theorem Leture Overview 1 Rep 2 Fun Gme 3 Properties

More information

Probability. b a b. a b 32.

Probability. b a b. a b 32. Proility If n event n hppen in '' wys nd fil in '' wys, nd eh of these wys is eqully likely, then proility or the hne, or its hppening is, nd tht of its filing is eg, If in lottery there re prizes nd lnks,

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design nd Anlysis LECTURE 8 Mx. lteness ont d Optiml Ching Adm Smith 9/12/2008 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov, K. Wyne Sheduling to Minimizing Lteness Minimizing

More information

Compression of Palindromes and Regularity.

Compression of Palindromes and Regularity. Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht

More information

On the Spectra of Bipartite Directed Subgraphs of K 4

On the Spectra of Bipartite Directed Subgraphs of K 4 On the Spetr of Biprtite Direte Sugrphs of K 4 R. C. Bunge, 1 S. I. El-Znti, 1, H. J. Fry, 1 K. S. Kruss, 2 D. P. Roerts, 3 C. A. Sullivn, 4 A. A. Unsiker, 5 N. E. Witt 6 1 Illinois Stte University, Norml,

More information

Eigenvectors and Eigenvalues

Eigenvectors and Eigenvalues MTB 050 1 ORIGIN 1 Eigenvets n Eigenvlues This wksheet esries the lger use to lulte "prinipl" "hrteristi" iretions lle Eigenvets n the "prinipl" "hrteristi" vlues lle Eigenvlues ssoite with these iretions.

More information

Finite State Automata and Determinisation

Finite State Automata and Determinisation Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions

More information

APPENDIX. Precalculus Review D.1. Real Numbers and the Real Number Line

APPENDIX. Precalculus Review D.1. Real Numbers and the Real Number Line APPENDIX D Preclculus Review APPENDIX D.1 Rel Numers n the Rel Numer Line Rel Numers n the Rel Numer Line Orer n Inequlities Asolute Vlue n Distnce Rel Numers n the Rel Numer Line Rel numers cn e represente

More information

First Midterm Examination

First Midterm Examination 24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet

More information

The vertex leafage of chordal graphs

The vertex leafage of chordal graphs The vertex lefge of horl grphs Steven Chplik, Jurj Stho b Deprtment of Physis n Computer Siene, Wilfri Lurier University, 75 University Ave. West, Wterloo, Ontrio N2L 3C5, Cn b DIMAP n Mthemtis Institute,

More information

CS 360 Exam 2 Fall 2014 Name

CS 360 Exam 2 Fall 2014 Name CS 360 Exm 2 Fll 2014 Nme 1. The lsses shown elow efine singly-linke list n stk. Write three ifferent O(n)-time versions of the reverse_print metho s speifie elow. Eh version of the metho shoul output

More information

CSC2542 State-Space Planning

CSC2542 State-Space Planning CSC2542 Stte-Spe Plnning Sheil MIlrith Deprtment of Computer Siene University of Toronto Fll 2010 1 Aknowlegements Some the slies use in this ourse re moifitions of Dn Nu s leture slies for the textook

More information

QUADRATIC EQUATION. Contents

QUADRATIC EQUATION. Contents QUADRATIC EQUATION Contents Topi Pge No. Theory 0-04 Exerise - 05-09 Exerise - 09-3 Exerise - 3 4-5 Exerise - 4 6 Answer Key 7-8 Syllus Qudrti equtions with rel oeffiients, reltions etween roots nd oeffiients,

More information

Algebra 2 Semester 1 Practice Final

Algebra 2 Semester 1 Practice Final Alger 2 Semester Prtie Finl Multiple Choie Ientify the hoie tht est ompletes the sttement or nswers the question. To whih set of numers oes the numer elong?. 2 5 integers rtionl numers irrtionl numers

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

September 30, :24 WSPC/Guidelines Y4Spanner

September 30, :24 WSPC/Guidelines Y4Spanner Septemer 30, 2011 12:24 WSPC/Guielines Y4Spnner Interntionl Journl of Computtionl Geometry & Applitions Worl Sientifi Pulishing Compny π/2-angle YAO GAPHS AE SPANNES POSENJIT BOSE Shool of Computer Siene,

More information

arxiv: v1 [cs.dm] 24 Jul 2017

arxiv: v1 [cs.dm] 24 Jul 2017 Some lsses of grphs tht re not PCGs 1 rxiv:1707.07436v1 [s.dm] 24 Jul 2017 Pierluigi Biohi Angelo Monti Tizin Clmoneri Rossell Petreshi Computer Siene Deprtment, Spienz University of Rome, Itly pierluigi.iohi@gmil.om,

More information

Section 1.3 Triangles

Section 1.3 Triangles Se 1.3 Tringles 21 Setion 1.3 Tringles LELING TRINGLE The line segments tht form tringle re lled the sides of the tringle. Eh pir of sides forms n ngle, lled n interior ngle, nd eh tringle hs three interior

More information

Let s divide up the interval [ ab, ] into n subintervals with the same length, so we have

Let s divide up the interval [ ab, ] into n subintervals with the same length, so we have III. INTEGRATION Eonomists seem muh more intereste in mrginl effets n ifferentition thn in integrtion. Integrtion is importnt for fining the epete vlue n vrine of rnom vriles, whih is use in eonometris

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS

POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS Bull. Koren Mth. So. 35 (998), No., pp. 53 6 POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS YOUNG BAE JUN*, YANG XU AND KEYUN QIN ABSTRACT. We introue the onepts of positive

More information

Part 4. Integration (with Proofs)

Part 4. Integration (with Proofs) Prt 4. Integrtion (with Proofs) 4.1 Definition Definition A prtition P of [, b] is finite set of points {x 0, x 1,..., x n } with = x 0 < x 1

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)

More information

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap Prtile Physis Mihelms Term 2011 Prof Mrk Thomson g X g X g g Hnout 3 : Intertion y Prtile Exhnge n QED Prof. M.A. Thomson Mihelms 2011 101 Rep Working towrs proper lultion of ey n sttering proesses lnitilly

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

Exam Review. John Knight Electronics Department, Carleton University March 2, 2009 ELEC 2607 A MIDTERM

Exam Review. John Knight Electronics Department, Carleton University March 2, 2009 ELEC 2607 A MIDTERM riting Exms: Exm Review riting Exms += riting Exms synhronous iruits Res, yles n Stte ssignment Synhronous iruits Stte-Grph onstrution n Smll Prolems lso Multiple Outputs, n Hrer omintionl Prolem riting

More information

Proportions: A ratio is the quotient of two numbers. For example, 2 3

Proportions: A ratio is the quotient of two numbers. For example, 2 3 Proportions: rtio is the quotient of two numers. For exmple, 2 3 is rtio of 2 n 3. n equlity of two rtios is proportion. For exmple, 3 7 = 15 is proportion. 45 If two sets of numers (none of whih is 0)

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

Lecture 2e Orthogonal Complement (pages )

Lecture 2e Orthogonal Complement (pages ) Lecture 2e Orthogonl Complement (pges -) We hve now seen tht n orthonorml sis is nice wy to descrie suspce, ut knowing tht we wnt n orthonorml sis doesn t mke one fll into our lp. In theory, the process

More information

Symmetrical Components 1

Symmetrical Components 1 Symmetril Components. Introdution These notes should e red together with Setion. of your text. When performing stedy-stte nlysis of high voltge trnsmission systems, we mke use of the per-phse equivlent

More information

Obstructions to chordal circular-arc graphs of small independence number

Obstructions to chordal circular-arc graphs of small independence number Ostrutions to horl irulr-r grphs of smll inepenene numer Mthew Frnis,1 Pvol Hell,2 Jurj Stho,3 Institute of Mth. Sienes, IV Cross Ro, Trmni, Chenni 600 113, Ini Shool of Comp. Siene, Simon Frser University,

More information

Mathematical Proofs Table of Contents

Mathematical Proofs Table of Contents Mthemtil Proofs Tle of Contents Proof Stnr Pge(s) Are of Trpezoi 7MG. Geometry 8.0 Are of Cirle 6MG., 9 6MG. 7MG. Geometry 8.0 Volume of Right Cirulr Cyliner 6MG. 4 7MG. Geometry 8.0 Volume of Sphere Geometry

More information

Automata and Regular Languages

Automata and Regular Languages Chpter 9 Automt n Regulr Lnguges 9. Introution This hpter looks t mthemtil moels of omputtion n lnguges tht esrie them. The moel-lnguge reltionship hs multiple levels. We shll explore the simplest level,

More information

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4. Mth 5 Tutoril Week 1 - Jnury 1 1 Nme Setion Tutoril Worksheet 1. Find ll solutions to the liner system by following the given steps x + y + z = x + y + z = 4. y + z = Step 1. Write down the rgumented mtrix

More information

Nondeterministic Automata vs Deterministic Automata

Nondeterministic Automata vs Deterministic Automata Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n

More information

We will see what is meant by standard form very shortly

We will see what is meant by standard form very shortly THEOREM: For fesible liner progrm in its stndrd form, the optimum vlue of the objective over its nonempty fesible region is () either unbounded or (b) is chievble t lest t one extreme point of the fesible

More information

Homework Solution - Set 5 Due: Friday 10/03/08

Homework Solution - Set 5 Due: Friday 10/03/08 CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.

More information

Quadratic Forms. Quadratic Forms

Quadratic Forms. Quadratic Forms Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte

More information

Chapter 8 Roots and Radicals

Chapter 8 Roots and Radicals Chpter 8 Roots nd Rdils 7 ROOTS AND RADICALS 8 Figure 8. Grphene is n inredily strong nd flexile mteril mde from ron. It n lso ondut eletriity. Notie the hexgonl grid pttern. (redit: AlexnderAIUS / Wikimedi

More information

Linear Algebra Introduction

Linear Algebra Introduction Introdution Wht is Liner Alger out? Liner Alger is rnh of mthemtis whih emerged yers k nd ws one of the pioneer rnhes of mthemtis Though, initilly it strted with solving of the simple liner eqution x +

More information