Open
Description
There are a couple of enhancements that may make heaps in this package more useful:
- Allow the user to specify an
Ordering
(as is used by theSort
machinery inBase
). - Make key-value pair storage possible/easy
The second proposal could be made possible by a specific Ordering
, but would be more efficient if it were coded for in the data structure.
It may make sense to code these as separate data structures (I haven't looked at the code), implementing the AbstractHeap
interface if that makes sense.
Activity