2006
DOI: 10.1007/s00224-005-1237-z
|View full text |Cite
|
Sign up to set email alerts
|

Insertion Sort is O(n log n)

Abstract: Traditional 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.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
1
1

Citation Types

0
16
0

Year Published

2006
2006
2020
2020

Publication Types

Select...
5
3

Relationship

2
6

Authors

Journals

citations
Cited by 47 publications
(16 citation statements)
references
References 10 publications
0
16
0
Order By: Relevance
“…We also re-implemented the rebalancing algorithm of [10], marked in the graph as APMA 7 . In Figure 11a, there are only marginal differences w.r.t.…”
Section: Discussionmentioning
confidence: 99%
See 2 more Smart Citations
“…We also re-implemented the rebalancing algorithm of [10], marked in the graph as APMA 7 . In Figure 11a, there are only marginal differences w.r.t.…”
Section: Discussionmentioning
confidence: 99%
“…The memory footprint of the RMA, with the ST, is about 1.4x bigger than static dense arrays. With the UT, the difference varies, up to 2x the optimal space of dense 7 The original source code of APMA was never openly released by [10].…”
Section: Discussionmentioning
confidence: 99%
See 1 more Smart Citation
“…Improvements to algorithms taught at the undergraduate level are still being published. For example, a new sorting algorithm, the Library Sort [2], was published in 2006. Students will continue to uncover new strategies to solve classic problems, and the challenge to teachers and supporting software is responding appropriately to unique solution strategies that may originate with students.…”
Section: Discussionmentioning
confidence: 99%
“…Even simpler rebalance schemes perform well under random inserts, as shown in [7,14]. These papers show that there are O(log N) moves with high probability for random inserts, even with the most basic of rebalances: When we insert an element y after an element x, we simply push the elements to the right or left to make room for y.…”
Section: Theorem 5 ( [7 14]) For Random Inserts With High Probabilmentioning
confidence: 95%