ãœãŒãã¢ã«ãŽãªãºã Intermediate
ããŒãžãœãŒã
é åãååã«åå²ããåååãååž°çã«ãœãŒãããŠããçµåããåå²çµ±æ²»ã¢ã«ãŽãªãºã ã§ããO(n log n)ã®æéãä¿èšŒããå®å®ã§ããã远å ã¡ã¢ãªãå¿ èŠã§ããå€§èŠæš¡ãªããŒã¿ã»ãããé£çµãªã¹ãã®ãœãŒãã«ç¹ã«å¹æçã§ãã
#sorting#divide-and-conquer#stable
Complexity Analysis
Time (Average)
O(n log n)Expected case performance
Space
O(n)Memory requirements
Time (Best)
O(n log n)Best case performance
Time (Worst)
O(n log n)Worst case performance
ð CLRS Reference
Introduction to Algorithmsâ¢Chapter 2â¢Section 2.3
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