5 releases

Uses old Rust 2015

0.0.5 Jan 5, 2016
0.0.4 May 2, 2015
0.0.3 Mar 26, 2015
0.0.2 Mar 18, 2015
0.0.1 Mar 18, 2015

#8 in #comparator


Used in pop-trait

MIT/Apache

23KB
411 lines

A double-ended priority queue implemented with an interval heap.

Documentation is available at https://contain-rs.github.io/interval-heap/interval_heap.


lib.rs:

A double-ended priority queue implemented with an interval heap.

An IntervalHeap can be used wherever a BinaryHeap can, but has the ability to efficiently access the heap's smallest item and accepts custom comparators. If you only need access to either the smallest item or the greatest item, BinaryHeap is more efficient.

Insertion has amortized O(log n) time complexity. Popping the smallest or greatest item is O(log n). Retrieving the smallest or greatest item is O(1).

Dependencies

~20KB