Running Time

Now, CONNECTED is constant time and we repeat it |E| times.

JOIN is repeated |V|-1 times and can take up to |V|/2 time.

Too loose!

Thus, tex2html_wrap_inline229 for all calls to JOIN.

Total: SORT plus JOIN is tex2html_wrap_inline231 .


next up previous
Next: FAST UNION-FIND Up: KRUSKAL'S ALGORITHM Previous: Implementation