Addressable heap
In computer science, an addressable heap is an abstract data type. Specifically, it is a mergeable heap supporting access to the elements of the heap via handles (also called references). It allows the key of the element referenced by a particular handle to be removed or decreased.
Definition
An addressable heap supports the following operations:[1]
Make-Heap()
, creating an empty heap.Insert(H,x)
, inserting an elementx
into the heapH
, and returning a handle to it.Min(H)
, returning a handle to the minimum element, orNil
if no such element exists.Extract-Min(H)
, extracting and returning a handle to the minimum element, orNil
if no such element exists.Remove(h)
, removing the element referenced byh
(from its respective heap).Decrease-Key(h,k)
, decreasing the key of the element referenced byh
tok
; illegal ifk
is larger than the key referenced byh
.Merge(H1,H2)
, combining the elements ofH1
andH2
.
Examples
Examples of addressable heaps include:
A more complete list with performance comparisons can be found here.
gollark: Even if it doesn't increase the bandwidth, it does at least sound like it'd save you from manually moving them around between NICs.
gollark: Is there some way you can, I don't know, split traffic between ports automatically?
gollark: I don't know about Windows, but I had LVM/LUKS set up for a while for Linux.
gollark: You can use SATA HDDs, those are probably cheapest.
gollark: Is SAS actually better than SATA?
References
- Mehlhorn, Kurt; Sanders, Peter (2008). Algorithms and Data Structures: The Basic Toolbox (PDF). Springer. ISBN 978-3-540-77977-3.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.