m3sh.heap#

Priority queues and heaps.

This is an alternative to Python’s heapq module. See [1] Chapter 9.3 for the array (list) based heap implementation used in this module.

References#

[1]

Robert Sedgewick: Algorithms in C, Parts 1–4. Addison-Wesley Professional, 1990.

Classes

Heap([items])

Heap data structure.