Please enable JavaScript.
Coggle requires JavaScript to display documents.
M9 (Heap, Heapsort) - Coggle Diagram
M9
Heap
A heap can be defined as a binary tree with keys assigned to its nodes, one key per node, as long as the following conditions are met
Shape Property: The binary tree is complete, meaning all of its levels are full except the last one, where only some rightmost leaves may be missing
-
A heap may also be defined as an array H[1...n] in which every element in position i in the first half of the array is equal or greater than the elements in position 2i and (2i + 1)
-
Partially ordered data structure, suitable for priority queue implementation
Priority Queue
Multiset of Items with an orderable characteristic, called priority
These arise in several important algorithms, such as Dijkstra's
-
-