56282db30a
This commit introduces PriorityQueue, which is a general, heap based priority queue, and PriorityQueueItem which is an interface that concrete priority queue items must implement. This implementation is encapsulated, users do not need to use any other package for full functionality. PriorityQueue exports the usual public methids: Push, Pop, Top, Empty and Len. For full documentaton consult the priority_queue.go, for usage: priority_queue_test.go |
||
---|---|---|
.. | ||
gc_queue_test.go | ||
gc_queue.go | ||
go.mod | ||
go.sum | ||
priority_queue_test.go | ||
priority_queue.go | ||
queue_test.go | ||
queue.go |