Skip to content

yutao-li/libheap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

libheap

here is an implementation of a general heap library, including trivial heap and indexed heap, which not only supports the usual push , pop, peek operations, but also heapification, key modification, key deletion and self-defined comparator.

Indexheap is a significant heap structure which stores and sorts (index,key) pairs according to their key, it is essential in efficient implementation of Dijkstra's algorithm, Prim's algorithm and other variants.

Meanwhile, it also includes implementation of Disjoint set.

Acknowledgement

this library is coded by reference to algs4. Much appreciation!

Documentation

to be completed

Installation

method 1: pip install --user libheap
method 2: download this project, and run "python setup.py install"
method 3: install anaconda, and run "conda install -c a870070392 libheap"
only support python3