mergesort

Recursive halving method

Mergesort is a sorting algorithm that works by repeatedly dividing a list in half until each piece contains one element, then merging the pieces back together in sorted order.

It's efficient and predictable—always taking the same time regardless of how the input is arranged—but requires extra memory for the merging step.

Mergesort guarantees O(n log n) performance.

algorithm

recursion

Process invoking itself

subproblem · worst-case

divide

split

Separation into parts

bisect · decomposition · subarray · sublist · midpoint · index · depth · branching

merge

combine

Merge, or harvesting machine

reunification

stability

key-value

Data pair structure

Opposites
sorting algorithm characteristics

mergesortquicksort

Recursive partitioning sort method

algorithmic paradigm

mergesortbottom-up approach

Strategy beginning at base

Family

sort, merge, assortment, sorted, sorting, merger, emergent, sorter, unsorted

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Rated G