Graph theory Route problems

Size: px
Start display at page:

Download "Graph theory Route problems"

Transcription

1 Bhelors thesis Grph theory Route prolems Author: Aolphe Nikwigize Dte: Sujet: Mthemtis Level: First level (Bhelor) Course oe: MAE

2 Astrt In this thesis we will review some route prolems whih re prt of grph theory prolems. In more etils it will ontin the si of grph theory, some well-known lgorithms relte to route prolems, n ifferent route prolems solve y these lgorithms.

3 Contents. INTRODUCTION...4. BASIC GRAPH THEORY...5. DEFINITION AND GRAPH REPRESENTATION...5. MORE DEFINITIONS IMPORTANT THEOREM IN THIS ARTICLE MINIMUM SPANNING TREE RELATED ALGORITHMS TO MINIMUM SPANNING TREE MINIMUM SPANNING TREE APPLICATIONS SHORTEST PATH PROBLEM DIJKSTRA S ALGORITHM EXAMPLE CHINESE POSTMAN PROBLEM FLEURY S ALGORITHM EXAMPLE OF CHINESE POSTMAN PROBLEM THE TRAVELLING SALESMAN PROBLEM (TSP) HARDNESS OF HAMILTON CIRCUIT THE CLOSEST INSERTION ALGORITHM PROGRESS ON TSP METHOD SWEDEN TOUR SUMMARY REFERENCES...4

4 . Introution People in Königserg ity (now Kliningr, Russi) trie to evise route roun the ity whih woul ross eh of seven riges just one. Sine their ttempts h lwys file, mny of them elieve tht the tsk ws impossile, ut it ws not until 736 when one of the leing mthemtiins of the time, Leonhr Euler, prove it. He wrote n rtile in whih he not only elt with this prtiulr prolem, ut lso gve generl metho for other prolems of the sme type. This prolem llowe fountion of grph theory. Sine then, it hs evelope with Euler n other mthemtiins n it s still ynmi prt of isrete mthemti. Grph theory hs surprising numer of pplitions: in physis, iology, hemistry, soil, ommere, n omputer siene. In this rtile I will tret the route prolems. First we tke look t some si of grph theory, n then we will isuss minimum spnning trees. Finlly we will el with shortest pth prolems n ifferent iruits in route prolem.

5 . Bsi grph theory. Definition n grph representtion Definition: A grph G = (V, E) mens pir (V, E) onsisting of finite non- empty set V of verties (lle lso points, noes, or just ots), n finite set E of eges, where some pir of verties is onnete y one or more eges. Exmple: Here we hve grph G with verties V = {,,,, e, f} n the eges E = {e, e, e 3, e 4, e 5, e 6, e 7, e 8, e 9, e 0, e, e } e e 8 f e 7 e e e9 e 0 e e 5 e e 3 e 4 e 6 A grph n e represente s igrm or s mtrix ut in this rtile it will e only igrm representtion. There re three ifferent kins of grphs: An unirete grph is grph in whih ny pths in the grph hve no speifi iretion. Exmple: The following grph is unirete. Let e enote G. A irete grph is grph whih ny pth in the grph hve speifi iretion. Exmple: The elow grph is irete n we nme it G 3.

6 A mixe grph is grph whih omines oth unirete n irete properties. Here oming n exmple of mixe grph G 4.. More efinitions Definition: Two verties (v, v ) re jent (neighours) if they re joine y the sme ege e n the ege e is si to e inient with the verties (v, v ). If we tke grph G s exmple the vertex in grph G is neighour of four verties (,,, f) n is only neighour of two verties (, ). Definition: The egree of vertex is the numer of eges tht re inient with this vertex. For exmple vertex in grph G hs egree four n hs egree three. Definition: A loop is n ege whih joins one vertex to itself. Exmple: in grph G we hve only one loop nmely the ege e. Definition: Prllel eges re two or more ifferent eges whih join the sme pir of verties. Exmple: In the Grph G only two pir eges re prllel: (e, e 3 ) n (e 5, e 6 ). Definition: A simple grph is grph whih ontins no loops n no prllel eges. Definition: A weighte grph is grph whih every ege in the grph is represente y numer lle its weight. Definition: A Pth (wlk) is sequene of eges. In grph G we hve mny ifferent pths ut we only gve two exmples: e e 0 e 5 e 7, e e 8 e 7 e 6 e 4. Definition: A iruit (yle or tour) is pth in whih the strt n en vertex is the sme. In grph G e e 8 e 7 e 6 e 4 e e is iruit. Definition: An Euler iruit is iruit whih ontins every ege of the given grph one n only one. Definition: A Hmilton iruit is iruit whih ll verties in grph our one n only one.

7 Definition: A omplete grph is simple unirete grph whih ll ifferent pir of its verties is joine y n ege. Definition: A tree is n unirete simple grph whih ontins no iruits. Exmple of tree: Definition: A onnete grph is grph in whih ny pir of verties in the grph n e oune y one or more eges. All previous exmple grphs re onnete. Definition: A rige ege in grph is n ege suh tht if we elete it then the grph woul not e onnete nymore. Exmple: ll eges for ny tree re riges. Definition: A su-grph of grph G = (V, E), is grph G = (V, E ) where V n E re suset of V n E respetively. For exmple the following grphs re su-grph of G..3 Importnt theorem in this rtile The Hnshking theorem: For ny grph G = (V, E): eg (v) = e where eg mens vertex egree. Proof: Let v n v e jent verties in grph join y n ege e, eg (v ) = eg (v ) = n eg (v ) + eg (v ) = e. This is not n exeption for v n v ut it works for every pir jent verties in the grph. This mens tht eg (v) = e. Euler theorem: A onnete grph G is Euler if n only if the egree of every vertex is even. Proof: Let G = (V, E) e grph with only even verties egree. Choose ny strt vertex v n tre out pth ritrrily suh tht every ege in grph must e hosen one n only one. Sine even-vertex egree onition ssures tht eh vertex rrive t n e left, the pth must e inevitle finish to v. So it is ler tht the iruit is Euler.

8 3. Minimum spnning tree Given n unirete onnete weighte grph G, minimum spnning tree of G is onnete tree G su-grph of G tht ontins ll the verties of G n where the sum of its weight is smll numer s possile. 3. Relte lgorithms to minimum spnning tree In this prt we tke look just two fmous lgorithms: Kruskl s lgorithm n Prim s lgorithm. These two lgorithms help to fin minimum spnning tree. We strt with Kruskl s lgorithm. Kruskl s lgorithm uils minimum spnning tree y ing smllest eges y sening of its weight. Metho: Selet the eges e i of G whih hve smllest weight mong the eges of G. e i oes not form loop n yle. A the other eges e j y sening of its weight. The eges e j must stisfy follow onitions: (i) Hve smllest weight (ii) Hve not lrey een hosen (iii) Do not form yle with the simple pth solution. Continue to other eges with the sme proeure. 3 If G hs n numer of verties, stop fter n- eges hve een hosen. Prim s lgorithm uils minimum spnning tree y one ege t the time. Metho:. Choose ny vertex v of the grph G n let v e the strt vertex.. Selet vertex v of G neighour with v suh tht v n v join y n ege with the smllest weight (If mny verties neighour hve eges with sme weight, selet just one t rnom). 3. First hoose verties of G neighour with verties whih form pth solution {v, v }, selet one vertex v 3 whih is lose s possile to the pth solution. The vertex v 3 hve not lrey een hosen in solution. A the other verties with the sme proeure. 4. If G hs n numer of verties, stop fter n- eges hve een hosen.

9 Exmple: Fin the minimum spnning tree for the following grph: e 6 Kruskl s lgorithm Prim s lgorithm. Choose eges with the smllest weight n these eges on t form yle. In given figure re n =. So E s = {, } e 5. A other eges with smllest weight whih re not E s in n not form yle. The ege form yle, we n not hoose it. So we selet only =. {,, } eome new tree solution. Choose ny strt point in figure, let e the strt point. V s = {}. We selet the nerest vertex to V s = {}, in grph the nerest vertex is. So {} eome our tree solution e e 6

10 3. A other eges with the sme proeure in point. We get e = 3 so E s = {,,, e } 4. We stop for the numer of eges is equl to 5 - = 4 (where 5 re totl numer of verties). So {,,, e} is tree solution tht we hve een looking for e e 3. We vertex with the sme proeure in point. Then we hve {, } like our new tree solution We follow the sme proeure n we get the following tree solution {,, } 5 e e 5. The nerest vertex to V s = {,, } is e n we hve V s = {,,, e}. Now the numer of eges is equl to 5 - = 4 (where 5 re totl numer of verties), we stop n we hve the following tree solution. 3 e

11 3. Minimum spnning tree pplitions A hef of Communition Compny wnts to instll his ompny in the Småln provine. The prolem is to onnet ll ities in the provine. They wish tht the istne of ities onnetion will e s short s possile, in orer to erese uget mteril. They nee to know lso how long istne etween the ities is in totlly in orer to uy neessry mterils. This prolem will e solve y grph theory. First we rw grph etween ll the ities. Then we pply speifi lgorithm to onnet ll ities in the provine. We hoose Kruskl s lgorithm n get the following solution.

12 An istne is equl to 34 km, Prolem solve.

13 4. Shortest pth prolem Short pth prolems onsist to etermine minimum weight pth etween two or more speifie verties. For exmple we use short pth prolems to fin shortest route etween two or more speifie ities. We tke look for one lgorithm whih reltes to shortest pth prolems. This fmous lgorithm is lle Dijkstr s lgorithm. 4. Dijkstr s lgorithm For ny positive weighte grph, Dijkstr s lgorithm llows us to fin shortest pth etween two or more speifie verties. This lgorithm works for unirete, irete, n mixe grphs. Metho: Let L e weight of shortest pth in solution from given strt vertex, M weight of ege etween the en vertex of L to its neighour verties in grph, n K = L + M.. Strt with n K () = 0, other verties in grph re unermine n we lel them.. Choose ll verties u neighour to n K (u) = L () + M (, u) n note their weight. Now vertex hs een visite. 3. Visit other verties of grph with the sme proeure in. If ny vertex hs or more K selet K with minimum weight. 4. If n- verties hve een visite stop (where n is numer of verties). 4. Exmple Use Dijkstr s lgorithm to fin the shortest pth from vertex to vertex i of the following grph. f 3 i 3 5 e g

14 We strt with L () = 0, other verties re unetermine n we lel. Verties e f g i v K (v ) 0 L () = 0. There re 4 verties neighor to :,,, n e. K () = L () + M (, ) = 0 + = K () = L () + M (, ) = 0 + = K () = L () + M (, ) = 0 + = K (e) = L () + M (, e) = = 3 So hs een visite. Verties e f g i (v ) K (v ) 0 3 Now we hve unvisite verties n with shortest pth L () = L () =. Now we will visit n : There re unvisite verties n f neighor to vertex. K () = L () +M (, ) = + = 3 K (f) = L () +M (, f) = + =. There is only one unvisite vertex e neighor to vertex. K (e) = L () +M (, e) = + = < 3, we erese 3 to. Verties n hve een visite. Verties e f g i (v ) K (v ) 0 We got 3 unvisite verties n e with shortest pth L () = L (e) = L (f ) = n will visit it. We strt with vertex, there re unvisite verties e n f neighor to vertex. K (e) = L () + M (, e) = + = 4 > we remin K (f) = L () + M (, f) = + = 3 > we remin Then we tke vertex e. There re unvisite verties f n g neighor to e. K (f) = L (e) + M (e, f) = + = 3 > we remin K (g) = L (e) + M (e, g) = + = 4 Finlly we visit vertex f. There unvisite verties g n i neighor to f. K (g) = L (f) + M (f, g) = + 5 = 7> 4 we remin 4 K (i) = L (f) + M (f, i) = + 3 = 5. Verties, e, n f hve een visite.

15 Verties (v ) e f g i K (v ) Now we hve left just one unvisite vertex g n L (g) = 4.There is only one unvisite vertex i neighor to vertex g. K (i) = L (g) + M (g, i) = 4 + = 6 > 5 we remin 5. Now we visite ll verties of grph n our pth solution is following: f 3 i 3 5 e g

16 5. Chinese postmn prolem In 96 Chinese mthemtiin Kun pulishe for ny given zone wy to turn one n only one ll street from given strt ple n ome k to this ple. It is ler tht Euler iruit is involve where the ities re verties n the streets re the eges. If ny given grph is not Euler, there is lwys possiility to uplite verties with o egree in orer to get n Euler grph. The terms uplite mens to prllel ege with the sme weight to ny given pir verties of grph. In orer to get short Euler iruit s possile we hve to fin miniml pth n uplite it. It is ler tht when we uplite we nee Dijkstr s lgorithm in orer to fin miniml pth. To fin n Euler iruit for ny given grph we my use fmous lgorithm whih is lle Fleury s lgorithm. Let just tke look for this lgorithm. 5. Fleury s lgorithm. Choose ny strt n en vertex v 0 of given Euler grph.. Choose mong verties neighour with v 0, selet one t rnom whih it is not rige. But if there is no hoie you hve to pik the rige. 3. Continue to eges with the sme proeure in n every ege hve to e hosen one n only one. 4. If ll eges of given grph hve een hosen stop. Exmple: for fining Euler iruit for following grph f 3 i 3 5 e g First we hek if this grph is Euler. We see tht the eges, f, e, n g hve o egree; oring to theorem the given grph is not n Euler grph. We hve to uplite these eges whih hve o egree. With help of Dijkstr s lgorithm, we uplite the ege (, f) n the (e, g) in orer to fin short iruit s possile. We get the following grph:

17 3 f 3 5 e g i Now it is time to hoose ny strt vertex. Let the vertex e strt n en vertex. With Fleury s lgorithm we fin the following Euler iruit: figefgeef. f e g i 5. Exmple of Chinese postmn prolem The hefs in Småln me eision to renovte ll streets whih onnet Småln ities. It is ler tht they nee to know from their offier how they will trvel roun ll streets one n k to offier. Here grph theory pplies to fin short iruit s possile. We tke previous exmple. The following ities hve o egree: Växjö, Lesseo, Torss, Mönsterås, Sävsjö, Vetln, Hultsfre, Vimmery, Eksjö, Nässjö, Vggery, n Gnosjö. We nee Dijkstr s lgorithm for uplite short pth s possile in orer to fin shortest iruit. I get the following result:

18 Tke Jönköping s strt en ity of our serhing iruit. With help of Fleury s lgorithm we get the following iruit solution:

19 The eges re lelle in the orer in wht they re trverse uring the trip.

20 6. The trvelling slesmn prolem (TSP) TSP is se on Hmilton iruits. Given ny strt ity the ojetive of TPS is to visit ll ities one n only one n then return k to the strt ity n the iruit hs to e miniml s possile. To fin the shortest Hmilton iruit is lot more omplite thn it my pper. 6. Hrness of Hmilton iruit Firstly there is no theorem whih shows us tht given grph hs Hmilton iruit. Seonly no lgorithms gurntee tht foun Hmilton iruit is optiml. Finlly it tkes quite long time to fin Hmilton iruit. For exmple if grph is omplete with n numer of verties, we hve (n - )! / numer of ifferent possile iruit. The following tle shows how muh time the omputers tke to fin Hmilton iruit [3]: verties iruit Time miroses 50.5 millises 8, ses 9,958,400 0 ses 87,78,9,00. hours 77,843,74,048, yers yers One lgorithm whih n le us to fin n lmost optiml Hmilton iruit is lle insertion lgorithm. 6. The losest insertion lgorithm This lgorithm wlks for omplete grph. Let G = (V, E) e Hmiltonin grph. Choose ny strt vertex v of G. Selet one vertex v of G suh s the iruit v v v is short s possile. 3. Continue to verties with the sme proeure in. But from n 4 uil ifferent Hmilton iruit for exmple v v v 3 v 4 v ; v v v 4 v 3 v ; v v 4 v v 3 v ; selet the shortest iruit. 4. If ll verties hve een hosen stop.

21 Exmple: Fin Hmilton iruit for the following grph. e We hoose = v s the strt vertex. The losest vertex to is vertex e = v. The next vertex losest to iruit solution is vertex = v 3. Now we hve the iruit e. We hve here vertex = v 4 losest to iruit e. Now we hve the following ifferent iruits: v v v 3 v 4 v = e hs length = 9 v v v 4 v 3 v = e hs length = 7 v v 4 v v 3 v = e hs length = 0 The iruit e is smllest n the vertex = v 5 is losest to the iruit. We hve the following ifferent iruits: v v v 3 v 4 v 5 v = e hs length = 3 v v v 3 v 5 v 4 v = e hs length = 4 v v v 5 v 3 v 4 v = e hs length = 5 v v 5 v v 3 v 4 v = e hs length = 5 So our optiml Hmilton iruit is e: e The lgorithm gives us the iruit solution e = 3 s n optiml Hmilton iruit ut it miss for exmple the iruit e = whih is smller thn the lgorithm iruits solution.

22 6.3 Progress on TSP metho Nevertheless gret progress hs een one espite TSP hrness. Reserh llowe some effetive metho whih n solve prolem with severl ities. These methos re following [3]: Met-heuristis tht n otin upper ouns within 0.0% of optiml even when n =,000,000. This metho solve 4- ity prolem in USA 954 ( Cutting-plne methos tht n otin lower ouns within 0.% of optiml for n up to 00,000 or so. This metho n the next oth solve the Sween tour in 004, see setion 6.4 elow Brnh-n-ut methos tht n solve instnes with n up to to proven optimlity. 6.4 Sween tour The Sween tour is ities prolem whih ws solve in My 004 y the following Reserh Tem: Dvi Applegte, AT&T Ls - Reserh Roert Bixy, ILOG n Rie University Všek Chvátl, Rutgers University Willim Cook, Georgi Teh Kel Helsgun, Roskile University This tour is pproximtely km long n it took one yer n two months to fin the solution. They use rnh- n-ut n utting-plnes metho to solve this prolem. The iruit hs een roken in 00 legs. Let us see some legs of the tour [4]: Legs Numer of ities Distne (km) Stokholm to Soertlje Soertlje to Uppsl Uppsl to Sigtun Sigtun to Hofors Hofors to Heemor 60 44

23 7. Summry In this rtile we hve seen how mny lgorithm works. Some lgorithms yiel the sme result ut their proeures to otin the solution re ifferent. In this se we hve for exmple Prim s lgorithm n Kruskl s lgorithm. The ig ifferene is tht for Prim s lgorithm we just one ege t the time ut in Kruskl s lgorithm we n one or more t the time. Other ifferene is tht in omputer Prim s lgorithm is usully fster thn Kruskl s ut y hn it is ler tht the opposite hols. We took lso look to Dijkstr s lgorithm whih llow us to fin not only shortest pth etween two speifi verties, it lso llow us to get shortest pth from ny given strt vertex to ny vertex in grph. It is well remrkle tht this lgorithm gives sme result s GPS. This lgorithm my e le to e use in GPS systems. Finlly we oserve two ifferent iruits. Euler iruits re esy to etermine whether grph hs n Euler iruit is esy, s well s to fin suh iruit euse there is speifi theorem to Euler grph n lgorithm whih gurntee to fin n Euler iruit. Even if grph hs not Euler iruit there is possile to get it y uplite the verties with o egree in grph. In opposite for Hmilton iruit there is neither theorem nor lgorithm like in Euler iruit whih gurntee us tht grph hs Hmilton iruit or tht given Hmilton iruit is optiml. Nevertheless the mthemtiins keep serhing n the Sween tour shows tht there is some goo progress in fining minimum Hmilton iruits.

24 8. Referenes [] John Clrk, Derek Alln Holton. A first look t grph theory. Deprtment of Mthemtis n Sttistis University of Otgo (New Zeln) [] Vsuev, C. Grph theory with pplitions. New Delhi, 006. [3] [4]

25 SE-39 8 Klmr / SE Växjö Tel +46 (0) fm@lnu.se Lnu.se/fm

10.2 Graph Terminology and Special Types of Graphs

10.2 Graph Terminology and Special Types of Graphs 10.2 Grph Terminology n Speil Types of Grphs Definition 1. Two verties u n v in n unirete grph G re lle jent (or neighors) in G iff u n v re enpoints of n ege e of G. Suh n ege e is lle inient with the

More information

Greedy Algorithm. Algorithm Fall Semester

Greedy Algorithm. Algorithm Fall Semester Greey Algorithm Algorithm 0 Fll Semester Optimiztion prolems An optimiztion prolem is one in whih you wnt to fin, not just solution, ut the est solution A greey lgorithm sometimes works well for optimiztion

More information

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved.

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved. Chpter 9 Greey Tehnique Copyright 2007 Person Aison-Wesley. All rights reserve. Greey Tehnique Construts solution to n optimiztion prolem piee y piee through sequene of hoies tht re: fesile lolly optiml

More information

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V)

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V) Definitions G = (V, E) V = set of verties (vertex / noe) E = set of eges (v, w) (v, w in V) (v, w) orere => irete grph (igrph) (v, w) non-orere => unirete grph igrph: w is jent to v if there is n ege from

More information

Lesson 4.4. Euler Circuits and Paths. Explore This

Lesson 4.4. Euler Circuits and Paths. Explore This Lesson 4.4 Euler Ciruits nd Pths Now tht you re fmilir with some of the onepts of grphs nd the wy grphs onvey onnetions nd reltionships, it s time to egin exploring how they n e used to model mny different

More information

Lecture 8: Graph-theoretic problems (again)

Lecture 8: Graph-theoretic problems (again) COMP36111: Advned Algorithms I Leture 8: Grph-theoreti prolems (gin) In Prtt-Hrtmnn Room KB2.38: emil: iprtt@s.mn..uk 2017 18 Reding for this leture: Sipser: Chpter 7. A grph is pir G = (V, E), where V

More information

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam Cmrige, Msshusetts Introution to Mtrois n Applitions Srikumr Rmlingm MERL mm//yy Liner Alger (,0,0) (0,,0) Liner inepenene in vetors: v, v2,..., For ll non-trivil we hve s v s v n s, s2,..., s n 2v2...

More information

Distance vector protocol

Distance vector protocol istne vetor protool Irene Finohi finohi@i.unirom.it Routing Routing protool Gol: etermine goo pth (sequene of routers) thru network from soure to Grph strtion for routing lgorithms: grph noes re routers

More information

12/9/14. CS151 Fall 20124Lecture (almost there) 12/6. Graphs. Seven Bridges of Königsberg. Leonard Euler

12/9/14. CS151 Fall 20124Lecture (almost there) 12/6. Graphs. Seven Bridges of Königsberg. Leonard Euler CS5 Fll 04Leture (lmost there) /6 Seven Bridges of Königserg Grphs Prof. Tny Berger-Wolf Leonrd Euler 707-783 Is it possile to wlk with route tht rosses eh ridge e Seven Bridges of Königserg Forget unimportnt

More information

Introduction. Example

Introduction. Example OMS0 Introution isjoint sets n minimum spnning trees In this leture we will strt by isussing t struture use for mintining isjoint subsets of some bigger set. This hs number of pplitions, inluing to mintining

More information

COMP108 Algorithmic Foundations

COMP108 Algorithmic Foundations Grph Theory Prudene Wong http://www.s.liv..uk/~pwong/tehing/omp108/201617 How to Mesure 4L? 3L 5L 3L ontiner & 5L ontiner (without mrk) infinite supply of wter You n pour wter from one ontiner to nother

More information

CS 241 Week 4 Tutorial Solutions

CS 241 Week 4 Tutorial Solutions CS 4 Week 4 Tutoril Solutions Writing n Assemler, Prt & Regulr Lnguges Prt Winter 8 Assemling instrutions utomtilly. slt $d, $s, $t. Solution: $d, $s, nd $t ll fit in -it signed integers sine they re 5-it

More information

Class Overview. Database Design. Database Design Process. Database Design. Introduction to Data Management CSE 414

Class Overview. Database Design. Database Design Process. Database Design. Introduction to Data Management CSE 414 Introution to Dt Mngement CSE 44 Unit 6: Coneptul Design E/R Digrms Integrity Constrints BCNF Introution to Dt Mngement CSE 44 E/R Digrms ( letures) CSE 44 Autumn 08 Clss Overview Dtse Design Unit : Intro

More information

Outline. CS38 Introduction to Algorithms. Graphs. Graphs. Graphs. Graph traversals

Outline. CS38 Introduction to Algorithms. Graphs. Graphs. Graphs. Graph traversals Outline CS38 Introution to Algorithms Leture 2 April 3, 2014 grph trversls (BFS, DFS) onnetivity topologil sort strongly onnete omponents heps n hepsort greey lgorithms April 3, 2014 CS38 Leture 2 2 Grphs

More information

Graph Contraction and Connectivity

Graph Contraction and Connectivity Chpter 14 Grph Contrtion n Connetivity So fr we hve mostly overe tehniques for solving problems on grphs tht were evelope in the ontext of sequentil lgorithms. Some of them re esy to prllelize while others

More information

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of

More information

5 ANGLES AND POLYGONS

5 ANGLES AND POLYGONS 5 GLES POLYGOS urling rige looks like onventionl rige when it is extene. However, it urls up to form n otgon to llow ots through. This Rolling rige is in Pington sin in Lonon, n urls up every Friy t miy.

More information

COMMON FRACTIONS. or a / b = a b. , a is called the numerator, and b is called the denominator.

COMMON FRACTIONS. or a / b = a b. , a is called the numerator, and b is called the denominator. COMMON FRACTIONS BASIC DEFINITIONS * A frtion is n inite ivision. or / * In the frtion is lle the numertor n is lle the enomintor. * The whole is seprte into "" equl prts n we re onsiering "" of those

More information

3D convex hulls. Convex Hull in 3D. convex polyhedron. convex polyhedron. The problem: Given a set P of points in 3D, compute their convex hull

3D convex hulls. Convex Hull in 3D. convex polyhedron. convex polyhedron. The problem: Given a set P of points in 3D, compute their convex hull Convex Hull in The rolem: Given set P of oints in, omute their onvex hull onvex hulls Comuttionl Geometry [si 3250] Lur Tom Bowoin College onvex olyheron 1 2 3 olygon olyheron onvex olyheron 4 5 6 Polyheron

More information

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs. Lecture 5 Wlks, Trils, Pths nd Connectedness Reding: Some of the mteril in this lecture comes from Section 1.2 of Dieter Jungnickel (2008), Grphs, Networks nd Algorithms, 3rd edition, which is ville online

More information

Section 2.3 Functions. Definition: Let A and B be sets. A function (mapping, map) f from A to B, denoted f :A B, is a subset of A B such that

Section 2.3 Functions. Definition: Let A and B be sets. A function (mapping, map) f from A to B, denoted f :A B, is a subset of A B such that Setion 2.3 Funtions Definition: Let n e sets. funtion (mpping, mp) f from to, enote f :, is suset of suh tht x[x y[y < x, y > f ]] n [< x, y 1 > f < x, y 2 > f ] y 1 = y 2 Note: f ssoites with eh x in

More information

Internet Routing. Reminder: Routing. CPSC Network Programming

Internet Routing. Reminder: Routing. CPSC Network Programming PS 360 - Network Progrmming Internet Routing Mihele Weigle eprtment of omputer Siene lemson University mweigle@s.lemson.eu pril, 00 http://www.s.lemson.eu/~mweigle/ourses/ps360 Reminer: Routing Internet

More information

Premaster Course Algorithms 1 Chapter 6: Shortest Paths. Christian Scheideler SS 2018

Premaster Course Algorithms 1 Chapter 6: Shortest Paths. Christian Scheideler SS 2018 Premster Course Algorithms Chpter 6: Shortest Pths Christin Scheieler SS 8 Bsic Grph Algorithms Overview: Shortest pths in DAGs Dijkstr s lgorithm Bellmn-For lgorithm Johnson s metho SS 8 Chpter 6 Shortest

More information

Internet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014.

Internet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014. omputer Networks 9/29/2014 IP Pket Formt Internet Routing Ki Shen IP protool version numer heder length (words) for qulity of servie mx numer remining hops (deremented t eh router) upper lyer protool to

More information

Bayesian Networks: Directed Markov Properties (Cont d) and Markov Equivalent DAGs

Bayesian Networks: Directed Markov Properties (Cont d) and Markov Equivalent DAGs Byesin Networks: Direte Mrkov Properties (Cont ) n Mrkov Equivlent DAGs Huizhen Yu jney.yu@s.helsinki.fi Dept. Computer Siene, Univ. of Helsinki Proilisti Moels, Spring, 2010 Huizhen Yu (U.H.) Byesin Networks:

More information

Duality in linear interval equations

Duality in linear interval equations Aville online t http://ijim.sriu..ir Int. J. Industril Mthemtis Vol. 1, No. 1 (2009) 41-45 Dulity in liner intervl equtions M. Movhedin, S. Slhshour, S. Hji Ghsemi, S. Khezerloo, M. Khezerloo, S. M. Khorsny

More information

Lecture 12 : Topological Spaces

Lecture 12 : Topological Spaces Leture 12 : Topologil Spes 1 Topologil Spes Topology generlizes notion of distne nd loseness et. Definition 1.1. A topology on set X is olletion T of susets of X hving the following properties. 1. nd X

More information

PROBLEM OF APOLLONIUS

PROBLEM OF APOLLONIUS PROBLEM OF APOLLONIUS In the Jnury 010 issue of Amerin Sientist D. Mkenzie isusses the Apollonin Gsket whih involves fining the rius of the lrgest irle whih just fits into the spe etween three tngent irles

More information

Calculus Differentiation

Calculus Differentiation //007 Clulus Differentition Jeffrey Seguritn person in rowot miles from the nerest point on strit shoreline wishes to reh house 6 miles frther down the shore. The person n row t rte of mi/hr nd wlk t rte

More information

Final Exam Review F 06 M 236 Be sure to look over all of your tests, as well as over the activities you did in the activity book

Final Exam Review F 06 M 236 Be sure to look over all of your tests, as well as over the activities you did in the activity book inl xm Review 06 M 236 e sure to loo over ll of your tests, s well s over the tivities you did in the tivity oo 1 1. ind the mesures of the numered ngles nd justify your wor. Line j is prllel to line.

More information

Width and Bounding Box of Imprecise Points

Width and Bounding Box of Imprecise Points Width nd Bounding Box of Impreise Points Vhideh Keikh Mrten Löffler Ali Mohdes Zhed Rhmti Astrt In this pper we study the following prolem: we re given set L = {l 1,..., l n } of prllel line segments,

More information

Can Pythagoras Swim?

Can Pythagoras Swim? Overview Ativity ID: 8939 Mth Conepts Mterils Students will investigte reltionships etween sides of right tringles to understnd the Pythgoren theorem nd then use it to solve prolems. Students will simplify

More information

What are suffix trees?

What are suffix trees? Suffix Trees 1 Wht re suffix trees? Allow lgorithm designers to store very lrge mount of informtion out strings while still keeping within liner spce Allow users to serch for new strings in the originl

More information

Solids. Solids. Curriculum Ready.

Solids. Solids. Curriculum Ready. Curriulum Rey www.mthletis.om This ooklet is ll out ientifying, rwing n mesuring solis n prisms. SOM CUES The Som Cue ws invente y Dnish sientist who went y the nme of Piet Hein. It is simple 3 # 3 #

More information

Error Numbers of the Standard Function Block

Error Numbers of the Standard Function Block A.2.2 Numers of the Stndrd Funtion Blok evlution The result of the logi opertion RLO is set if n error ours while the stndrd funtion lok is eing proessed. This llows you to rnh to your own error evlution

More information

GENG2140 Modelling and Computer Analysis for Engineers

GENG2140 Modelling and Computer Analysis for Engineers GENG4 Moelling n Computer Anlysis or Engineers Letures 9 & : Gussin qurture Crete y Grn Romn Joles, PhD Shool o Mehnil Engineering, UWA GENG4 Content Deinition o Gussin qurture Computtion o weights n points

More information

Table-driven look-ahead lexical analysis

Table-driven look-ahead lexical analysis Tle-riven look-he lexil nlysis WUU YANG Computer n Informtion Siene Deprtment Ntionl Chio-Tung University, HsinChu, Tiwn, R.O.C. Astrt. Moern progrmming lnguges use regulr expressions to efine vli tokens.

More information

Chapter 16. Shortest Paths Shortest Weighted Paths

Chapter 16. Shortest Paths Shortest Weighted Paths Chpter 6 Shortet Pth Given grph where ege re lle with weight (or itne) n oure vertex, wht i the hortet pth etween the oure n ome other vertex? Prolem requiring u to nwer uh querie re roly known hortet-pth

More information

CMPUT101 Introduction to Computing - Summer 2002

CMPUT101 Introduction to Computing - Summer 2002 CMPUT Introdution to Computing - Summer 22 %XLOGLQJ&RPSXWHU&LUFXLWV Chpter 4.4 3XUSRVH We hve looked t so fr how to uild logi gtes from trnsistors. Next we will look t how to uild iruits from logi gtes,

More information

1 Disjoint-set data structure.

1 Disjoint-set data structure. CS 124 Setion #4 Union-Fin, Greey Algorithms 2/20/17 1 Disjoint-set ata struture. 1.1 Operations Disjoint-set ata struture enale us to effiiently perform operations suh as plaing elements into sets, querying

More information

Containers: Queue and List

Containers: Queue and List Continers: Queue n List Queue A ontiner in whih insertion is one t one en (the til) n eletion is one t the other en (the he). Also lle FIFO (First-In, First-Out) Jori Cortell n Jori Petit Deprtment of

More information

F. R. K. Chung y. University ofpennsylvania. Philadelphia, Pennsylvania R. L. Graham. AT&T Labs - Research. March 2,1997.

F. R. K. Chung y. University ofpennsylvania. Philadelphia, Pennsylvania R. L. Graham. AT&T Labs - Research. March 2,1997. Forced convex n-gons in the plne F. R. K. Chung y University ofpennsylvni Phildelphi, Pennsylvni 19104 R. L. Grhm AT&T Ls - Reserch Murry Hill, New Jersey 07974 Mrch 2,1997 Astrct In seminl pper from 1935,

More information

COMP 423 lecture 11 Jan. 28, 2008

COMP 423 lecture 11 Jan. 28, 2008 COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring

More information

Ma/CS 6b Class 1: Graph Recap

Ma/CS 6b Class 1: Graph Recap M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Adm Sheffer. Office hour: Tuesdys 4pm. dmsh@cltech.edu TA: Victor Kstkin. Office hour: Tuesdys 7pm. 1:00 Mondy, Wednesdy, nd Fridy. http://www.mth.cltech.edu/~2014-15/2term/m006/

More information

Honors Thesis: Investigating the Algebraic Properties of Cayley Digraphs

Honors Thesis: Investigating the Algebraic Properties of Cayley Digraphs Honors Thesis: Investigting the Algebri Properties of Cyley Digrphs Alexis Byers, Wittenberg University Mthemtis Deprtment April 30, 2014 This pper utilizes Grph Theory to gin insight into the lgebri struture

More information

MTH 146 Conics Supplement

MTH 146 Conics Supplement 105- Review of Conics MTH 146 Conics Supplement In this section we review conics If ou ne more detils thn re present in the notes, r through section 105 of the ook Definition: A prol is the set of points

More information

[Prakash* et al., 5(8): August, 2016] ISSN: IC Value: 3.00 Impact Factor: 4.116

[Prakash* et al., 5(8): August, 2016] ISSN: IC Value: 3.00 Impact Factor: 4.116 [Prksh* et l 58: ugust 6] ISSN: 77-9655 I Vlue: Impt Ftor: 6 IJESRT INTERNTIONL JOURNL OF ENGINEERING SIENES & RESERH TEHNOLOGY SOME PROPERTIES ND THEOREM ON FUZZY SU-TRIDENT DISTNE Prveen Prksh* M Geeth

More information

Chapter 4 Fuzzy Graph and Relation

Chapter 4 Fuzzy Graph and Relation Chpter 4 Fuzzy Grph nd Reltion Grph nd Fuzzy Grph! Grph n G = (V, E) n V : Set of verties(node or element) n E : Set of edges An edge is pir (x, y) of verties in V.! Fuzzy Grph ~ n ( ~ G = V, E) n V :

More information

2 Computing all Intersections of a Set of Segments Line Segment Intersection

2 Computing all Intersections of a Set of Segments Line Segment Intersection 15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design

More information

Lesson6: Modeling the Web as a graph Unit5: Linear Algebra for graphs

Lesson6: Modeling the Web as a graph Unit5: Linear Algebra for graphs Lesson6: Modeling the We s grph Unit5: Liner Alger for grphs Rene Pikhrdt Introdution to We Siene Prt 2 Emerging We Properties Rene Pikhrdt Institute CC-BY-SA-3. for We Siene nd Tehnologies Modeling the

More information

A matching algorithm for measuring the structural similarity between an XML document and a DTD and its applications $

A matching algorithm for measuring the structural similarity between an XML document and a DTD and its applications $ Informtion Systems 29 (2004) 23 46 A mthing lgorithm for mesuring the struturl similrity etween n XML oument n DTD n its pplitions $ Elis Bertino, Giovnn Guerrini, Mro Mesiti, * Diprtimento i Informti

More information

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries Tries Yufei To KAIST April 9, 2013 Y. To, April 9, 2013 Tries In this lecture, we will discuss the following exct mtching prolem on strings. Prolem Let S e set of strings, ech of which hs unique integer

More information

Introduction to Algebra

Introduction to Algebra INTRODUCTORY ALGEBRA Mini-Leture 1.1 Introdution to Alger Evlute lgeri expressions y sustitution. Trnslte phrses to lgeri expressions. 1. Evlute the expressions when =, =, nd = 6. ) d) 5 10. Trnslte eh

More information

CS 551 Computer Graphics. Hidden Surface Elimination. Z-Buffering. Basic idea: Hidden Surface Removal

CS 551 Computer Graphics. Hidden Surface Elimination. Z-Buffering. Basic idea: Hidden Surface Removal CS 55 Computer Grphis Hidden Surfe Removl Hidden Surfe Elimintion Ojet preision lgorithms: determine whih ojets re in front of others Uses the Pinter s lgorithm drw visile surfes from k (frthest) to front

More information

Ma/CS 6b Class 1: Graph Recap

Ma/CS 6b Class 1: Graph Recap M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Instructor: Adm Sheffer. TA: Cosmin Pohot. 1pm Mondys, Wednesdys, nd Fridys. http://mth.cltech.edu/~2015-16/2term/m006/ Min ook: Introduction to Grph

More information

CS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.

CS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string. CS 340, Fll 2016 Sep 29th Exm 1 Nme: Note: in ll questions, the speil symol ɛ (epsilon) is used to indite the empty string. Question 1. [10 points] Speify regulr expression tht genertes the lnguge over

More information

WORKSHOP 9 HEX MESH USING SWEEP VECTOR

WORKSHOP 9 HEX MESH USING SWEEP VECTOR WORKSHOP 9 HEX MESH USING SWEEP VECTOR WS9-1 WS9-2 Prolem Desription This exerise involves importing urve geometry from n IGES file. The urves re use to rete other urves. From the urves trimme surfes re

More information

Graph Searching & Perfect Graphs

Graph Searching & Perfect Graphs Grph Serhing & Perfet Grphs Lll Moutdid University of Toronto Astrt Perfet grphs, y definition, hve nie struture, tht grph serhing seems to extrt in, often non-inexpensive, mnner. We srth the surfe of

More information

Minimal Memory Abstractions

Minimal Memory Abstractions Miniml Memory Astrtions (As implemented for BioWre Corp ) Nthn Sturtevnt University of Alert GAMES Group Ferury, 7 Tlk Overview Prt I: Building Astrtions Minimizing memory requirements Performnes mesures

More information

Paradigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms

Paradigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms Prdigm. Dt Struture Known exmples: link tble, hep, Our leture: suffix tree Will involve mortize method tht will be stressed shortly in this ourse Suffix trees Wht is suffix tree? Simple pplitions History

More information

An Efficient Algorithm for the Physical Mapping of Clustered Task Graphs onto Multiprocessor Architectures

An Efficient Algorithm for the Physical Mapping of Clustered Task Graphs onto Multiprocessor Architectures An Effiient Algorithm for the Physil Mpping of Clustere Tsk Grphs onto Multiproessor Arhitetures Netrios Koziris Pnyiotis Tsnks Mihel Romesis George Ppkonstntinou Ntionl Tehnil University of Athens Dept.

More information

Definition of Regular Expression

Definition of Regular Expression Definition of Regulr Expression After the definition of the string nd lnguges, we re redy to descrie regulr expressions, the nottion we shll use to define the clss of lnguges known s regulr sets. Recll

More information

Lecture 13: Graphs I: Breadth First Search

Lecture 13: Graphs I: Breadth First Search Leture 13 Grphs I: BFS 6.006 Fll 2011 Leture 13: Grphs I: Bredth First Serh Leture Overview Applitions of Grph Serh Grph Representtions Bredth-First Serh Rell: Grph G = (V, E) V = set of verties (ritrry

More information

Algorithm Design (5) Text Search

Algorithm Design (5) Text Search Algorithm Design (5) Text Serch Tkshi Chikym School of Engineering The University of Tokyo Text Serch Find sustring tht mtches the given key string in text dt of lrge mount Key string: chr x[m] Text Dt:

More information

MATH 25 CLASS 5 NOTES, SEP

MATH 25 CLASS 5 NOTES, SEP MATH 25 CLASS 5 NOTES, SEP 30 2011 Contents 1. A brief diversion: reltively prime numbers 1 2. Lest common multiples 3 3. Finding ll solutions to x + by = c 4 Quick links to definitions/theorems Euclid

More information

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards A Tutology Checker loosely relted to Stålmrck s Algorithm y Mrtin Richrds mr@cl.cm.c.uk http://www.cl.cm.c.uk/users/mr/ University Computer Lortory New Museum Site Pemroke Street Cmridge, CB2 3QG Mrtin

More information

Graphs with at most two trees in a forest building process

Graphs with at most two trees in a forest building process Grphs with t most two trees in forest uilding process rxiv:802.0533v [mth.co] 4 Fe 208 Steve Butler Mis Hmnk Mrie Hrdt Astrct Given grph, we cn form spnning forest y first sorting the edges in some order,

More information

Lily Yen and Mogens Hansen

Lily Yen and Mogens Hansen SKOLID / SKOLID No. 8 Lily Yen nd Mogens Hnsen Skolid hs joined Mthemticl Myhem which is eing reformtted s stnd-lone mthemtics journl for high school students. Solutions to prolems tht ppered in the lst

More information

Solutions to Tutorial 2 (Week 9)

Solutions to Tutorial 2 (Week 9) The University of Syney Shool of Mathematis an Statistis Solutions to Tutorial (Week 9) MATH09/99: Disrete Mathematis an Graph Theory Semester, 0. Determine whether eah of the following sequenes is the

More information

Parallelization Optimization of System-Level Specification

Parallelization Optimization of System-Level Specification Prlleliztion Optimiztion of System-Level Speifition Luki i niel. Gjski enter for Emedded omputer Systems University of liforni Irvine, 92697, US {li, gjski} @es.ui.edu strt This pper introdues the prlleliztion

More information

13.1 Weighted Graphs and Their Representation

13.1 Weighted Graphs and Their Representation Chpter Shortet Pth In thi hpter we will over prolem involving fining the hortet pth etween vertie in grph with weight (length) on the ege. One oviou pplition i in fining the hortet route from one re to

More information

Doubts about how to use azimuth values from a Coordinate Object. Juan Antonio Breña Moral

Doubts about how to use azimuth values from a Coordinate Object. Juan Antonio Breña Moral Douts out how to use zimuth vlues from Coordinte Ojet Jun Antonio Breñ Morl # Definition An Azimuth is the ngle from referene vetor in referene plne to seond vetor in the sme plne, pointing towrd, (ut

More information

Lexical Analysis: Constructing a Scanner from Regular Expressions

Lexical Analysis: Constructing a Scanner from Regular Expressions Lexicl Anlysis: Constructing Scnner from Regulr Expressions Gol Show how to construct FA to recognize ny RE This Lecture Convert RE to n nondeterministic finite utomton (NFA) Use Thompson s construction

More information

UTMC APPLICATION NOTE UT1553B BCRT TO INTERFACE PSEUDO-DUAL-PORT RAM ARCHITECTURE INTRODUCTION ARBITRATION DETAILS DESIGN SELECTIONS

UTMC APPLICATION NOTE UT1553B BCRT TO INTERFACE PSEUDO-DUAL-PORT RAM ARCHITECTURE INTRODUCTION ARBITRATION DETAILS DESIGN SELECTIONS UTMC APPLICATION NOTE UT1553B BCRT TO 80186 INTERFACE INTRODUCTION The UTMC UT1553B BCRT is monolithi CMOS integrte iruit tht provies omprehensive Bus Controller n Remote Terminl funtions for MIL-STD-

More information

FASTEST METHOD TO FIND ALTERNATIVE RE-ROUTE

FASTEST METHOD TO FIND ALTERNATIVE RE-ROUTE INTERNATIONAL JOURNAL OF RESEARCH IN COMPUTER APPLICATIONS AND ROBOTICS ISSN 2320-7345 FASTEST METHOD TO FIND ALTERNATIVE RE-ROUTE 1 M.JothiLkshmi, M.S., M.Phil. 2 C.Theeendr, M.S., M.Phil. 3 M.K.Pvithr,

More information

Computational geometry

Computational geometry Leture 23 Computtionl geometry Supplementl reding in CLRS: Chpter 33 exept 33.3 There re mny importnt prolems in whih the reltionships we wish to nlyze hve geometri struture. For exmple, omputtionl geometry

More information

Pattern Matching. Pattern Matching. Pattern Matching. Review of Regular Expressions

Pattern Matching. Pattern Matching. Pattern Matching. Review of Regular Expressions Pttern Mthing Pttern Mthing Some of these leture slides hve een dpted from: lgorithms in C, Roert Sedgewik. Gol. Generlize string serhing to inompletely speified ptterns. pplitions. Test if string or its

More information

1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers?

1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers? 1.1 TEXAS ESSENTIAL KNOWLEDGE AND SKILLS Prepring for 2A.6.K, 2A.7.I Intervl Nottion nd Set Nottion Essentil Question When is it convenient to use set-uilder nottion to represent set of numers? A collection

More information

A dual of the rectangle-segmentation problem for binary matrices

A dual of the rectangle-segmentation problem for binary matrices A dul of the rectngle-segmenttion prolem for inry mtrices Thoms Klinowski Astrct We consider the prolem to decompose inry mtrix into smll numer of inry mtrices whose -entries form rectngle. We show tht

More information

Comparison-based Choices

Comparison-based Choices Comprison-se Choies John Ugner Mngement Siene & Engineering Stnfor University Joint work with: Jon Kleinerg (Cornell) Senhil Mullinthn (Hrvr) EC 17 Boston June 28, 2017 Preiting isrete hoies Clssi prolem:

More information

Cooperative Routing in Multi-Source Multi-Destination Multi-hop Wireless Networks

Cooperative Routing in Multi-Source Multi-Destination Multi-hop Wireless Networks oopertive Routing in Multi-Soure Multi-estintion Multi-hop Wireless Networks Jin Zhng Qin Zhng eprtment of omputer Siene n ngineering Hong Kong University of Siene n Tehnology, HongKong {zjzj, qinzh}@se.ust.hk

More information

Notes for Graph Theory

Notes for Graph Theory Notes for Grph Theory These re notes I wrote up for my grph theory clss in 06. They contin most of the topics typiclly found in grph theory course. There re proofs of lot of the results, ut not of everything.

More information

Right Angled Trigonometry. Objective: To know and be able to use trigonometric ratios in rightangled

Right Angled Trigonometry. Objective: To know and be able to use trigonometric ratios in rightangled C2 Right Angled Trigonometry Ojetive: To know nd e le to use trigonometri rtios in rightngled tringles opposite C Definition Trigonometry ws developed s method of mesuring ngles without ngulr units suh

More information

FEEDBACK: The standard error of a regression is not an unbiased estimator for the standard deviation of the error in a multiple regression model.

FEEDBACK: The standard error of a regression is not an unbiased estimator for the standard deviation of the error in a multiple regression model. Introutory Eonometris: A Moern Approh 6th Eition Woolrige Test Bnk Solutions Complete ownlo: https://testbnkre.om/ownlo/introutory-eonometris-moern-pproh-6th-eition-jeffreym-woolrige-test-bnk/ Solutions

More information

Journal of Combinatorial Theory, Series A

Journal of Combinatorial Theory, Series A Journl of Comintoril Theory, Series A 0 (0) Contents lists ville t SiVerse SieneDiret Journl of Comintoril Theory, Series A www.elsevier.om/lote/jt Spheril tiling y ongruent pentgons Hongho Go, Nn Shi,

More information

Outline. Graphs Describing Precedence. Graphs Describing Precedence. Topological SorFng of DAGs. Graphs Describing Precedence 4/25/12. Part 10.

Outline. Graphs Describing Precedence. Graphs Describing Precedence. Topological SorFng of DAGs. Graphs Describing Precedence 4/25/12. Part 10. 4// Outlin Prt. Grphs CS Algorithms n Dt Struturs Introution Trminology Implmnting Grphs Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits Grphs Dsriing Prn Grphs Dsriing

More information

CS553 Lecture Introduction to Data-flow Analysis 1

CS553 Lecture Introduction to Data-flow Analysis 1 ! Ide Introdution to Dt-flow nlysis!lst Time! Implementing Mrk nd Sweep GC!Tody! Control flow grphs! Liveness nlysis! Register llotion CS553 Leture Introdution to Dt-flow Anlysis 1 Dt-flow Anlysis! Dt-flow

More information

Distributed Systems Principles and Paradigms

Distributed Systems Principles and Paradigms Distriuted Systems Priniples nd Prdigms Christoph Dorn Distriuted Systems Group, Vienn University of Tehnology.dorn@infosys.tuwien..t http://www.infosys.tuwien..t/stff/dorn Slides dpted from Mrten vn Steen,

More information

McAfee Web Gateway

McAfee Web Gateway Relese Notes Revision C MAfee We Gtewy 7.6.2.11 Contents Aout this relese Enhnement Resolved issues Instlltion instrutions Known issues Additionl informtion Find produt doumenttion Aout this relese This

More information

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5 CS321 Lnguges nd Compiler Design I Winter 2012 Lecture 5 1 FINITE AUTOMATA A non-deterministic finite utomton (NFA) consists of: An input lphet Σ, e.g. Σ =,. A set of sttes S, e.g. S = {1, 3, 5, 7, 11,

More information

s 1 t 4 s 2 4 t 2 a b r 2 r 8 r10 g 4

s 1 t 4 s 2 4 t 2 a b r 2 r 8 r10 g 4 k-pirs Non-Crossing Shortest Pths in Simple Polgon Evnthi Ppdopoulou Northwestern Universit, Evnston, Illinois 60208, USA Astrt. This pper presents n O(n + k) time lgorithm to ompute the set of k non-rossing

More information

Intermediate Information Structures

Intermediate Information Structures CPSC 335 Intermedite Informtion Structures LECTURE 13 Suffix Trees Jon Rokne Computer Science University of Clgry Cnd Modified from CMSC 423 - Todd Trengen UMD upd Preprocessing Strings We will look t

More information

Geometrical reasoning 1

Geometrical reasoning 1 MODULE 5 Geometril resoning 1 OBJECTIVES This module is for study y n individul teher or group of tehers. It: looks t pprohes to developing pupils visulistion nd geometril resoning skills; onsiders progression

More information

Distributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems

Distributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems Distriuted Systems Priniples nd Prdigms Mrten vn Steen VU Amsterdm, Dept. Computer Siene steen@s.vu.nl Chpter 11: Distriuted File Systems Version: Deemer 10, 2012 2 / 14 Distriuted File Systems Distriuted

More information

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it. 6.3 Volumes Just s re is lwys positive, so is volume nd our ttitudes towrds finding it. Let s review how to find the volume of regulr geometric prism, tht is, 3-dimensionl oject with two regulr fces seprted

More information

Line The set of points extending in two directions without end uniquely determined by two points. The set of points on a line between two points

Line The set of points extending in two directions without end uniquely determined by two points. The set of points on a line between two points Lines Line Line segment Perpendiulr Lines Prllel Lines Opposite Angles The set of points extending in two diretions without end uniquely determined by two points. The set of points on line between two

More information

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search. CS 88: Artificil Intelligence Fll 00 Lecture : A* Serch 9//00 A* Serch rph Serch Tody Heuristic Design Dn Klein UC Berkeley Multiple slides from Sturt Russell or Andrew Moore Recp: Serch Exmple: Pncke

More information

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

In the last lecture, we discussed how valid tokens may be specified by regular expressions. LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.

More information

Rolling Back Remote Provisioning Changes. Dell Command Integration for System Center

Rolling Back Remote Provisioning Changes. Dell Command Integration for System Center Rolling Bk Remote Provisioning Chnges Dell Commn Integrtion for System Center Notes, utions, n wrnings NOTE: A NOTE inites importnt informtion tht helps you mke etter use of your prout. CAUTION: A CAUTION

More information

Typing with Weird Keyboards Notes

Typing with Weird Keyboards Notes Typing with Weird Keyords Notes Ykov Berchenko-Kogn August 25, 2012 Astrct Consider lnguge with n lphet consisting of just four letters,,,, nd. There is spelling rule tht sys tht whenever you see n next

More information