Insertion Sort is O(n log n)

dc.creatorBender, Michael A.
dc.creatorFarach-Colton, Martin
dc.creatorMosteiro, Miguel
dc.date2004-07-01
dc.date.accessioned2026-07-07T03:21:31Z
dc.date.available2026-07-07T03:21:31Z
dc.descriptionTraditional Insertion Sort runs in O(n^2) time because each insertion takes O(n) time. When people run Insertion Sort in the physical world, they leave gaps between items to accelerate insertions. Gaps help in computers as well. This paper shows that Gapped Insertion Sort has insertion times of O(log n) with high probability, yielding a total running time of O(n log n) with high probability.
dc.description6 pages, Latex. In Proceedings of the Third International Conference on Fun With Algorithms, FUN 2004
dc.identifierhttps://arxiv.org/abs/cs/0407003
dc.identifierhttp://arxiv.org/abs/cs/0407003
dc.identifier.urihttp://salesiana.dossiersoluciones.com/handle/123456789/32226
dc.subjectData Structures and Algorithms
dc.subjectE.5; F.2.2
dc.titleInsertion Sort is O(n log n)
dc.typetext

Files

Collections