[ 原始碼: libheap-perl ]
套件:libheap-perl(0.80-3)
Perl extensions for keeping data partially sorted
The Heap collection of modules provide routines that manage a heap of elements. A heap is a partially sorted structure that is always able to easily extract the smallest of the elements in the structure (or the largest if a reversed compare routine is provided).
If the collection of elements is changing dynamically, the heap has less overhead than keeping the collection fully sorted.