pqueue icon indicating copy to clipboard operation
pqueue copied to clipboard

Go implementation of priority queues.

pqueue

Build Status Coverage Status Go Report Card GoDoc License

pqueue is an open-source collection of priority queues written in Go.

Available structures

Data Structure Push Peek Pop DecreaseKey Has/Get Delete Length Clear
Fibonacci Heap O(1) O(1) O(log n)¹ O(1)¹ O(1) O(log n)¹ O(1) O(1)
¹ Amortized time.