Skip to content

fulstaph/minmaxheap-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Min-Max Heap in Rust

A min-max heap, implemented as a way to learn some Rust. Heap data must be Copy, Clone, PartialOrd.

The implementation is based on a paper by M.D Atkinson, J.-R. Sack and others, "Min-Max Heaps And Generalized Priority Queues" and on the relevant Wikipedia article.

This heap can be used as a DEPQ (Double Ended Priority Queue) implementation.

Implementation details

  • Vec<T> is used for underlying array representation.

  • A small number of tests are written and located in minmaxheap/minmaxheap_tests.rs file;

About

Min-max heap in Rust, duh.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages