Skip to content

Implementation of Kaplan and Zwick's soft heap. Collaboration with Alex Hollender.

License

Notifications You must be signed in to change notification settings

gillosae/Soft-Heap

 
 

Repository files navigation

Soft-Heap

Implementation of Kaplan and Zwick's soft heap, produced as a collaboration with Alex Hollender for CS 166 in Spring 2016.

This soft heap implementation is a translation into C of the pseudocode in Haim Kaplan and Uri Zwick's paper A simpler implementation and analysis of Chazelle's Soft Heaps. Kaplan and Zwick's data structure is an update to Bernard Chazelle's original soft heap, which he invented in 2000 in order to derive a minimum spanning tree algorithm that has (as of 2016) the fastest asymptotic running time of any MST algorithm with known complexity. (There is another, provably optimal algorithm with unknown time complexity due to Pettie and Ramachandran.)

Our code has some bug corrections not accounted for in Kaplan and Zwick's original pseudocode, and we have included some tests to demonstrate the soft heap's performance as an approximate and exact sorter.

We wrote a paper in conjunction with this project: "Soft heaps: an intuitive overview." It's stored in this repo -- check it out for a full description of what soft heaps are and how they work.

About

Implementation of Kaplan and Zwick's soft heap. Collaboration with Alex Hollender.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.4%
  • Makefile 6.7%
  • Shell 0.9%