Weak heap
Appearance
An editor has nominated this article for deletion. You are welcome to participate in the deletion discussion, which will decide whether or not to retain it. |
A weak heap is a sub-form of a heap data structure. It is a relaxed heap satisfying the following three conditions:
- every key in the right subtree of a node is greater than the key stored in the node itself,
- the root has no left child
- leaves are only found on the last two levels of the tree.[1]
It's form supports finding the minimum value in it with worst-case time.
It is also useful for insert and delete-min or delete and decrease , with a worst-case time of .
References
- ^ Stefan Edelkamp, "weak-heap", in Dictionary of Algorithms and Data Structures [online], Vreda Pieterse and Paul E. Black, eds. 26 May 2011. (accessed TODAY) Available from: http://www.nist.gov/dads/HTML/weakheap.html