ã°ã©ãã¢ã«ãŽãªãºã Intermediate
ã¯ã©ã¹ã«ã«ã®MSTã¢ã«ãŽãªãºã
éã¿ã®æé ã§èŸºã远å ããUnion-Findã䜿çšããŠãµã€ã¯ã«ãé¿ããããšã§æå°å šåæšãæ§ç¯ãã貪欲ã¢ã«ãŽãªãºã ã§ããçãªã°ã©ãã«å¯ŸããŠæéèšç®éO(E log E)ã§å¹ççã§ãããããã¯ãŒã¯èšèšãã¯ã©ã¹ã¿ãªã³ã°ãè¿äŒŒã¢ã«ãŽãªãºã ã貪欲æ£åœæ§èšŒæã®çè§£ã«å¿çšãããŸãã
#graph#minimum-spanning-tree#greedy#union-find
Complexity Analysis
Time (Average)
O(E log E)Expected case performance
Space
O(V)Memory requirements
Time (Best)
O(E log E)Best case performance
Time (Worst)
O(E log E)Worst case performance
ð CLRS Reference
Introduction to Algorithmsâ¢Chapter 23â¢Section 23.2
Loading...
Implementation