GraphalgorithmenAdvanced
Kruskals Algorithmus
Findet den minimalen Spannbaum (MST) eines gewichteten ungerichteten Graphen. Verwendet einen Greedy-Ansatz durch Sortieren der Kanten nach Gewicht und Hinzufugen, wenn sie keinen Zyklus erzeugen. Verwendet Union-Find fur effiziente Zykluserkennung. Wesentlich fur Netzwerkdesign und Clustering.
#graph#mst#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
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