CISSAlgorithm origin & lineage registry

AlgorithmsSortingEdit on GitHubEdit history

Timsort

2002

An adaptive stable sort that finds already sorted segments (runs) in the input, extends them with binary insertion sort, and combines them with galloping merges.

Origin

Tim Peters (2002). listsort.txt — CPython list.sort implementation. CPython source tree.github.com/python/cpython/blob/main/Objects/listsort.txt

Lineage

Algorithms 5 · Relations 4

Parent algorithms

Where it came from
Merge Sort1945CompositionVerified95%

Author statementlistsort.txt describes run-based merging and galloping merges as its core — github.com/python/cpython/blob/main/Objects/listsort.txt

Binary Insertion Sort1946CompositionVerified95%

Author statementlistsort.txt describes extending short runs to the minimum length with binary insertion sort — github.com/python/cpython/blob/main/Objects/listsort.txt

Derived algorithms

What it led to
Powersort2018OptimizationVerified90%

Author statementCPython's listsort.txt records that Timsort's merge-ordering strategy was replaced by the powersort strategy of Munro and Wild. — github.com/python/cpython/blob/main/Objects/listsort.txt

Notable implementations

Paths checked against the GitHub default branch

Find more: GitHub · Semantic Scholar · Google Scholar · arXiv

Claims & disputes

Loading…