A recursive, divide-and-conquer sorting algorithm.

Time complexity

Worst-case performance:

Abstract

Merge sort operates by recursively splitting the list into half until it is divided into the smallest possible unit, then merging them back together from the ground up through comparison.

Implementation