Docsity

combinatorial optimization, Summaries of Mathematics

Partial preview of the text

Download combinatorial optimization and more Summaries Mathematics in PDF only on Docsity!

MAJAMA SI : Networks € Combinatorial Optimization Today : 8\4 Minimum Spanning, “Wees Gy ahs - mony definitions ° An undirected graph (or Just Qcaph ) IS O Pair G=(V.E) of - a set of vertices \/ — Q Set of edges E “edge™= wondered DAC of vertices Exe Vet 2345 Ef, 25,0498 A walk in G isa SEQUENCE Vo, ©, Ni; 22, 1, &m\in a Where we, S-iysyseE Le JV A path i$ a walk with distinct vertices Vy G is connected if there is path between any tuo vertices of G A cycle in & is a walk with distinct edges DO} and Vo=Vn A ciccuit in G is a Cycle with all vertices distinct excepr vo=vm The (connected) components of G “WAZ are the maximal connected Sulographs. A graph with wo cycles is a forest ONG A Connected Forest is a tee + Check: every forest in a Gis\oint union of trees’. BR swoaraph K=(V'E') of & is spanning IF V=V' and every vertex Ve is contained in some edge ecE! TV A spanning tee of G is a spanning, Connected suograph of & with no cycles. Ex.'» Y= {224,235 *) both Sp. Aves G T=Tl4, 24,235 4 FG Minirnum Spanning Tree (MST) Problem Input a Connected graph G=(\E) and Oo ‘length Sunction 0:E2R — ieee e Dijkstra. Dim AlaorYam (1954, 1164, based on Bortvka (1926)) 1) Choose any vertex ve. Set Viv Ed 2) While V+ V, choose. e¢ S(\,) of min. length Set Vw = Vy. ee and ae PAUL 3) Output (Vi, Ee) ee INH) Here SS)=feeE with one endst. in S, one in V\s} S Example of a greedy algorithm ! At every sep, ) # Seps =|V|_— Running time + INI El ware lel Thin 2 O(\els M eg) | A= \+2+44G= (3 Proot of corfectness : Coll a forest of G greedy if itis contained in Q minimum Spanning tree of 6. “Fis a greedy forest of G - U is the vertex set of a conn. Component of F “ee S(1) has min. length in §(W) hen Fuies isa greedy irest of 6. (Roof) F greedy > J min. Spanning tree. 12] <1 If ee) > done! A Otherwise, take P= unique path in T between end pts. ofe => AF. HPN S(u) Buy useful Fact (3), T= Tu}es\it3 QISO a Spanning tree oF G. Since Me) < 2@), LT) LET) r] (Rrook of correctness) Start F is a greedy forest If Ruled is acyclic, @ connects two connected Components YU! of Ry > ee at), IF Usle Me), end pts of F ore connected in Fy. => e hos win length among §(U). = By Thm \.l, F isa greedy west. Bete te * t= 1244+ G13