出典:Wiktionary
出典:『Wiktionary』 (2026/08/19 03:49 UTC 版)
By analogy with a librarian who leaves gaps between books so that inserting a new book does not require moving so many of the existing books.
library sort (plural library sorts)
出典:Wikipedia
出典:『Wikipedia』 (2011/05/18 10:03 UTC 版)
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. The name comes from an analogy: