AlgorithmsSortingEdit on GitHubEdit history
Insertion Sort
Year unknown
A sort that inserts elements one at a time into the sorted prefix. It is fast on nearly sorted input and serves as the small-subarray stage of many hybrid sorts.
Origin
A folklore algorithm whose original inventor isn’t documented. If you know of evidence, let us know. Claim
Lineage
Derived algorithms
Reference workReplaces only the insertion-point search with binary search; described in Knuth TAOCP Vol.3 §5.2.1
Author statementShell presented it as a diminishing-increment method that performs insertion sort for each gap — doi:10.1145/368370.368387
Author statementThe paper shows that insertion sort with gaps left in the array (gapped insertion sort) runs in O(n log n) with high probability. — arxiv.org/abs/cs/0407003
Notable implementations
No implementations registered yet. Try a repo scan to find some. Repo scan
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…