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