Merge Sort

Overview

Mergesort recursively calls itself on the halves of an array, bottoming out at an array with 1 element. It then calls a merging algorithm on the two sorted halves.

Property Value
Best Case Ω(nlgn)
Worst Case O(nlgn)
Avg. Case O(nlgn)
Aux. Memory O(n)
Stable -
Adaptive -
Visualization merge-sort.gif
Powered by Forestry.md