Merge Sorting Algorithm

Merge Sorting Algorithm Visually

A divide-and-conquer algorithm that divides the array into halves, recursively sorts them, and then merges the sorted halves.

Sorting Algorithm Divide & Conquer Time Complexity O(n log n) Space Complexity O(n) Stable Algorithm
Merge Sort Controls
Merges: 0
Comparisons: 0
Steps: 0

Algorithm Status

Ready
Progress 0%

Array Visualization

About Merge Sort

Merge sort is an efficient, stable, divide-and-conquer sorting algorithm that works by recursively dividing the array into two halves, sorting each half, and then merging the sorted halves back together. It guarantees O(n log n) time complexity in all cases, making it one of the most reliable sorting algorithms for large datasets.

Time Complexity
O(n log n)
All Cases
Space Complexity
O(n)
Auxiliary

Execution Log

Operation Log
Merge sort visualization initialized
Enter array values and click Initialize to begin