Fall 2014 David Wagner MT2 Soln

Size: px
Start display at page:

Download "Fall 2014 David Wagner MT2 Soln"

Transcription

1 CS 170 Algorihm Fall 014 Daid Wagner MT Soln Problem 1. [True or fale] (9 poin) Circle TRUE or FALSE. Do no juif our aner on hi problem. (a) TRUE or FALSE : Le (S,V S) be a minimum (,)-cu in he neork flo graph G. Le (u,) be an edge ha croe he cu in he forard direcion, i.e., u S and V S. Then increaing he capaci of he edge (u,) necearil increae he maimum flo of G. Eplanaion: In he folloing graph, S = {, u} form a minimum (,)-cu, bu increaing he capaci of he edge (u,) doen increae he maimum flo of G. u (b) TRUE or FALSE : All inance of linear programming hae eacl one opimum. (c) (d) TRUE or FALSE: If all of he edge capaciie in a graph are an ineger muliple of 7, hen he alue of he maimum flo ill be a muliple of 7. Eplanaion: One proof i o noice ha each ieraion of he Ford-Fulkeron algorihm ill increae he alue of he flo b an ineger muliple of 7. Therefore, b inducion, Ford- Fulkeron ill oupu a flo hoe alue i a muliple of 7. Since Ford-Fulkeron oupu a maimum flo, he alue of he maimum flo mu be a muliple of 7. TRUE or FALSE: If e an o proe ha a earch problem X i NP-complee, i enough o reduce SAT o X (in oher ord, i enough o proe SAT P X). (e) TRUE or FALSE : If e an o proe ha a earch problem X i NP-complee, i enough o reduce X o SAT (in oher ord, i enough o proe X P SAT). Eplanaion: For inance, SAT P SAT (ince ou can ole SAT uing an algorihm for SAT), bu SAT i in P and hence no NP-complee (unle P = NP). (f) TRUE or FALSE : For eer graph G and eer maimum flo on G, here ala ei an edge uch ha increaing he capaci on ha edge ill increae he maimum flo ha poible in he graph. Eplanaion: See he eample graph hon in par (a). (g) TRUE or FALSE : Suppoe he maimum (,)-flo of ome graph ha alue f. No e increae he capaci of eer edge b 1. Then he maimum (,)-flo in hi modified graph ill hae alue a mo f + 1. CS 170, Fall 014, MT Soln 1

2 Eplanaion: In he folloing graph, he maimum flo ha alue f = 4. Increaing he capaci of eer edge b 1 caue he maimum flo in he modified graph o hae alue 6. u (h) TRUE or FALSE : There i no knon polnomial-ime algorihm o ole maimum flo. (i) TRUE or FALSE: If problem A can be reduced o problem B, and B can be reduced o C, hen A can alo be reduced o C. (j) TRUE or FALSE: If X i an earch problem, hen X can be reduced o INDEPENDENT SET. Eplanaion: INDEPENDENT SET i NP-complee. (k) TRUE or FALSE : If e can find a ingle problem in NP ha ha a polnomial-ime algorihm, hen here i a polnomial-ime algorihm for SAT. (l) (m) (n) (o) Eplanaion: SAT i in NP and ha a polnomial-ime algorihm, bu ha doen necearil mean ha SAT ha a polnomial-ime algorihm. TRUE or FALSE: If here i a polnomial-ime algorihm for SAT, hen eer problem in NP ha a polnomial-ime algorihm. Eplanaion: SAT i NP-complee. TRUE or FALSE: We can reduce he earch problem MAXIMUM FLOW o he earch problem LINEAR PROGRAMMING (in oher ord, MAXIMUM FLOW P LINEAR PROGRAMMING). Eplanaion: We a in cla ho e can epre he maimum flo problem a a linear program. TRUE or FALSE: We can reduce he earch problem LINEAR PROGRAMMING o he earch problem INTEGER LINEAR PROGRAMMING (in oher ord, LINEAR PROGRAMMING P INTEGER LINEAR PROGRAMMING). Eplanaion: You can reduce anhing in P o anhing in NP, and LINEAR PROGRAMMING i in P and INTEGER LINEAR PROGRAMMING i in NP. Or: You can reduce anhing in NP o anhing NP-complee, and LINEAR PROGRAMMING i in NP and INTEGER LINEAR PROGRAMMING i NP-complee. TRUE or FALSE: Eer problem in P can be reduced o SAT. Eplanaion: Thi follo from he Cook-Lein heorem. Eer problem in P i in NP. The Cook-Lein heorem a ha eerhing in NP can be reduced o CircuiSAT, hich can in urn be reduced o SAT. Or: Eer problem in P i in NP, and eer problem in NP can be reduced o an NP-complee problem. SAT i NP-complee. CS 170, Fall 014, MT Soln

3 (p) TRUE or FALSE : Suppoe e hae a daa rucure here he amorized running ime of Iner and Delee i O(lgn). Then in an equence of n call o Iner and Delee, he or-cae running ime for he nh call i O(lgn). Eplanaion: The fir n 1 call migh ake Θ(1) ime and he nh call migh ake Θ(nlgn) ime. Thi ould be conien ih he premie, a i ould mean ha he oal ime for he fir n call i Θ(nlgn). (q) TRUE or FALSE : Suppoe e do a equence of m call o Find and m call o Union, in ome order, uing he union-find daa rucure ih union b rank and pah compreion. Then he la call o Union ake O(lg m) ime. Eplanaion: The or cae ime for a ingle call o Union migh be much larger han i amorized running ime. Problem. [Shor aner] (1 poin) Aner he folloing queion, giing a hor juificaion (a enence or o). (a) If P NP, could here be a polnomial-ime algorihm for SAT? Aner: No. SAT i NP-complee, o a polnomial-ime algorihm for SAT ould impl a polnomial-ime algorihm for eer problem in NP i ould impl ha P = NP. (b) If P NP, could GRAPH -COLORING be NP-complee? Aner: No. There a polnomial-ime algorihm for GRAPH -COLORING, o if i ere NP-complee, e ould hae a polnomial-ime algorihm for eer problem in NP, hich ould mean ha P = NP. (c) If e hae a dnamic programming algorihm ih n ubproblem, i i poible ha he running ime could be ampoicall ricl more han Θ(n )? Aner: Ye, for inance, if he running ime per ubproblem i Θ(n) (or anhing larger han Θ(1)). (d) If e hae a dnamic programming algorihm ih n ubproblem, i i poible ha he pace uage could be O(n)? Aner: Ye, if e don need o keep he oluion o all maller ubproblem bu onl he la O(n) of hem or o. (e) Suppoe ha e implemen an append-onl log daa rucure, here he oal running ime o perform an equence of n Append operaion i a mo n. Wha i he amorized running ime of Append? Aner: n/n = O(1), a he amorized running ime i he oal ime for man operaion diided b he number of operaion. (Incidenall, hi i Q1 from HW7.) (f) Suppoe e an o find an opimal binar earch ree, gien he frequenc of bunch of ord. In oher ord, he ak i: CS 170, Fall 014, MT Soln

4 Inpu: n ord (in ored order); frequencie of hee ord: p 1, p,..., p n. Oupu: The binar earch ree of loe co (defined a he epeced number of comparion in looking up a ord). Prof. Cerie ugge defining C(i) = he co of he opimal binar earch ree for ord 1...i, riing a recurie formula for C(i), and hen uing dnamic programming o find all he C(i). Prof. Ru ugge defining R(i, j) = he co of he opimal binar earch ree for ord i... j, riing a recurie formula for R(i, j), and hen uing dnamic programming o find all he R(i, j). One of he profeor ha an approach ha ork, and one ha an approach ha doen ork. Which profeor approach can be made o ork? In ha order hould e compue he C alue (if ou chooe Cerie approach) or R alue (if ou chooe Ru approach)? Aner: Ru (here no ea a o compue C(n) from C(1),...,C(n 1), bu a e a in he homeork, Ru approach doe ork). B increaing alue of j i. (Incidenall, hi i Q4 from HW.) Problem. [Ma flo] (10 poin) Conider he folloing graph G. The number on he edge repreen he capaciie of he edge. 7 9 (a) Ho much flo can e end along he pah? Aner: (b) Dra he reuling reidual graph afer ending a much flo a poible along he pah, b filling in he keleon belo ih he edge of he reidual graph. Label each edge of he reidual graph ih i capaci. Aner: CS 170, Fall 014, MT Soln 4

5 5 6 4 (c) Find a maimum (,)-flo for G. Label each edge belo ih he amoun of flo en along ha edge, in our flo. (You can ue he blank pace on he ne page for crach pace if ou like.) Aner: There are muliple alid aner. Here i one maimum flo: Anoher maimum flo: Ye anoher alid maimum flo: CS 170, Fall 014, MT Soln 5

6 (d) Dra a minimum (,)-cu for he graph G (hon belo again). Aner: S = {,,,}. 7 9 Problem 4. [Ma flo] (1 poin) We ould like an efficien algorihm for he folloing ak: Inpu: A direced graph G = (V,E), here each edge ha capaci 1; erice, V ; a number k N Goal: find k edge ha, hen deleed, reduce he maimum flo in he graph b a much a poible Conider he folloing approach: 1. Compue a maimum (,)-flo f for G.. Le G f be he reidual graph for G ih flo f.. Define a e S of erice b (omehing). 4. Define a e T of edge b (omehing). 5. Reurn an k edge in T. (a) Ho could e define he e S and T in ep 4, o ge an efficien algorihm for hi problem? Aner: S = { V : i reachable from in G f }. T = {(,) E : S, / S}. (or: T = he edge ha cro he cu (S,V S).) CS 170, Fall 014, MT Soln 6

7 Eplanaion: (S,V S) i a minimum (,)-cu, and b he min-cu ma-flo heorem, i capaci i alue( f ). If e remoe an k edge from T, hen he capaci of he cu (S,V S) ill drop o alue( f ) k, and i ll be a minimum (,)-cu in he modified graph. Therefore, b he min-cu ma-flo heorem, he alue of he maimum in he modified graph ill be alue( f ) k. (Deleing k edge can reduce he alue of he maimum flo more han ha, o hi i opimal.) (b) I here an algorihm o implemen ep 1 in O( V E ) ime or le? If e, ha algorihm hould e ue? If no, h no? Eiher a, juif our aner in a enence or o. Aner: Ye. Ford-Fulkeron: he alue of he ma flo i a mo V 1 (ince here are a mo V 1 edge ou of, each of hich can carr a mo 1 uni of flo), o Ford-Fulkeron doe a mo V 1 ieraion, and each ieraion ake O( E ) ime. Commen: Karp-Edmond running ime i O( V E ) in general, oo lo. (There are apparenl algorihm ha can compue he ma flo in an arbirar graph in O( V E ) ime, bu he are uper-comple mehod: e.g., Orlin algorihm plu he King-Rao-Tarjan algorihm.) Problem 5. [Dnamic programming] (1 poin) Le A[1..n] be a li of ineger, poibl negaie. I pla a game, here in each urn, I can chooe beeen o poible moe: (a) delee he fir ineger from he li, leaing m core unchanged, or (b) add he um of he fir o ineger o m core and hen delee he fir hree ineger from he li. (If I reach a poin here onl one or o ineger remain, I m forced o chooe moe (a).) I an o maimize m core. Deign a dnamic programming algorihm for hi ak. Formall: Inpu: A[1..n] Oupu: he maimum core aainable, b ome equence of legal moe For inance, if he li i A = [,5,7,,10,10,1], he be oluion i =. You do no need o eplain or juif our aner on an of he par of hi queion. (a) Define f ( j) = he maimum core aainable b ome equence of legal moe, if e ar ih he li A[ j..n]. Fill in he folloing bae cae: Aner: f (n) = 0 f (n 1) = 0 f (n ) = ma(0,a[n ] + A[n 1]) (b) Wrie a recurie formula for f ( j). You can aume 1 j n. Aner: f ( j) = ma( f ( j + 1), A[ j] + A[ j + 1] + f ( j + )) (c) Suppoe e ue he formula from par (a) and (b) o ole hi problem ih dnamic programming. Wha ill he ampoic running ime of he reuling algorihm be? Aner: Θ(n). Eplanaion: We hae o ole n ubproblem, and each one ake Θ(1) ime o ole (ince ha i he ime o ealuae he formula in par (b) for a ingle alue of j). CS 170, Fall 014, MT Soln 7

8 (d) Suppoe e an o minimize he amoun of pace (memor) ued b he algorihm o ore inermediae alue. Ampoicall, ho much pace ill be needed, a a funcion of n? (Don coun he amoun of pace o ore he inpu.) Ue Θ( ) noaion. Aner: Θ(1). Eplanaion: A e ole he ubproblem in he order f (n), f (n 1),..., f (1), e don need o ore all of he oluion; e onl need o ore he hree la alue of f ( ). Problem 6. [Greed card] (1 poin) Ning and Ean are plaing a game, here here are n card in a line. The card are all face-up (o he can boh ee all card in he line) and numbered 9. Ning and Ean ake urn. Whoeer urn i i can ake one card from eiher he righ end or he lef end of he line. The goal for each plaer i o maimize he um of he card he e colleced. (a) Ning decide o ue a greed raeg: on m urn, I ill ake he larger of he o card aailable o me. Sho a mall counereample (n 5) here Ning ill loe if he pla hi greed raeg, auming Ning goe fir and Ean pla opimall, bu he could hae on if he had plaed opimall. Aner: [1,1,9,]. Eplanaion: Ning fir greedil ake he from he righ end, and hen Ean nache he 9, o Ean ge 10 and Ning ge a mierl. If Ning had ared b crafil aking he 1 from he lef end, he d guaranee ha he ould ge 10 and poor Ean ould be uck ih. There are man oher counereample. The re all of lengh a lea 4. (b) Ean decide o ue dnamic programming o find an algorihm o maimize hi core, auming he i plaing again Ning and Ning i uing he greed raeg from par (a). Le A[1..n] denoe he n card in he line. Ean define (i, j) o be he highe core he can achiee if i hi urn and he line conain card A[i.. j]. Ean need a recurie formula for (i, j). Fill in a formula he could ue, belo. Ean ugge ou implif our epreion b epreing (i, j) a a funcion of l(i, j) and r(i, j), here l(i, j) i defined a he highe core Ean can achiee if i hi urn and he line conain card A[i.. j], if he ake A[i]; alo, r(i, j) i defined o be he highe core Ean can achiee if i hi urn and he line conain card A[i.. j], if he ake A[ j]. Wrie an epreion for all hree ha Ean could ue in hi dnamic programming algorihm. You can aume 1 i < j n and j i. Don orr abou bae cae. Aner: (i, j) = ma(l(i, j),r(i, j)) { A[i] + (i + 1, j 1) if A[ j] > A[i + 1] here l(i, j) = A[i] + (i +, j) oherie. { A[ j] + (i + 1, j 1) if A[i] A[ j 1] r(i, j) = A[ j] + (i, j ) oherie. CS 170, Fall 014, MT Soln

9 Commen: We didn pecif ho Ning reole ie, if he card on he lef end ha he ame alue a he card on he righ end. Therefore, our recurie formula can reole ie in an manner ou an: an correc formula ill be acceped a correc regardle of ho ou decided o reole ie. (For inance, he formula aboe aume ha if here i a ie, Ning ake he card on he lef end.) (c) Wha ill he running ime of he dnamic programming algorihm be, if e ue our formula from par (b)? You don need o juif our aner. Aner: Θ(n ). Aner: There are n(n + 1)/ ubproblem and each one can be oled in Θ(1) ime (ha he ime o ealuae he recurie formula in par (b) for a ingle alue of i, j). Problem 7. [Tile Daid alka] (14 poin) Daid i going o la ile for a long alka leading up o hi houe, and he an an algorihm o figure ou hich paern of ile are achieable. The alka i a long rip, n meer long and 1 meer ide. Each 1 1 meer quare can be colored eiher hie or black. The inpu o he algorihm i a paern P[1..n] ha pecifie he equence of color ha hould appear on he alka. There are hree kind of ile aailable from he local ile ore: a 1 1 hie ile (W), a 1 all-black ile (BB), and a 1 black-hie-black ile (BWB). Unforunael, here i a limied uppl of each: he ile ore onl ha p W ile, q BB, and r BWB in ock. Deie an efficien algorihm o deermine heher a gien paern can be iled, uing he ile in ock. In oher ord, e an an efficien algorihm for he folloing ak: Inpu: A paern P[1..n], ineger p, q, r N Queion: I here a a o ile he alka ih paern P, uing a mo p W, q BB, and r BWB? For eample, if he paern P i WBWBWBBWWBWBW and p = 5, q =, and r =, he aner i e: i can be iled a follo: W BWB W BB W W BWB W. For hi problem, e ugge ou ue dnamic programming. Define { True if here a a o ile P[ j..n] uing a mo p W, q BB, and r BWB f ( j, p,q,r) = Fale oherie. You don need o juif or eplain our aner o an of he folloing par. You can aume omeone ele ha aken care of he bae cae ( j = n,n 1,n), e.g., f (n, p,q,r) = (P[n] = W p 1) and o on; ou don need o orr abou hem. (a) Wrie a recurie formula for f. You can aume 1 j n. Aner: f ( j, p,q,r) =(P[ j] = W p > 0 f ( j + 1, p 1,q,r)) (P[ j.. j + 1] = BB q > 0 f ( j +, p,q 1,r)) (P[ j.. j + ] = BWB r > 0 f ( j +, p,q,r 1)). CS 170, Fall 014, MT Soln 9

10 (b) If e ue our formula from par (a) o creae a dnamic programming algorihm for hi problem, ha ill i ampoic running ime be? Aner: Θ(n(p + 1)(q + 1)(r + 1)). We ll alo accep Θ(n 4 ) (ince ihou lo of generali e can aume p < n, q < n, and r < n; here no a o ue more han n ile). Θ(npqr) i echnicall no quie righ if p, q, or r i zero, bu if e had a promie ha he ere non-zero i ould alo be correc. Eplanaion: There are n(p + 1)(q + 1)(r + 1) ubproblem. Each ubproblem can be oled in Θ(1) ime uing he formula in par (a). Problem. [Walka, ih more ile] (1 poin) No le conider SUPERTILE, a generalizaion of Problem 7. The SUPERTILE problem i Inpu: A paern P[1..n], ile 1,,..., m Oupu: A a o ile he alka uing a ube of he proided ile in an order, or NO if here no a o do i Each ile i i proided a a equence of color (W or B). Each paricular ile i can be ued a mo once, bu he ame ile-equence can appear muliple ime in he inpu (e.g., e can hae i = j ). The ile can be ued in an order. For eample, if he paern P i WBBBWWB and he ile are 1 = BBW, = B, = WB, 4 = WB, hen he aner i e, 1 4 (hi correpond o WB BBW WB ). (a) I SUPERTILE in NP? Juif our aner in a enence or o. Aner: Ye. There i a polnomial-ime oluion-checking algorihm: check ha he ile ued are a ube of 1,..., m and no ile i ued more ime han i appear in 1,..., m. (b) Prof. Maue beliee he ha found a a o reduce SUPERTILE o SAT. In oher ord, he beliee he ha proen ha SUPERTILE P SAT. If he i correc, doe hi impl ha SUPERTILE i NP-hard? Juif our aner in a enence or o. Aner: No. SUPERTILE could be much eaier han SAT. SAT i NP-complee, o eerhing in NP reduce o SAT. (c) Prof. Argle beliee he ha found a a o reduce SAT o SUPERTILE. In oher ord, he beliee he ha proen ha SAT P SUPERTILE. If he i correc, doe hi impl ha SUPERTILE i NP-hard? Juif our aner in a enence or o. Aner: Ye. Thi reducion ho ha SUPERTILE i a lea a hard a SAT, hich i NP-complee. (d) Conider he folloing arian problem, ORDEREDTILE: Inpu: A paern P[1..n], ile 1,,..., m CS 170, Fall 014, MT Soln 10

11 Oupu: A a o ile he alka uing a ube of he ile, in he proided order, or NO if here no a o do i In hi arian, ou canno re-order he ile. For inance, if P i WBBBWWB and he ile are 1 = BBW, = B, = WB, 4 = WB, hen he oupu i NO ; hoeer, if he ile are 1 = WB, = B, = BBW, 4 = WB, hen he aner i e, 1 4. Rohi adior aked him o proe ha ORDEREDTILE i NP-complee. Rohi ha pen he pa fe da ring o proe i, bu ihou an ucce. He ondering heher he ju need o r harder or if i hopele. Baed on ha ou e learned from hi cla, hould ou encourage him o keep ring, or hould ou adie him o gie up? Eplain h, in enence. Aner: Gie up. There a polnomial-ime algorihm for ORDEREDTILE uing dnamic programming, o an proof ha ORDEREDTILE i NP-complee ould impl ha P = NP. Gien ho man oher reearcher hae ried, i no reaonable o ak Rohi o proe P = NP. Eplanaion: The dnamic programming algorihm: le f (i, j) be rue if here i a a o ile P[i..n] uing ile j,..., m. Then f (i, j) = f (i, j + 1) (P[i..i + len( j ) 1] = j f (i + len( j ), j + 1)), o e obain a Θ(nm) ime algorihm for ORDEREDTILE. CS 170, Fall 014, MT Soln 11

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov)

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov) Algorihm and Daa Srucure 2011/ Week Soluion (Tue 15h - Fri 18h No) 1. Queion: e are gien 11/16 / 15/20 8/13 0/ 1/ / 11/1 / / To queion: (a) Find a pair of ube X, Y V uch ha f(x, Y) = f(v X, Y). (b) Find

More information

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow.

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow. CSE 202: Deign and Analyi of Algorihm Winer 2013 Problem Se 3 Inrucor: Kamalika Chaudhuri Due on: Tue. Feb 26, 2013 Inrucion For your proof, you may ue any lower bound, algorihm or daa rucure from he ex

More information

Algorithmic Discrete Mathematics 6. Exercise Sheet

Algorithmic Discrete Mathematics 6. Exercise Sheet Algorihmic Dicree Mahemaic. Exercie Shee Deparmen of Mahemaic SS 0 PD Dr. Ulf Lorenz 7. and 8. Juni 0 Dipl.-Mah. David Meffer Verion of June, 0 Groupwork Exercie G (Heap-Sor) Ue Heap-Sor wih a min-heap

More information

Main Reference: Sections in CLRS.

Main Reference: Sections in CLRS. Maximum Flow Reied 09/09/200 Main Reference: Secion 26.-26. in CLRS. Inroducion Definiion Muli-Source Muli-Sink The Ford-Fulkeron Mehod Reidual Nework Augmening Pah The Max-Flow Min-Cu Theorem The Edmond-Karp

More information

Network Flows: Introduction & Maximum Flow

Network Flows: Introduction & Maximum Flow CSC 373 - lgorihm Deign, nalyi, and Complexiy Summer 2016 Lalla Mouaadid Nework Flow: Inroducion & Maximum Flow We now urn our aenion o anoher powerful algorihmic echnique: Local Search. In a local earch

More information

Randomized Perfect Bipartite Matching

Randomized Perfect Bipartite Matching Inenive Algorihm Lecure 24 Randomized Perfec Biparie Maching Lecurer: Daniel A. Spielman April 9, 208 24. Inroducion We explain a randomized algorihm by Ahih Goel, Michael Kapralov and Sanjeev Khanna for

More information

CS 170 Algorithms Fall 2014 David Wagner MT2

CS 170 Algorithms Fall 2014 David Wagner MT2 CS 170 Algorithms Fall 2014 David Wagner MT2 PRINT your name:, (last) SIGN your name: (first) Your Student ID number: Your Unix account login: cs170- The room you are sitting in right now: Name of the

More information

The Residual Graph. 12 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

The Residual Graph. 12 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm Augmening Pah Algorihm Greedy-algorihm: ar wih f (e) = everywhere find an - pah wih f (e) < c(e) on every edge augmen flow along he pah repea a long a poible The Reidual Graph From he graph G = (V, E,

More information

The Residual Graph. 11 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

The Residual Graph. 11 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm Augmening Pah Algorihm Greedy-algorihm: ar wih f (e) = everywhere find an - pah wih f (e) < c(e) on every edge augmen flow along he pah repea a long a poible The Reidual Graph From he graph G = (V, E,

More information

CS4445/9544 Analysis of Algorithms II Solution for Assignment 1

CS4445/9544 Analysis of Algorithms II Solution for Assignment 1 Conider he following flow nework CS444/944 Analyi of Algorihm II Soluion for Aignmen (0 mark) In he following nework a minimum cu ha capaciy 0 Eiher prove ha hi aemen i rue, or how ha i i fale Uing he

More information

Network Flow. Data Structures and Algorithms Andrei Bulatov

Network Flow. Data Structures and Algorithms Andrei Bulatov Nework Flow Daa Srucure and Algorihm Andrei Bulao Algorihm Nework Flow 24-2 Flow Nework Think of a graph a yem of pipe We ue hi yem o pump waer from he ource o ink Eery pipe/edge ha limied capaciy Flow

More information

Introduction to Congestion Games

Introduction to Congestion Games Algorihmic Game Theory, Summer 2017 Inroducion o Congeion Game Lecure 1 (5 page) Inrucor: Thoma Keelheim In hi lecure, we ge o know congeion game, which will be our running example for many concep in game

More information

1 Motivation and Basic Definitions

1 Motivation and Basic Definitions CSCE : Deign and Analyi of Algorihm Noe on Max Flow Fall 20 (Baed on he preenaion in Chaper 26 of Inroducion o Algorihm, 3rd Ed. by Cormen, Leieron, Rive and Sein.) Moivaion and Baic Definiion Conider

More information

Flow networks. Flow Networks. A flow on a network. Flow networks. The maximum-flow problem. Introduction to Algorithms, Lecture 22 December 5, 2001

Flow networks. Flow Networks. A flow on a network. Flow networks. The maximum-flow problem. Introduction to Algorithms, Lecture 22 December 5, 2001 CS 545 Flow Nework lon Efra Slide courey of Charle Leieron wih mall change by Carola Wenk Flow nework Definiion. flow nework i a direced graph G = (V, E) wih wo diinguihed verice: a ource and a ink. Each

More information

Network Flow Applications

Network Flow Applications Hopial problem Neork Flo Applicaion Injured people: n Hopial: k Each peron need o be brough o a hopial no more han 30 minue aay Each hopial rea no more han n/k" people Gien n, k, and informaion abou people

More information

CSE 521: Design & Analysis of Algorithms I

CSE 521: Design & Analysis of Algorithms I CSE 52: Deign & Analyi of Algorihm I Nework Flow Paul Beame Biparie Maching Given: A biparie graph G=(V,E) M E i a maching in G iff no wo edge in M hare a verex Goal: Find a maching M in G of maximum poible

More information

Graphs III - Network Flow

Graphs III - Network Flow Graph III - Nework Flow Flow nework eup graph G=(V,E) edge capaciy w(u,v) 0 - if edge doe no exi, hen w(u,v)=0 pecial verice: ource verex ; ink verex - no edge ino and no edge ou of Aume every verex v

More information

Maximum Flow 5/6/17 21:08. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015

Maximum Flow 5/6/17 21:08. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 Maximm Flo 5/6/17 21:08 Preenaion for e ih he exbook, Algorihm Deign and Applicaion, by M. T. Goodrich and R. Tamaia, Wiley, 2015 Maximm Flo χ 4/6 4/7 1/9 2015 Goodrich and Tamaia Maximm Flo 1 Flo Neork

More information

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t)

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t) /0/ dmin lunch oday rading MX LOW PPLIION 0, pring avid Kauchak low graph/nework low nework direced, weighed graph (V, ) poiive edge weigh indicaing he capaciy (generally, aume ineger) conain a ingle ource

More information

Max Flow, Min Cut COS 521. Kevin Wayne Fall Soviet Rail Network, Cuts. Minimum Cut Problem. Flow network.

Max Flow, Min Cut COS 521. Kevin Wayne Fall Soviet Rail Network, Cuts. Minimum Cut Problem. Flow network. Sovie Rail Nework, Max Flow, Min u OS Kevin Wayne Fall Reference: On he hiory of he ranporaion and maximum flow problem. lexander Schrijver in Mah Programming, :,. Minimum u Problem u Flow nework.! Digraph

More information

CS 473G Lecture 15: Max-Flow Algorithms and Applications Fall 2005

CS 473G Lecture 15: Max-Flow Algorithms and Applications Fall 2005 CS 473G Lecure 1: Max-Flow Algorihm and Applicaion Fall 200 1 Max-Flow Algorihm and Applicaion (November 1) 1.1 Recap Fix a direced graph G = (V, E) ha doe no conain boh an edge u v and i reveral v u,

More information

Today: Max Flow Proofs

Today: Max Flow Proofs Today: Max Flow Proof COSC 58, Algorihm March 4, 04 Many of hee lide are adaped from everal online ource Reading Aignmen Today cla: Chaper 6 Reading aignmen for nex cla: Chaper 7 (Amorized analyi) In-Cla

More information

Matching. Slides designed by Kevin Wayne.

Matching. Slides designed by Kevin Wayne. Maching Maching. Inpu: undireced graph G = (V, E). M E i a maching if each node appear in a mo edge in M. Max maching: find a max cardinaliy maching. Slide deigned by Kevin Wayne. Biparie Maching Biparie

More information

Soviet Rail Network, 1955

Soviet Rail Network, 1955 7.1 Nework Flow Sovie Rail Nework, 19 Reerence: On he hiory o he ranporaion and maximum low problem. lexander Schrijver in Mah Programming, 91: 3, 00. (See Exernal Link ) Maximum Flow and Minimum Cu Max

More information

Greedy. I Divide and Conquer. I Dynamic Programming. I Network Flows. Network Flow. I Previous topics: design techniques

Greedy. I Divide and Conquer. I Dynamic Programming. I Network Flows. Network Flow. I Previous topics: design techniques Algorihm Deign Technique CS : Nework Flow Dan Sheldon April, reedy Divide and Conquer Dynamic Programming Nework Flow Comparion Nework Flow Previou opic: deign echnique reedy Divide and Conquer Dynamic

More information

Math 2214 Solution Test 1 B Spring 2016

Math 2214 Solution Test 1 B Spring 2016 Mah 14 Soluion Te 1 B Spring 016 Problem 1: Ue eparaion of ariable o ole he Iniial alue DE Soluion (14p) e =, (0) = 0 d = e e d e d = o = ln e d uing u-du b leing u = e 1 e = + where C = for he iniial

More information

Maximum Flow and Minimum Cut

Maximum Flow and Minimum Cut // Sovie Rail Nework, Maximum Flow and Minimum Cu Max flow and min cu. Two very rich algorihmic problem. Cornerone problem in combinaorial opimizaion. Beauiful mahemaical dualiy. Nework Flow Flow nework.

More information

CSC 364S Notes University of Toronto, Spring, The networks we will consider are directed graphs, where each edge has associated with it

CSC 364S Notes University of Toronto, Spring, The networks we will consider are directed graphs, where each edge has associated with it CSC 36S Noe Univeriy of Torono, Spring, 2003 Flow Algorihm The nework we will conider are direced graph, where each edge ha aociaed wih i a nonnegaive capaciy. The inuiion i ha if edge (u; v) ha capaciy

More information

Soviet Rail Network, 1955

Soviet Rail Network, 1955 Sovie Rail Nework, 1 Reference: On he hiory of he ranporaion and maximum flow problem. Alexander Schrijver in Mah Programming, 1: 3,. Maximum Flow and Minimum Cu Max flow and min cu. Two very rich algorihmic

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorihm Deign and Analyi LECTURE 0 Nework Flow Applicaion Biparie maching Edge-dijoin pah Adam Smih 0//0 A. Smih; baed on lide by E. Demaine, C. Leieron, S. Rakhodnikova, K. Wayne La ime: Ford-Fulkeron

More information

18 Extensions of Maximum Flow

18 Extensions of Maximum Flow Who are you?" aid Lunkwill, riing angrily from hi ea. Wha do you wan?" I am Majikhie!" announced he older one. And I demand ha I am Vroomfondel!" houed he younger one. Majikhie urned on Vroomfondel. I

More information

! Abstraction for material flowing through the edges. ! G = (V, E) = directed graph, no parallel edges.

! Abstraction for material flowing through the edges. ! G = (V, E) = directed graph, no parallel edges. Sovie Rail Nework, haper Nework Flow Slide by Kevin Wayne. opyrigh Pearon-ddion Weley. ll righ reerved. Reference: On he hiory of he ranporaion and maximum flow problem. lexander Schrijver in Mah Programming,

More information

16 Max-Flow Algorithms and Applications

16 Max-Flow Algorithms and Applications Algorihm A proce canno be underood by opping i. Underanding mu move wih he flow of he proce, mu join i and flow wih i. The Fir Law of Mena, in Frank Herber Dune (196) There a difference beween knowing

More information

EECE 301 Signals & Systems Prof. Mark Fowler

EECE 301 Signals & Systems Prof. Mark Fowler EECE 31 Signal & Syem Prof. Mark Fowler Noe Se #27 C-T Syem: Laplace Tranform Power Tool for yem analyi Reading Aignmen: Secion 6.1 6.3 of Kamen and Heck 1/18 Coure Flow Diagram The arrow here how concepual

More information

Warm Up. Correct order: s,u,v,y,x,w,t

Warm Up. Correct order: s,u,v,y,x,w,t Warm Up Rn Breadh Fir Search on hi graph aring from. Wha order are erice placed on he qee? When proceing a erex iner neighbor in alphabeical order. In a direced graph, BFS only follow an edge in he direcion

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorihm Deign and Analyi LECTURES 17 Nework Flow Dualiy of Max Flow and Min Cu Algorihm: Ford-Fulkeron Capaciy Scaling Sofya Rakhodnikova S. Rakhodnikova; baed on lide by E. Demaine, C. Leieron, A. Smih,

More information

6.302 Feedback Systems Recitation : Phase-locked Loops Prof. Joel L. Dawson

6.302 Feedback Systems Recitation : Phase-locked Loops Prof. Joel L. Dawson 6.32 Feedback Syem Phae-locked loop are a foundaional building block for analog circui deign, paricularly for communicaion circui. They provide a good example yem for hi cla becaue hey are an excellen

More information

Dynamic Programming 11/8/2009. Weighted Interval Scheduling. Weighted Interval Scheduling. Unweighted Interval Scheduling: Review

Dynamic Programming 11/8/2009. Weighted Interval Scheduling. Weighted Interval Scheduling. Unweighted Interval Scheduling: Review //9 Algorihms Dynamic Programming - Weighed Ineral Scheduling Dynamic Programming Weighed ineral scheduling problem. Insance A se of n jobs. Job j sars a s j, finishes a f j, and has weigh or alue j. Two

More information

Chapter 3 Kinematics in Two Dimensions

Chapter 3 Kinematics in Two Dimensions Chaper 3 KINEMATICS IN TWO DIMENSIONS PREVIEW Two-dimensional moion includes objecs which are moing in wo direcions a he same ime, such as a projecile, which has boh horizonal and erical moion. These wo

More information

Network Flows UPCOPENCOURSEWARE number 34414

Network Flows UPCOPENCOURSEWARE number 34414 Nework Flow UPCOPENCOURSEWARE number Topic : F.-Javier Heredia Thi work i licened under he Creaive Common Aribuion- NonCommercial-NoDeriv. Unpored Licene. To view a copy of hi licene, vii hp://creaivecommon.org/licene/by-nc-nd/./

More information

CS261: A Second Course in Algorithms Lecture #1: Course Goals and Introduction to Maximum Flow

CS261: A Second Course in Algorithms Lecture #1: Course Goals and Introduction to Maximum Flow CS61: A Second Coure in Algorihm Lecure #1: Coure Goal and Inroducion o Maximum Flo Tim Roughgarden January 5, 016 1 Coure Goal CS61 ha o major coure goal, and he coure pli roughly in half along hee line.

More information

Please Complete Course Survey. CMPSCI 311: Introduction to Algorithms. Approximation Algorithms. Coping With NP-Completeness. Greedy Vertex Cover

Please Complete Course Survey. CMPSCI 311: Introduction to Algorithms. Approximation Algorithms. Coping With NP-Completeness. Greedy Vertex Cover Pleae Complee Coure Survey CMPSCI : Inroducion o Algorihm Dealing wih NP-Compleene Dan Sheldon hp: //owl.oi.uma.edu/parner/coureevalsurvey/uma/ Univeriy of Maachue Slide Adaped from Kevin Wayne La Compiled:

More information

u(t) Figure 1. Open loop control system

u(t) Figure 1. Open loop control system Open loop conrol v cloed loop feedbac conrol The nex wo figure preen he rucure of open loop and feedbac conrol yem Figure how an open loop conrol yem whoe funcion i o caue he oupu y o follow he reference

More information

6/3/2009. CS 244 Algorithm Design Instructor: t Artur Czumaj. Lecture 8 Network flows. Maximum Flow and Minimum Cut. Minimum Cut Problem.

6/3/2009. CS 244 Algorithm Design Instructor: t Artur Czumaj. Lecture 8 Network flows. Maximum Flow and Minimum Cut. Minimum Cut Problem. Maximum Flow and Minimum Cu CS lgorihm Deign Inrucor: rur Czumaj Lecure Nework Max and min cu. Two very rich algorihmic problem. Cornerone problem in combinaorial opimizaion. Beauiful mahemaical dualiy.

More information

PHYSICS 151 Notes for Online Lecture #4

PHYSICS 151 Notes for Online Lecture #4 PHYSICS 5 Noe for Online Lecure #4 Acceleraion The ga pedal in a car i alo called an acceleraor becaue preing i allow you o change your elociy. Acceleraion i how fa he elociy change. So if you ar fro re

More information

Average Case Lower Bounds for Monotone Switching Networks

Average Case Lower Bounds for Monotone Switching Networks Average Cae Lower Bound for Monoone Swiching Nework Yuval Filmu, Toniann Piai, Rober Robere, Sephen Cook Deparmen of Compuer Science Univeriy of Torono Monoone Compuaion (Refreher) Monoone circui were

More information

2. VECTORS. R Vectors are denoted by bold-face characters such as R, V, etc. The magnitude of a vector, such as R, is denoted as R, R, V

2. VECTORS. R Vectors are denoted by bold-face characters such as R, V, etc. The magnitude of a vector, such as R, is denoted as R, R, V ME 352 VETS 2. VETS Vecor algebra form he mahemaical foundaion for kinemaic and dnamic. Geomer of moion i a he hear of boh he kinemaic and dnamic of mechanical em. Vecor anali i he imehonored ool for decribing

More information

Reminder: Flow Networks

Reminder: Flow Networks 0/0/204 Ma/CS 6a Cla 4: Variou (Flow) Execie Reminder: Flow Nework A flow nework i a digraph G = V, E, ogeher wih a ource verex V, a ink verex V, and a capaciy funcion c: E N. Capaciy Source 7 a b c d

More information

MAXIMUM FLOW. introduction Ford-Fulkerson algorithm maxflow-mincut theorem

MAXIMUM FLOW. introduction Ford-Fulkerson algorithm maxflow-mincut theorem MAXIMUM FLOW inroducion Ford-Fulkeron algorihm maxflow-mincu heorem Mincu problem Inpu. An edge-weighed digraph, ource verex, and arge verex. each edge ha a poiive capaciy capaciy 9 10 4 15 15 10 5 8 10

More information

CONTROL SYSTEMS. Chapter 10 : State Space Response

CONTROL SYSTEMS. Chapter 10 : State Space Response CONTROL SYSTEMS Chaper : Sae Space Repone GATE Objecive & Numerical Type Soluion Queion 5 [GATE EE 99 IIT-Bombay : Mark] Conider a econd order yem whoe ae pace repreenaion i of he form A Bu. If () (),

More information

Data Fusion using Kalman Filter. Ioannis Rekleitis

Data Fusion using Kalman Filter. Ioannis Rekleitis Daa Fusion using Kalman Filer Ioannis Rekleiis Eample of a arameerized Baesian Filer: Kalman Filer Kalman filers (KF represen poserior belief b a Gaussian (normal disribuion A -d Gaussian disribuion is

More information

Chapter 7: Solving Trig Equations

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

More information

Maximum Flow in Planar Graphs

Maximum Flow in Planar Graphs Maximum Flow in Planar Graph Planar Graph and i Dual Dualiy i defined for direced planar graph a well Minimum - cu in undireced planar graph An - cu (undireced graph) An - cu The dual o he cu Cu/Cycle

More information

Rectilinear Kinematics

Rectilinear Kinematics Recilinear Kinemaic Coninuou Moion Sir Iaac Newon Leonard Euler Oeriew Kinemaic Coninuou Moion Erraic Moion Michael Schumacher. 7-ime Formula 1 World Champion Kinemaic The objecie of kinemaic i o characerize

More information

Flow Networks. Ma/CS 6a. Class 14: Flow Exercises

Flow Networks. Ma/CS 6a. Class 14: Flow Exercises 0/0/206 Ma/CS 6a Cla 4: Flow Exercie Flow Nework A flow nework i a digraph G = V, E, ogeher wih a ource verex V, a ink verex V, and a capaciy funcion c: E N. Capaciy Source 7 a b c d e Sink 0/0/206 Flow

More information

Linear Algebra Primer

Linear Algebra Primer Linear Algebra rimer And a video dicuion of linear algebra from EE263 i here (lecure 3 and 4): hp://ee.anford.edu/coure/ee263 lide from Sanford CS3 Ouline Vecor and marice Baic Mari Operaion Deerminan,

More information

Bipartite Matching. Matching. Bipartite Matching. Maxflow Formulation

Bipartite Matching. Matching. Bipartite Matching. Maxflow Formulation Mching Inpu: undireced grph G = (V, E). Biprie Mching Inpu: undireced, biprie grph G = (, E).. Mching Ern Myr, Hrld äcke Biprie Mching Inpu: undireced, biprie grph G = (, E). Mflow Formulion Inpu: undireced,

More information

FLAT CYCLOTOMIC POLYNOMIALS OF ORDER FOUR AND HIGHER

FLAT CYCLOTOMIC POLYNOMIALS OF ORDER FOUR AND HIGHER #A30 INTEGERS 10 (010), 357-363 FLAT CYCLOTOMIC POLYNOMIALS OF ORDER FOUR AND HIGHER Nahan Kaplan Deparmen of Mahemaic, Harvard Univeriy, Cambridge, MA nkaplan@mah.harvard.edu Received: 7/15/09, Revied:

More information

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities: Mah 4 Eam Review Problems Problem. Calculae he 3rd Taylor polynomial for arcsin a =. Soluion. Le f() = arcsin. For his problem, we use he formula f() + f () + f ()! + f () 3! for he 3rd Taylor polynomial

More information

Physics Notes - Ch. 2 Motion in One Dimension

Physics Notes - Ch. 2 Motion in One Dimension Physics Noes - Ch. Moion in One Dimension I. The naure o physical quaniies: scalars and ecors A. Scalar quaniy ha describes only magniude (how much), NOT including direcion; e. mass, emperaure, ime, olume,

More information

Maximum Flow. Contents. Max Flow Network. Maximum Flow and Minimum Cut

Maximum Flow. Contents. Max Flow Network. Maximum Flow and Minimum Cut Conen Maximum Flow Conen. Maximum low problem. Minimum cu problem. Max-low min-cu heorem. Augmening pah algorihm. Capaciy-caling. Shore augmening pah. Princeon Univeriy COS Theory o Algorihm Spring Kevin

More information

Chapter 7: Inverse-Response Systems

Chapter 7: Inverse-Response Systems Chaper 7: Invere-Repone Syem Normal Syem Invere-Repone Syem Baic Sar ou in he wrong direcion End up in he original eady-ae gain value Two or more yem wih differen magniude and cale in parallel Main yem

More information

Discussion Session 2 Constant Acceleration/Relative Motion Week 03

Discussion Session 2 Constant Acceleration/Relative Motion Week 03 PHYS 100 Dicuion Seion Conan Acceleraion/Relaive Moion Week 03 The Plan Today you will work wih your group explore he idea of reference frame (i.e. relaive moion) and moion wih conan acceleraion. You ll

More information

4/12/12. Applications of the Maxflow Problem 7.5 Bipartite Matching. Bipartite Matching. Bipartite Matching. Bipartite matching: the flow network

4/12/12. Applications of the Maxflow Problem 7.5 Bipartite Matching. Bipartite Matching. Bipartite Matching. Bipartite matching: the flow network // Applicaion of he Maxflow Problem. Biparie Maching Biparie Maching Biparie maching. Inpu: undireced, biparie graph = (, E). M E i a maching if each node appear in a mo one edge in M. Max maching: find

More information

CSE 421 Introduction to Algorithms Winter The Network Flow Problem

CSE 421 Introduction to Algorithms Winter The Network Flow Problem CSE 42 Inroducion o Algorihm Winer 202 The Nework Flow Problem 2 The Nework Flow Problem 5 a 4 3 x 3 7 6 b 4 y 4 7 6 c 5 z How much uff can flow from o? 3 Sovie Rail Nework, 955 Reference: On he hiory

More information

Phys 221 Fall Chapter 2. Motion in One Dimension. 2014, 2005 A. Dzyubenko Brooks/Cole

Phys 221 Fall Chapter 2. Motion in One Dimension. 2014, 2005 A. Dzyubenko Brooks/Cole Phys 221 Fall 2014 Chaper 2 Moion in One Dimension 2014, 2005 A. Dzyubenko 2004 Brooks/Cole 1 Kinemaics Kinemaics, a par of classical mechanics: Describes moion in erms of space and ime Ignores he agen

More information

Physics 240: Worksheet 16 Name

Physics 240: Worksheet 16 Name Phyic 4: Workhee 16 Nae Non-unifor circular oion Each of hee proble involve non-unifor circular oion wih a conan α. (1) Obain each of he equaion of oion for non-unifor circular oion under a conan acceleraion,

More information

Buckling of a structure means failure due to excessive displacements (loss of structural stiffness), and/or

Buckling of a structure means failure due to excessive displacements (loss of structural stiffness), and/or Buckling Buckling of a rucure mean failure due o exceive diplacemen (lo of rucural iffne), and/or lo of abiliy of an equilibrium configuraion of he rucure The rule of humb i ha buckling i conidered a mode

More information

Wrap up: Weighted, directed graph shortest path Minimum Spanning Tree. Feb 25, 2019 CSCI211 - Sprenkle

Wrap up: Weighted, directed graph shortest path Minimum Spanning Tree. Feb 25, 2019 CSCI211 - Sprenkle Objecive Wrap up: Weighed, direced graph hore pah Minimum Spanning Tree eb, 1 SI - Sprenkle 1 Review Wha are greedy algorihm? Wha i our emplae for olving hem? Review he la problem we were working on: Single-ource,

More information

PSAT/NMSQT PRACTICE ANSWER SHEET SECTION 3 EXAMPLES OF INCOMPLETE MARKS COMPLETE MARK B C D B C D B C D B C D B C D 13 A B C D B C D 11 A B C D B C D

PSAT/NMSQT PRACTICE ANSWER SHEET SECTION 3 EXAMPLES OF INCOMPLETE MARKS COMPLETE MARK B C D B C D B C D B C D B C D 13 A B C D B C D 11 A B C D B C D PSTNMSQT PRCTICE NSWER SHEET COMPLETE MRK EXMPLES OF INCOMPLETE MRKS I i recommended a you ue a No pencil I i very imporan a you fill in e enire circle darkly and compleely If you cange your repone, erae

More information

5.2 GRAPHICAL VELOCITY ANALYSIS Polygon Method

5.2 GRAPHICAL VELOCITY ANALYSIS Polygon Method ME 352 GRHICL VELCITY NLYSIS 52 GRHICL VELCITY NLYSIS olygon Mehod Velociy analyi form he hear of kinemaic and dynamic of mechanical yem Velociy analyi i uually performed following a poiion analyi; ie,

More information

Maximum Flow 3/3 4/6 1/1 4/7 3/3. s 3/5 1/9 1/1 3/5 2/2. 1/18/2005 4:03 AM Maximum Flow 1

Maximum Flow 3/3 4/6 1/1 4/7 3/3. s 3/5 1/9 1/1 3/5 2/2. 1/18/2005 4:03 AM Maximum Flow 1 Maximm Flo χ 4/6 4/7 1/9 8/2005 4:03 AM Maximm Flo 1 Oline and Reading Flo neork Flo ( 8.1.1) C ( 8.1.2) Maximm flo Agmening pah ( 8.2.1) Maximm flo and minimm c ( 8.2.1) Ford-Flkeron algorihm ( 8.2.2-8.2.3)

More information

Kinematics of Wheeled Robots

Kinematics of Wheeled Robots 1 Kinemaics of Wheeled Robos hps://www.ouube.com/wach?=gis41ujlbu 2 Wheeled Mobile Robos robo can hae one or more wheels ha can proide seering direcional conrol power eer a force agains he ground an ideal

More information

Sample Final Exam (finals03) Covering Chapters 1-9 of Fundamentals of Signals & Systems

Sample Final Exam (finals03) Covering Chapters 1-9 of Fundamentals of Signals & Systems Sample Final Exam Covering Chaper 9 (final04) Sample Final Exam (final03) Covering Chaper 9 of Fundamenal of Signal & Syem Problem (0 mar) Conider he caual opamp circui iniially a re depiced below. I LI

More information

Performance Comparison of LCMV-based Space-time 2D Array and Ambiguity Problem

Performance Comparison of LCMV-based Space-time 2D Array and Ambiguity Problem Inernaional journal of cience Commerce and umaniie Volume No 2 No 3 April 204 Performance Comparion of LCMV-baed pace-ime 2D Arra and Ambigui Problem 2 o uan Chang and Jin hinghia Deparmen of Communicaion

More information

CMPS 6610/4610 Fall Flow Networks. Carola Wenk Slides adapted from slides by Charles Leiserson

CMPS 6610/4610 Fall Flow Networks. Carola Wenk Slides adapted from slides by Charles Leiserson CMP 6610/4610 Fall 2016 Flow Nework Carola Wenk lide adaped rom lide by Charle Leieron Max low and min c Fndamenal problem in combinaorial opimizaion Daliy beween max low and min c Many applicaion: Biparie

More information

, the. L and the L. x x. max. i n. It is easy to show that these two norms satisfy the following relation: x x n x = (17.3) max

, the. L and the L. x x. max. i n. It is easy to show that these two norms satisfy the following relation: x x n x = (17.3) max ecure 8 7. Sabiliy Analyi For an n dimenional vecor R n, he and he vecor norm are defined a: = T = i n i (7.) I i eay o how ha hee wo norm aify he following relaion: n (7.) If a vecor i ime-dependen, hen

More information

Flow networks, flow, maximum flow. Some definitions. Edmonton. Saskatoon Winnipeg. Vancouver Regina. Calgary. 12/12 a.

Flow networks, flow, maximum flow. Some definitions. Edmonton. Saskatoon Winnipeg. Vancouver Regina. Calgary. 12/12 a. Flow nework, flow, maximum flow Can inerpre direced graph a flow nework. Maerial coure hrough ome yem from ome ource o ome ink. Source produce maerial a ome eady rae, ink conume a ame rae. Example: waer

More information

INSTANTANEOUS VELOCITY

INSTANTANEOUS VELOCITY INSTANTANEOUS VELOCITY I claim ha ha if acceleraion is consan, hen he elociy is a linear funcion of ime and he posiion a quadraic funcion of ime. We wan o inesigae hose claims, and a he same ime, work

More information

18.03SC Unit 3 Practice Exam and Solutions

18.03SC Unit 3 Practice Exam and Solutions Sudy Guide on Sep, Dela, Convoluion, Laplace You can hink of he ep funcion u() a any nice mooh funcion which i for < a and for > a, where a i a poiive number which i much maller han any ime cale we care

More information

23 Maximum Flows and Minimum Cuts

23 Maximum Flows and Minimum Cuts A proce canno be underood by opping i. Underanding mu move wih he flow of he proce, mu join i and flow wih i. The Fir Law of Mena, in Frank Herber Dune (196) Conrary o expecaion, flow uually happen no

More information

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates Biol. 356 Lab 8. Moraliy, Recruimen, and Migraion Raes (modified from Cox, 00, General Ecology Lab Manual, McGraw Hill) Las week we esimaed populaion size hrough several mehods. One assumpion of all hese

More information

EF 151 Exam #2 - Spring, 2014 Page 1 of 6

EF 151 Exam #2 - Spring, 2014 Page 1 of 6 EF 5 Exam # - Spring, 04 Page of 6 Name: Secion: Inrucion: Pu your name and ecion on he exam. Do no open he e unil you are old o do o. Wrie your final anwer in he box proided If you finih wih le han 5

More information

6.8 Laplace Transform: General Formulas

6.8 Laplace Transform: General Formulas 48 HAP. 6 Laplace Tranform 6.8 Laplace Tranform: General Formula Formula Name, ommen Sec. F() l{ f ()} e f () d f () l {F()} Definiion of Tranform Invere Tranform 6. l{af () bg()} al{f ()} bl{g()} Lineariy

More information

Sections 2.2 & 2.3 Limit of a Function and Limit Laws

Sections 2.2 & 2.3 Limit of a Function and Limit Laws Mah 80 www.imeodare.com Secions. &. Limi of a Funcion and Limi Laws In secion. we saw how is arise when we wan o find he angen o a curve or he velociy of an objec. Now we urn our aenion o is in general

More information

Basic Tools CMSC 641. Running Time. Problem. Problem. Algorithmic Design Paradigms. lg (n!) (lg n)! (lg n) lgn n.2

Basic Tools CMSC 641. Running Time. Problem. Problem. Algorithmic Design Paradigms. lg (n!) (lg n)! (lg n) lgn n.2 Baic Tool CMSC April, Review Aympoic Noaion Order of Growh Recurrence relaion Daa Srucure Li, Heap, Graph, Tree, Balanced Tree, Hah Table Advanced daa rucure: Binomial Heap, Fibonacci Heap Soring Mehod

More information

26.1 Flow networks. f (u,v) = 0.

26.1 Flow networks. f (u,v) = 0. 26 Maimum Flow Ju a we can model a road map a a direced graph in order o find he hore pah from one poin o anoher, we can alo inerpre a direced graph a a flow nework and ue i o anwer queion abou maerial

More information

UT Austin, ECE Department VLSI Design 5. CMOS Gate Characteristics

UT Austin, ECE Department VLSI Design 5. CMOS Gate Characteristics La moule: CMOS Tranior heory Thi moule: DC epone Logic Level an Noie Margin Tranien epone Delay Eimaion Tranior ehavior 1) If he wih of a ranior increae, he curren will ) If he lengh of a ranior increae,

More information

1 Review of Zero-Sum Games

1 Review of Zero-Sum Games COS 5: heoreical Machine Learning Lecurer: Rob Schapire Lecure #23 Scribe: Eugene Brevdo April 30, 2008 Review of Zero-Sum Games Las ime we inroduced a mahemaical model for wo player zero-sum games. Any

More information

TP B.2 Rolling resistance, spin resistance, and "ball turn"

TP B.2 Rolling resistance, spin resistance, and ball turn echnical proof TP B. olling reiance, pin reiance, and "ball urn" upporing: The Illuraed Principle of Pool and Billiard hp://billiard.coloae.edu by Daid G. Alciaore, PhD, PE ("Dr. Dae") echnical proof originally

More information

SMT 2014 Calculus Test Solutions February 15, 2014 = 3 5 = 15.

SMT 2014 Calculus Test Solutions February 15, 2014 = 3 5 = 15. SMT Calculus Tes Soluions February 5,. Le f() = and le g() =. Compue f ()g (). Answer: 5 Soluion: We noe ha f () = and g () = 6. Then f ()g () =. Plugging in = we ge f ()g () = 6 = 3 5 = 5.. There is a

More information

Introduction to SLE Lecture Notes

Introduction to SLE Lecture Notes Inroducion o SLE Lecure Noe May 13, 16 - The goal of hi ecion i o find a ufficien condiion of λ for he hull K o be generaed by a imple cure. I urn ou if λ 1 < 4 hen K i generaed by a imple curve. We will

More information

Selfish Routing. Tim Roughgarden Cornell University. Includes joint work with Éva Tardos

Selfish Routing. Tim Roughgarden Cornell University. Includes joint work with Éva Tardos Selfih Rouing Tim Roughgarden Cornell Univeriy Include join work wih Éva Tardo 1 Which roue would you chooe? Example: one uni of raffic (e.g., car) wan o go from o delay = 1 hour (no congeion effec) long

More information

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

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

More information

Exponential Sawtooth

Exponential Sawtooth ECPE 36 HOMEWORK 3: PROPERTIES OF THE FOURIER TRANSFORM SOLUTION. Exponenial Sawooh: The eaie way o do hi problem i o look a he Fourier ranform of a ingle exponenial funcion, () = exp( )u(). From he able

More information

Mon Apr 2: Laplace transform and initial value problems like we studied in Chapter 5

Mon Apr 2: Laplace transform and initial value problems like we studied in Chapter 5 Mah 225-4 Week 2 April 2-6 coninue.-.3; alo cover par of.4-.5, EP 7.6 Mon Apr 2:.-.3 Laplace ranform and iniial value problem like we udied in Chaper 5 Announcemen: Warm-up Exercie: Recall, The Laplace

More information

Unit 1 Test Review Physics Basics, Movement, and Vectors Chapters 1-3

Unit 1 Test Review Physics Basics, Movement, and Vectors Chapters 1-3 A.P. Physics B Uni 1 Tes Reiew Physics Basics, Moemen, and Vecors Chapers 1-3 * In sudying for your es, make sure o sudy his reiew shee along wih your quizzes and homework assignmens. Muliple Choice Reiew:

More information

Practice Problems: Improper Integrals

Practice Problems: Improper Integrals Pracice Problem: Improper Inegral Wrien by Vicoria Kala vkala@mah.cb.ed December 6, Solion o he pracice problem poed on November 3. For each of he folloing problem: a Eplain hy he inegral are improper.

More information

What is maximum Likelihood? History Features of ML method Tools used Advantages Disadvantages Evolutionary models

What is maximum Likelihood? History Features of ML method Tools used Advantages Disadvantages Evolutionary models Wha i maximum Likelihood? Hiory Feaure of ML mehod Tool ued Advanage Diadvanage Evoluionary model Maximum likelihood mehod creae all he poible ree conaining he e of organim conidered, and hen ue he aiic

More information

Chapter 12: Velocity, acceleration, and forces

Chapter 12: Velocity, acceleration, and forces To Feel a Force Chaper Spring, Chaper : A. Saes of moion For moion on or near he surface of he earh, i is naural o measure moion wih respec o objecs fixed o he earh. The 4 hr. roaion of he earh has a measurable

More information