A binary heap is a heap data structure that takes the form of a binary tree. Binary heaps are a common way of implementing priority queues. The binary heap was introduced by J. W. J. Williams in 1964, as a data structure for heapsort. A binary heap is defined as a binary tree with two additional constraints:

Property Value
dbo:abstract
• A binary heap is a heap data structure that takes the form of a binary tree. Binary heaps are a common way of implementing priority queues. The binary heap was introduced by J. W. J. Williams in 1964, as a data structure for heapsort. A binary heap is defined as a binary tree with two additional constraints: * Shape property: a binary heap is a complete binary tree; that is, all levels of the tree, except possibly the last one (deepest) are fully filled, and, if the last level of the tree is not complete, the nodes of that level are filled from left to right. * Heap property: the key stored in each node is either greater than or equal to (≥) or less than or equal to (≤) the keys in the node's children, according to some total order. Heaps where the parent key is greater than or equal to (≥) the child keys are called max-heaps; those where it is less than or equal to (≤) are called min-heaps. Efficient (logarithmic time) algorithms are known for the two operations needed to implement a priority queue on a binary heap: inserting an element, and removing the smallest or largest element from a min-heap or max-heap, respectively. Binary heaps are also commonly employed in the heapsort sorting algorithm, which is an in-place algorithm because binary heaps can be implemented as an implicit data structure, storing keys in an array and using their relative positions within that array to represent child-parent relationships. (en)
dbo:thumbnail
dbo:wikiPageID
• 69890 (xsd:integer)
dbo:wikiPageLength
• 29891 (xsd:integer)
dbo:wikiPageRevisionID
• 984689741 (xsd:integer)
dbp:deleteMinAvg
• O (en)
dbp:deleteMinWorst
• O (en)
dbp:findMinAvg
• O (en)
dbp:findMinWorst
• O (en)
dbp:insertAvg
• O (en)
dbp:insertWorst
• O (en)
dbp:inventedBy
dbp:inventedYear
• 1964 (xsd:integer)
dbp:name
• Binary heap (en)
dbp:searchAvg
• O (en)
dbp:searchWorst
• O (en)
dbp:spaceAvg
• O (en)
dbp:spaceWorst
• O (en)
dbp:type
• binary tree/heap (en)
dbp:wikiPageUsesTemplate
dct:subject
rdf:type
rdfs:comment
• A binary heap is a heap data structure that takes the form of a binary tree. Binary heaps are a common way of implementing priority queues. The binary heap was introduced by J. W. J. Williams in 1964, as a data structure for heapsort. A binary heap is defined as a binary tree with two additional constraints: (en)
rdfs:label
• Binary heap (en)
owl:sameAs
prov:wasDerivedFrom
foaf:depiction
foaf:isPrimaryTopicOf
is dbo:wikiPageRedirects of