Computer science Algorithms as mathematical objects Concept
Insertion sort
Summary
Insertion sort is a simple sorting algorithm that builds the sorted list one element at a time.
It inserts each new element into its place among the elements already sorted.
It uses comparisons in the worst case but only on a sorted list.
So it is fast on short or nearly sorted lists.
It is stable and needs only a constant amount of extra memory.
Mathlib formalizes it as List.insertionSort.
Further reading
About this page
| Tag | XA3JEEDC59 |
|---|---|
| URI | m2://XA3JEEDC59 |
| Kind | concept |
| Writing | W0 stub |
| MSC | 68P10, 68W40 |
| Specializes | Sorting algorithm |
| Same as | |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.