Mathematische AlgorithmenBeginner
Euklidischer Algorithmus (GGT)
Antiker Algorithmus aus etwa 300 v. Chr., der effizient den grossten gemeinsamen Teiler zweier ganzer Zahlen berechnet. Basiert auf dem Prinzip, dass GGT(a, b) = GGT(b, a mod b). Einer der altesten kontinuierlich verwendeten Algorithmen, der die Grundlage der Zahlentheorie, Kryptographie und Bruchvereinfachung bildet.
#mathematical#number-theory#ancient-algorithm#gcd-lcm
Complexity Analysis
Time (Average)
O(log min(a, b))Expected case performance
Space
O(1)Memory requirements
Time (Best)
O(log min(a, b))Best case performance
Time (Worst)
O(log min(a, b))Worst case performance
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