- 14. Minimum Spanning Trees
Motivation, Greedy, Algorithm Kruskal, General Rules, ADT Union-Find, Algorithm Jarnik, Prim, Dijkstra [Ottman/Widmayer, Kap. 9.6, 6.2, 6.1, Cormen et al, Kap. 23, 19]
297
14. Minimum Spanning Trees Motivation, Greedy, Algorithm Kruskal, - - PowerPoint PPT Presentation
14. Minimum Spanning Trees Motivation, Greedy, Algorithm Kruskal, General Rules, ADT Union-Find, Algorithm Jarnik, Prim, Dijkstra [Ottman/Widmayer, Kap. 9.6, 6.2, 6.1, Cormen et al, Kap. 23, 19] 297 Problem Given: Undirected, weighted,
297
s t u v w x 1 1 2 4 3 2 2 6
298
18The best known algorithm to solve the TS problem exactly has exponential running
time.
299
300
s t u v w x 1 1 2 4 3 2 2 6
301
302
303
304
305
1 2 3 9 6 7 4 5 8 10
306
1 2 3 9 6 7 4 5 8 10
307
19i and j need to be names (roots) of the sets. Otherwise use Union(Find(i),Find(j))
308
309
310
20We do not go into details here.
311
21because G is connected: |V | ≤ |E| ≤ |V |2
312
S V \ S
313
314