κ·Έλν μκ³ λ¦¬μ¦Intermediate
νλ¦Ό μκ³ λ¦¬μ¦
μμ μ μ μμ νΈλ¦¬λ₯Ό μ±μ₯μμΌ μ΅μ μ μ₯ νΈλ¦¬(MST)λ₯Ό μ°Ύλ μκ³ λ¦¬μ¦μ λλ€. νμ νΈλ¦¬ λ΄λΆ μ μ κ³Ό μΈλΆ μ μ μ μ°κ²°νλ μ΅μ κ°μ€μΉ κ°μ μ μΆκ°ν©λλ€. ν¨μ¨μ μΈ κ°μ μ νμ μν΄ μ°μ μμ νλ₯Ό μ¬μ©ν©λλ€. λ°μ§ κ·Έλνμ μ΄μμ μ λλ€.
#graph#mst#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
Presets:
Step: 1 / 0
500ms
SlowFast
Keyboard Shortcuts
Space Play/Pauseβ β StepR Reset1-4 Speed
Real-time Statistics
Algorithm Performance Metrics
Progress0%
Comparisons
0
Swaps
0
Array Accesses
0
Steps
1/ 0
Algorithm Visualization
Step 1 of 0
Initialize array to begin
Default
Comparing
Swapped
Sorted
Code Execution
Currently executing
Previously executed
Implementation