×

Library sort

Sorting algorithm
Library sort or gapped insertion sort is a sorting algorithm that uses an insertion sort, but with gaps in the array to accelerate subsequent insertions. Wikipedia
Worst-case complexity: n^2
Data structure: Array