]> mj.ucw.cz Git - saga.git/blob - mst.tex
Impl of Boruvka and Jarnik.
[saga.git] / mst.tex
1 \ifx\endpart\undefined
2 \input macros.tex
3 \fi
4
5 \chapter{Minimum Spanning Trees}
6
7 \section{The Problem}
8
9 The problem of finding a minimum spanning tree of a weighted graph is one of the
10 best studied problems in the area of combinatorial optimization since its birth.
11 Its colorful history (see \cite{graham:msthistory} and \cite{nesetril:history} for the full account)
12 begins in~1926 with the pioneering work of Bor\o{u}vka
13 \cite{boruvka:ojistem}\foot{See \cite{nesetril:boruvka} for an English translation with commentary.},
14 who studied primarily an Euclidean version of the problem related to planning
15 of electrical transmission lines (see \cite{boruvka:networks}), but gave an efficient
16 algorithm for the general version of the problem. As it was well before the dawn of graph
17 theory, the language of his paper was complicated, so we will better state the problem
18 in contemporary terminology:
19
20 \proclaim{Problem}Given an undirected graph~$G$ with weights $w:E(G)\rightarrow {\bb R}$,
21 find its minimum spanning tree, defined as follows:
22
23 \defn\thmid{mstdef}%
24 For a given graph~$G$ with weights $w:E(G)\rightarrow {\bb R}$:
25 \itemize\ibull
26 \:A~subgraph $H\subseteq G$ is called a \df{spanning subgraph} if $V(H)=V(G)$.
27 \:A~\df{spanning tree} of $G$ is any its spanning subgraph which is a tree.
28 \:For any subgraph $H\subseteq G$ we define its \df{weight} $w(H):=\sum_{e\in E(H)} w(e)$.
29   When comparing two weights, we will use the terms \df{lighter} and \df{heavier} in the
30   obvious sense.
31 \:A~\df{minimum spanning tree (MST)} of~$G$ is a spanning tree~$T$ such that its weight $w(T)$
32   is the smallest possible of all the spanning trees of~$G$.
33 \:For a disconnected graph, a \df{(minimum) spanning forest (MSF)} is defined as
34   a union of (minimum) spanning trees of its connected components.
35 \endlist
36
37 Bor\o{u}vka's work was further extended by Jarn\'\i{}k \cite{jarnik:ojistem}, again in
38 mostly geometric setting, giving another efficient algorithm. However, when
39 computer science and graph theory started forming in the 1950's and the
40 spanning tree problem was one of the central topics of the flourishing new
41 disciplines, the previous work was not well known and the algorithms had to be
42 rediscovered several times.
43
44 Recently, several significantly faster algorithms were discovered, most notably the
45 $\O(m\beta(m,n))$-time algorithm by Fredman and Tarjan \cite{ft:fibonacci} and
46 algorithms with inverse-Ackermann type complexity by Chazelle \cite{chazelle:ackermann}
47 and Pettie \cite{pettie:ackermann}.
48
49 \FIXME{Write the rest of the history.}
50
51 This chapter attempts to survery the important algorithms for finding the MST and it
52 also presents several new ones.
53
54 \section{Basic Properties}
55
56 In this section, we will examine the basic properties of spanning trees and prove
57 several important theorems to base the algorithms upon. We will follow the theory
58 developed by Tarjan in~\cite{tarjan:dsna}.
59
60 For the whole section, we will fix a graph~$G$ with edge weights~$w$ and all
61 other graphs will be spanning subgraphs of~$G$. We will use the same notation
62 for the subgraphs as for the corresponding sets of edges.
63
64 First of all, let us show that the weights on edges are not necessary for the
65 definition of the MST. We can formulate an equivalent characterization using
66 an ordering of edges instead.
67
68 \defnn{Heavy and light edges}\thmid{heavy}%
69 Let~$T$ be a~spanning tree. Then:
70 \itemize\ibull
71 \:For vertices $x$ and $y$, let $T[x,y]$ denote the (unique) path in~$T$ joining $x$ and~$y$.
72 \:For an edge $e=xy$ we will call $T[e]:=T[x,y]$ the \df{path covered by~$e$} and
73   the edges of this path \df{edges covered by~$e$}.
74 \:An edge~$e$ is called \df{light with respect to~$T$} (or just \df{$T$-light}) if it covers a heavier edge, i.e., if there
75   is an edge $f\in T[e]$ such that $w(f) > w(e)$.
76 \:An edge~$e$ is called \df{$T$-heavy} if it is not $T$-light.
77 \endlist
78
79 \rem
80 Please note that the above properties also apply to tree edges
81 which by definition cover only themselves and therefore they are always heavy.
82
83 \lemman{Light edges}\thmid{lightlemma}%
84 Let $T$ be a spanning tree. If there exists a $T$-light edge, then~$T$
85 is not minimum.
86
87 \proof
88 If there is a $T$-light edge~$e$, then there exists an edge $e'\in T[e]$ such
89 that $w(e')>w(e)$. Now $T-e'$ is a forest of two trees with endpoints of~$e$
90 located in different components, so adding $e$ to this forest must restore
91 connectivity and $T':=T-e'+e$ is another spanning tree with weight $w(T')
92 = w(T)-w(e')+w(e) < w(T)$. Hence $T$ could not have been minimum.
93 \qed
94
95 \figure{mst2.eps}{278pt}{An edge exchange as in the proof of Lemma~\thmref{lightlemma}}
96
97 The converse of this lemma is also true and to prove it, we will once again use
98 technique of transforming trees by \df{exchanges} of edges. In the proof of the
99 lemma, we have made use of the fact that whenever we exchange an edge~$e$ of
100 a spanning tree for another edge~$f$ covered by~$e$, the result is again
101 a spanning tree. In fact, it is possible to transform any spanning tree
102 to any other spanning tree by a sequence of exchanges.
103
104 \lemman{Exchange property for trees}\thmid{xchglemma}%
105 Let $T$ and $T'$ be spanning trees of a common graph. Then there exists
106 a sequence of edge exchanges which transforms $T$ to~$T'$. More formally,
107 there exists a sequence of spanning trees $T=T_0,T_1,\ldots,T_k=T'$ such that
108 $T_{i+1}=T_i - e_i + e_i^\prime$ where $e_i\in T_i$ and $e_i^\prime\in T'$.
109
110 \proof
111 By induction on $d(T,T'):=\vert T\symdiff T'\vert$. When $d(T,T')=0$,
112 both trees are identical and no exchanges are needed. Otherwise, the trees are different,
113 but as they are of the same size, there must exist an edge $e'\in T'\setminus T$.
114 The cycle $T[e']+e'$ cannot be wholly contained in~$T'$, so there also must
115 exist an edge $e\in T[e']\setminus T'$. Exchanging $e$ for~$e'$ yields a spanning
116 tree $T^*:=T-e+e'$ such that $d(T^*,T')=d(T,T')-2$ and we can apply the induction
117 hypothesis to $T^*$ and $T'$ to get the rest of the exchange sequence.
118 \qed
119
120 \figure{mst1.eps}{295pt}{One step of the proof of Lemma~\thmref{xchglemma}}
121
122 \lemman{Monotone exchanges}\thmid{monoxchg}%
123 Let $T$ be a spanning tree such that there are no $T$-light edges and $T'$
124 be an arbitrary spanning tree. Then there exists a sequence of edge exchanges
125 transforming $T$ to~$T'$ such that the weight does not increase in any step.
126
127 \proof
128 We improve the argument from the previous proof, refining the induction step.
129 When we exchange $e\in T$ for $e'\in T'\setminus T$ such that $e\in T[e']$,
130 the weight never drops, since $e'$ is not a $T$-light edge and therefore
131 $w(e') \ge w(e)$, so $w(T^*)=w(T)-w(e)+w(e')\ge w(T)$.
132
133 To keep the induction going, we have to make sure that there are still no light
134 edges with respect to~$T^*$. In fact, it is enough to avoid such edges in
135 $T'\setminus T^*$, since these are the only edges considered by the induction
136 steps. To accomplish that, we replace the so far arbitrary choice of $e'\in T'\setminus T$
137 by picking the lightest such edge.
138
139 Now consider an edge $f\in T'\setminus T^*$. We want to show that $f$ is not
140 $T^*$-light, i.e., that it is heavier than all edges on $T^*[f]$. The path $T^*[f]$ is
141 either equal to the original path $T[f]$ (if $e\not\in T[f]$) or to $T[f] \symdiff C$,
142 where $C$ is the cycle $T[e']+e'$. The former case is trivial, in the latter one
143 $w(f)\ge w(e')$ due to the choice of $e'$ and all other edges on~$C$ are lighter
144 than~$e'$ as $e'$ was not $T$-light.
145 \qed
146
147 \thm\thmid{mstthm}%
148 A~spanning tree~$T$ is minimum iff there is no $T$-light edge.
149
150 \proof
151 If~$T$ is minimum, then by Lemma~\thmref{lightlemma} there are no $T$-light
152 edges.
153 Conversely, when $T$ is a spanning tree without $T$-light edges
154 and $T_{min}$ is an arbitrary minimum spanning tree, then according to the Monotone
155 exchange lemma (\thmref{monoxchg}) there exists a non-decreasing sequence
156 of exchanges transforming $T$ to $T_{min}$, so $w(T)\le w(T_{min})$
157 and thus $T$~is also minimum.
158 \qed
159
160 In general, a single graph can have many minimum spanning trees (for example
161 a complete graph on~$n$ vertices and unit edge weights has $n^{n-2}$
162 minimum spanning trees according to the Cayley's formula \cite{cayley:trees}).
163 However, as the following theorem shows, this is possible only if the weight
164 function is not injective.
165
166 \thmn{MST uniqueness}
167 If all edge weights are distinct, then the minimum spanning tree is unique.
168
169 \proof
170 Consider two minimum spanning trees $T_1$ and~$T_2$. According to the previous
171 theorem, there are no light edges with respect to neither of them, so by the
172 Monotone exchange lemma (\thmref{monoxchg}) there exists a sequence of non-decreasing
173 edge exchanges going from $T_1$ to $T_2$. As all edge weights all distinct,
174 these edge exchanges must be in fact strictly increasing. On the other hand,
175 we know that $w(T_1)=w(T_2)$, so the exchange sequence must be empty and indeed
176 $T_1$ and $T_2$ must be identical.
177 \qed
178
179 \rem\thmid{edgeoracle}%
180 To simplify the description of MST algorithms, we will expect that the weights
181 of all edges are distinct and that instead of numeric weights (usually accompanied
182 by problems with representation of real numbers in algorithms) we will be given
183 a comparison oracle, that is a function which answers questions ``$w(e)<w(f)$?'' in
184 constant time. In case the weights are not distinct, we can easily break ties by
185 comparing some unique edge identifiers and according to our characterization of
186 minimum spanning trees, the unique MST of the new graph will still be a MST of the
187 original graph. In the few cases where we need a more concrete input, we will
188 explicitly state so.
189
190 \section{The Red-Blue Meta-Algorithm}
191
192 Most MST algorithms can be described as special cases of the following procedure
193 (again following \cite{tarjan:dsna}):
194
195 \algn{Red-Blue Meta-Algorithm}
196 \algo
197 \algin A~graph $G$ with an edge comparison oracle (see \thmref{edgeoracle})
198 \:In the beginning, all edges are colored black.
199 \:Apply rules as long as possible:
200 \::Either pick a cut~$C$ such that its lightest edge is not blue \hfil\break and color this edge blue, \cmt{Blue rule}
201 \::Or pick a cycle~$C$ such that its heaviest edge is not red \hfil\break and color this edge \hphantas{red.}{blue.} \cmt{Red rule}
202 \algout Minimum spanning tree of~$G$ consisting of edges colored blue.
203 \endalgo
204
205 \rem
206 This procedure is not a proper algorithm, since it does not specify how to choose
207 the rule to apply. We will however prove that no matter how the rules are applied,
208 the procedure always stops and gives the correct result. Also, it will turn out
209 that each of the classical MST algorithms can be described as a specific way
210 of choosing the rules in this procedure, which justifies the name meta-algorithm.
211
212 \proclaim{Notation}%
213 We will denote the unique minimum spanning tree of the input graph by~$T_{min}$.
214 We intend to prove that this is also the output of the procedure.
215
216 \lemman{Blue lemma}
217 When an edge is colored blue in any step of the procedure, it is contained in the minimum spanning tree.
218
219 \proof
220 By contradiction. Let $e$ be an edge painted blue as the lightest edge of a cut~$C$.
221 If $e\not\in T_{min}$, then there must exist an edge $e'\in T_{min}$ which is
222 contained in~$C$ (take any pair of vertices separated by~$C$, the path
223 in~$T_{min}$ joining these vertices must cross~$C$ at least once). Exchanging
224 $e$ for $e'$ in $T_{min}$ yields an even lighter spanning tree since
225 $w(e)<w(e')$. \qed
226
227 \lemman{Red lemma}
228 When an edge is colored red in any step of the procedure, it is not contained in the minimum spanning tree.
229
230 \proof
231 Again by contradiction. Assume that $e$ is an edge painted red as the heaviest edge
232 of a cycle~$C$ and that $e\in T_{min}$. Removing $e$ causes $T_{min}$ to split to two
233 components, let us call them $T_x$ and $T_y$. Some vertices of~$C$ now lie in $T_x$,
234 the others in $T_y$, so there must exist in edge $e'\ne e$ such that its endpoints
235 lie in different components. Since $w(e')<w(e)$, exchanging $e$ for~$e'$ yields
236 a lighter spanning tree than $T_{min}$.
237 \qed
238
239 \figure{mst-rb.eps}{289pt}{Proof of the Blue (left) and Red (right) lemma}
240
241 \lemman{Black lemma}
242 As long as there exists a black edge, at least one rule can be applied.
243
244 \proof
245 Assume that $e=xy$ be a black edge. Let us denote $M$ the set of vertices
246 reachable from~$x$ using only blue edges. If $y$~lies in~$M$, then $e$ together
247 with some blue path between $x$ and $y$ forms a cycle and it must be the heaviest
248 edge on this cycle. This holds because all blue edges have been already proven
249 to be in $T_{min}$ and there can be no $T_{min}$-light edges (see Theorem~\thmref{mstthm}).
250 In this case we can apply the red rule.
251
252 On the other hand, if $y\not\in M$, then the cut formed by all edges between $M$
253 and $V(G)\setminus M$ contains no blue edges, therefore we can use the blue rule.
254 \qed
255
256 \figure{mst-bez.eps}{295pt}{Configurations in the proof of the Black lemma}
257
258 \thmn{Red-Blue correctness}
259 For any selection of rules, the Red-Blue procedure stops and the blue edges form
260 the minimum spanning tree of the input graph.
261
262 \proof
263 To prove that the procedure stops, let us notice that no edge is ever recolored,
264 so we must run out of black edges after at most~$m$ steps. Recoloring
265 to the same color is avoided by the conditions built in the rules, recoloring to
266 a different color would mean that the an edge would be both inside and outside~$T_{min}$
267 due to our Red and Blue lemmata.
268
269 When no further rules can be applied, the Black lemma guarantees that all edges
270 are colored, so by the Blue lemma all blue edges are in~$T_{min}$ and by the Red
271 lemma all other (red) edges are outside~$T_{min}$, so the blue edges are exactly~$T_{min}$.
272 \qed
273
274 \section{Classical algorithms}
275
276 The three classical MST algorithms can be easily stated in terms of the Red-Blue meta-algorithm.
277 For each of them, we first state the general version of the algorithm, then we prove that
278 it gives the correct result and finally we discuss the time complexity of various
279 implementations.
280
281 \algn{Bor\o{u}vka \cite{boruvka:ojistem}, Choquet \cite{choquet:mst}, Sollin \cite{sollin:mst} and others}
282 \algo
283 \algin A~graph~$G$ with an edge comparison oracle.
284 \:$T\=$ a forest consisting of vertices of~$G$ and no edges.
285 \:While $T$ is not connected:
286 \::For each component $T_i$ of~$T$, choose the lightest edge $e_i$ from the cut
287    separating $T_i$ from the rest of~$T$.
288 \::Add all $e_i$'s to~$T$.
289 \algout Minimum spanning tree~$T$.
290 \endalgo
291
292 \lemma
293 Bor\o{u}vka's algorithm returns the MST of the input graph.
294
295 \proof
296 In every iteration of the algorithm, $T$ is a blue subgraph,
297 because every addition of some edge~$e_i$ to~$T$ is a straightforward
298 application of the Blue rule. We stop when the blue subgraph is connected, so
299 we do not need the Red rule to explicitly exclude edges.
300
301 It remains to show that adding the edges simultaneously does not
302 produce a cycle. Consider the first iteration of the algorithm where $T$ contains some cycle~$C$. Without
303 loss of generality we can assume that $C=T_1[u_1v_1]\,v_1u_2\,T_2[u_2v_2]\,v_2u_3\,T_3[u_3v_3]\, \ldots \,T_k[u_kv_k]\,v_ku_1$.
304 Each component $T_i$ has chosen its lightest incident edge~$e_i$ as either the edge $v_iu_{i+1}$
305 or $v_{i-1}u_i$ (indexing cyclically). Assume that $e_1=v_1u_2$ (otherwise we reverse the orientation
306 of the cycle). Then $e_2=v_2u_3$ and $w(e_2)<w(e_1)$ and so on, giving $w(e_1)>w(e_2)>\ldots>w(e_k)>w(e_1)$,
307 which is a contradiction. (Note that distinctness of edge weights was crucial here.)
308 \qed
309
310 \lemma
311 In each iteration of the algorithm, the number of trees in~$T$ drops at least twice.
312
313 \proof
314 Each tree gets merged with at least one neighboring trees, so each of the new trees
315 consists of at least two original trees.
316 \qed
317
318 \cor
319 The algorithm stops in $\O(\log n)$ iterations.
320
321 \lemma
322 Each iteration can be carried out in time $\O(m)$.
323
324 \proof
325 Following \cite{mm:mst},
326 we assign a label to each tree and we keep a mapping from vertices to the
327 labels of the trees they belong to. We scan all edges, map their endpoints
328 to the particular trees and for each tree we maintain the lightest incident edge
329 so far encountered. Instead of merging the trees one by one (which would be too
330 slow), we build an auxilliary graph whose vertices are labels of the original
331 trees and edges correspond to the chosen lightest inter-tree edges. We find connected
332 components of this graph, these determine how the original labels are translated
333 to the new labels.
334 \qed
335
336 \thm
337 Bor\o{u}vka's algorithm finds the MST in time $\O(m\log n)$.
338
339 \proof
340 Follows from the previous lemmata.
341 \qed
342
343 \algn{Jarn\'\i{}k \cite{jarnik:ojistem}, Prim \cite{prim:mst}, Dijkstra \cite{dijkstra:mst}}
344 \algo
345 \algin A~graph~$G$ with an edge comparison oracle.
346 \:$T\=$ a single-vertex tree containing any vertex of~$G$.
347 \:While there are vertices outside $T$:
348 \::Pick the lightest edge $uv$ such that $u\in V(T)$ and $v\not\in V(T)$.
349 \::$T\=T+uv$.
350 \algout Minimum spanning tree~$T$.
351 \endalgo
352
353 \lemma
354 Jarn\'\i{}k's algorithm returns the MST of the input graph.
355
356 \proof
357 During the course of the algorithm, $T$ is always a blue tree. Step~4 corresponds to applying
358 the Blue rule to a cut between~$T$ and the rest of the given graph. We need not care about
359 the remaining edges, since for a connected graph the algorithm always stops with the right
360 number of blue edges.
361 \qed
362
363 \impl
364 The most important part of the algorithm is finding \em{neighboring edges,} i.e., edges
365 going between $T$ and $V(G)\setminus T$. In the straightforward implementation,
366 searching for the lightest neighboring edge takes $\Theta(m)$ time, so the whole
367 algorithm runs in time $\Theta(mn)$.
368
369 We can do much better by using a binary
370 heap to hold all neighboring edges. In each iteration, we find and delete the
371 minimum edge from the heap and once we expand the tree, we insert the newly discovered
372 neighboring edges to the heap while deleting the neighboring edges which become
373 internal to the new tree. Since there are always at most~$m$ edges in the heap,
374 each heap operation takes $\O(\log m)=\O(\log n)$ time. For every edge, we perform
375 at most one insertion and at most one deletion, so we spend $\O(m\log n)$ time in total.
376 From this, we can conclude:
377
378 \thm
379 Jarn\'\i{}k's algorithm finds the MST of the graph in time $\O(m\log n)$.
380
381 \rem
382 We will show several faster implementations in section \secref{fibonacci}.
383
384 \algn{Kruskal \cite{kruskal:mst}, the Greedy algorithm}
385 \algo
386 \algin A~graph~$G$ with an edge comparison oracle.
387 \:Sort edges of~$G$ by their increasing weight.
388 \:$T\=\emptyset$. \cmt{an empty spanning subgraph}
389 \:For all edges $e$ in their sorted order:
390 \::If $T+e$ is acyclic, add~$e$ to~$T$.
391 \::Otherwise drop~$e$.
392 \algout Minimum spanning tree~$T$.
393 \endalgo
394
395 \lemma
396 Kruskal's algorithm returns the MST of the input graph.
397
398 \proof
399 In every step, $T$ is a forest of blue trees. Adding~$e$ to~$T$
400 in step~4 applies the Blue rule on the cut separating two components of~$T$ ($e$ is the lightest,
401 because all other edges of the cut have not been considered yet). Dropping~$e$ in step~5 corresponds
402 to the red rule on the cycle found ($e$~must be the heaviest, since all other edges of the
403 cycle have been already processed). At the end of the algorithm, all edges have been colored,
404 so~$T$ must be the~MST.
405 \qed
406
407 \impl
408 Except for the initial sorting, which in general takes $\O(m\log n)$ time, the only
409 other non-trivial operation is detection of cycles. This leads to a well known problem
410 of maintaining equivalence classes (disjoint set union), which we will present as ?????
411 %%% FIXME: cite
412
413 \thm
414 Kruskal's algorithm finds the MST of the input graph in time $\O(m\log n)$
415 or $\O(m\alpha(n))$ if the edges are already sorted.
416
417 \proof
418 ???
419 \qed
420
421 \section{Contractive algorithms}
422
423 While the classical algorithms are based on growing suitable trees, they
424 can be also reformulated in terms of edge contraction. Instead of keeping
425 a forest of trees, we can keep each tree contracted to a single vertex.
426 This replaces the relatively complex tree-edge incidencies by simple
427 vertex-edge incidencies, potentially speeding up the calculation at the
428 expense of having to perform the contractions.
429
430 We will show a contractive version of the Bor\o{u}vka's algorithm
431 in which these costs are carefully balanced, leading for example to
432 a linear-time algorithm for MST in planar graphs.
433
434 There are two definitions of edge contraction which differ when an edge of a
435 triangle is contracted. Either we unify the other two edges to a single edge
436 or we keep them as two parallel edges, leaving us with a multigraph. We will
437 use the multigraph version and show that we can easily reduce the multigraph
438 to a simple graph later. (See \thmref{contract} for the exact definitions.)
439
440 We only need to be able to map edges of the contracted graph to the original
441 edges, so each edge will carry a unique label $l(e)$ which will be preserved by
442 contractions.
443
444 \lemman{Flattening a multigraph}%
445 Let $G$ be a multigraph and $G'$ its subgraph such that all loops have been
446 removed and each bundle of parallel edges replaced by its lightest edge.
447 Then $G'$~has the same MST as~$G$.
448
449 \proof
450 Loops can be never used in a spanning tree. If there is a spanning tree~$T$
451 containing a removed edge~$e$ parallel to an edge~$e'\in G'$, exchaning $e'$
452 for~$e$ in~$T$ makes it lighter. \qed
453
454 \rem Removal of the heavier of a pair of parallel edges can be also viewed
455 as an application of the Red rule on a 2-edge cycle. And indeed it is, the
456 Red-Blue procedure works on multigraphs and all the classical algorithms also
457 do. We only have to be more careful in the formulations and proofs, which we
458 preferred to avoid. We also note that most of the algorithms can be run on
459 disconnected graphs with little or no modifications.
460
461 \algn{Contracting version of Bor\o{u}vka's algorithm}
462 \algo
463 \algin A~graph~$G$ with an edge comparison oracle.
464 \:$T\=\emptyset$.
465 \:$l(e)\=e$ for all edges~$e$. \cmt{Initialize the labels.}
466 \:While $n(G)>1$:
467 \::For each vertex $v_i$ of~$G$, let $e_i$ be the lightest edge incident to~$v_i$.
468 \::$T\=T\cup \{ l(e_i) \}$. \cmt{Remember labels of all selected edges.}
469 \::Contract $G$ along all edges $e_i$, inheriting labels and weights.
470 \::Flatten $G$, removing parallel edges and loops.
471 \algout Minimum spanning tree~$T$.
472 \endalgo
473
474 \section{Minor-closed graph classes}
475
476 \section{Using Fibonacci heaps}
477 \secid{fibonacci}
478
479 % G has to be connected, so m=O(n)
480 % mention Steiner trees
481 % mention matroids
482 % sorted weights
483 % \O(...) as a set?
484
485 \endpart