Merge Sort
A stable divide-and-conquer algorithm with consistent performance: split the array until indivisible, then merge back while sorting.
01 Explore How It Works
Interactive Step-by-Step병합 정렬을 시작합니다. 배열을 더 이상 나눌 수 없을 때까지 절반으로 나눕니다.
02 Understand It Simply
For EveryoneKeep halving, then zip the sorted pieces back together.
Splits the array in halves, sorts each, and merges two sorted pieces in order.
Always O(n log n) and stable.
- –Sorting that needs stability
- –external sorting of large files
03 Python Implementation
A clean, readable reference implementation of the core logic of Merge Sort.
04 Frequently Asked Questions
FAQWhat is Merge Sort?+
A stable divide-and-conquer algorithm with consistent performance: split the array until indivisible, then merge back while sorting.
What is the time complexity of Merge Sort?+
The time complexity of Merge Sort is O(n log n). Follow the step-by-step visualization to see exactly why.
Where is Merge Sort used?+
Sorting that needs stability, external sorting of large files.
What's a simple analogy for Merge Sort?+
Keep halving, then zip the sorted pieces back together.
