Skip to content
Heapsort

File:Sorting_heapsort_anim.gif · Wikimedia Commons · See Wikimedia Commons

EntityQ474095· pop 39· linked from 98 articles

Sortierverfahren

Key facts

Algorithm.caption
A run of heapsort sorting an array of randomly permuted values. In the first stage of the algorithm the array elements are reordered to satisfy the heap property. Before the actual sorting takes place, the heap tree structure is shown briefly for illustration.
Algorithm.data
Array
Algorithm.time
O(n\log n)
Algorithm.average time
O(n\log n)
Algorithm.best time
O(n\log n) (distinct keys)or O(n) (equal keys)
Algorithm.space
O(n) total O(1) auxiliary
Algorithm.class
Sorting algorithm
Algorithm.image
File:Sorting heapsort anim.gif

via Wikipedia infobox

Wikidata facts

Instance of
comparison sort
Image
Binary heap bottomup vs topdown.svg
Show 5 more facts
maintained by WikiProject
WikiProject Mathematics
derivative work
smoothsort
time of discovery or invention
1964-00-00
Commons category
Heap sort
Sources (2)

via Wikidata · CC0

Article · Deutsch

Heapsort („Haldensortierung“) ist ein in den 1960ern von Robert W. Floyd und entwickeltes Sortierverfahren. Seine Komplexität ist bei einem Array der Länge in der Landau-Notation ausgedrückt in und ist damit asymptotisch optimal für Sortieren per Vergleich. Heapsort arbeitet zwar in-place, ist jedoch nicht stabil. Der Heapsort-Algorithmus verwendet einen binären Heap als zentrale Datenstruktur. Heapsort kann als eine Verbesserung von Selectionsort verstanden werden und ist mit Treesort verwandt.

Abstract from DBpedia / Wikipedia · CC BY-SA

Gallery (9)