






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







2
23 10 21 14 24 16 4 18 9 7 11 8
5 6 3
can't solve by brute force 23 10 21 14 24 16 4 18 9 7 11 8
5 6 4
Otakar Boruvka
5 Applications
6 Medical Image Processing MST describes arrangement of nuclei in the epithelium for cancer research http://www.bccrc.ca/ci/ta 01 _archlevel.html http://ginger.indstate.edu/ge/gfx 7 8 Two Greedy Algorithms
Greed is good. Greed is right. Greed works. Greed clarifies, cuts through, and captures the essence of the evolutionary spirit." - Gordon Gecko
13
14
15
f
e
16
f T* e
17
f T* e
18
19
3-5 1-7 6- 0-2 0-7 0-1 3-4 4-5 4- 20
25% 50% 75% 100%
25 public class Kruskal { private Sequence
safe to stop early if tree already has V-1 edges 26
Operation sort union find Time per op E log V log* V † log* V † Frequency 1 V E † amortized bound using weighted quick union with path compression recall: log* V # 5 in this universe E # V^2 so O(log E) is O(log V) 27
28
29 Prim's Algorithm: Example 25% 50% 75% 100% 30 Prim's Algorithm: Proof of Correctness
31 Prim's Algorithm: Implementation
32 Prim's Algorithm: Implementation
the one not already in S
37 Advanced MST Algorithms Worst Case E log log V E log log V E log* V, E + V log V E log (log* V) E &(V) log &(V) Discovered By Yao Cheriton-Tarjan Fredman-Tarjan Gabow-Galil-Spencer-Tarjan Chazelle E &(V) optimal Chazelle Pettie-Ramachandran Year 1975 1976 1984 1986 1997 2000 2002 deterministic comparison based MST algorithms related problems Problem Planar MST MST Verification Discovered By Cheriton-Tarjan Dixon-Rauch-Tarjan Year 1976 1992 Time E E (^1995) Randomized MST E Karger-Klein-Tarjan 20 xx E ??? 38 Euclidean MST
39 Euclidean MST