Top 0.4% dependent packages on proxy.golang.org
Top 0.5% dependent repos on proxy.golang.org
Top 0.4% docker downloads on proxy.golang.org
proxy.golang.org : github.com/aalpar/deheap
Package deheap provides the implementation of a doubly ended heap. Doubly ended heaps are heaps with two sides, a min side and a max side. Like normal single-sided heaps, elements can be pushed onto and pulled off of a deheap. deheaps have an additional Pop function, PopMax, that returns elements from the opposite side of the ordering. This implementation has emphasized compatibility with existing libraries in the sort and heap packages. Performace of the deheap functions should be very close to the performance of the functions of the heap library This example inserts several ints into an IntHeap, checks the minimum, and removes them in order of priority.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/aalpar/deheap
Keywords:
double-ended-queue
, golang
, heap
, heaps
, min-max-heap
, priority-queue
License: MIT
Latest release: over 3 years ago
First release: about 5 years ago
Namespace: github.com/aalpar
Dependent packages: 121
Dependent repositories: 174
Stars: 13 on GitHub
Forks: 2 on GitHub
Docker dependents: 521
Docker downloads: 16,001,191
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago