Skip to content
EntityQ1395653· pop 14· linked from 68 articles

인트로 정렬

Sign in to save

Also known as introspective sort

Introsort or introspective sort is a hybrid sorting algorithm that provides both fast average performance and (asymptotically) optimal worst-case performance. It begins with quicksort, it switches to heapsort when the recursion depth exceeds a level based on (the logarithm of) the number of elements being sorted and it switches to insertion sort when the number of elements is below some threshold. This combines the good parts of the three algorithms, with practical performance comparable to quicksort on typical data sets and worst-case O(n log n) runtime due to the heap sort. Since the three a

Key facts

Algorithm.class
Sorting algorithm
Algorithm.data
Array
Algorithm.time
O(n log n)
Algorithm.average time
O(n log n)
Algorithm.optimal
yes

via Wikipedia infobox

Wikidata facts

Show 2 more facts
time of discovery or invention
1997-00-00
Sources (1)

via Wikidata · CC0

Connections

Categories