Binary min-heap with index lookups. More...
#include <heap_indexed.h>
Binary min-heap with index lookups.
The HeapIndexed class implements a binary min-heap with index lookups. Elements are identified with an index value (e.g. [0,num_vertices)). The heap also maintains a vector backing, wich each element at a particular location.
KeyType: e.g. double
for example: backing: [ (??,?), (0.3,3), (0.5,7), (0.7,2), (0.6,1) ] locs: [0, 4, 3, 1, 0, 0, 0, 2]