red-black 0.1.0

A memory efficient inplementation of red-black tree
Documentation
  • Coverage
  • 0%
    0 out of 30 items documented0 out of 25 items with examples
  • Size
  • Source code size: 40.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.71 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thirstycrow

Red-Black Tree

The purpose of this library is to provide an algorithm framework that allows users to create memory efficient red-black tree.

The algorithm is implemented on top of the Node and NodePtr traits, instead of concrete structs. Users can define their own memory layout with techniques such as bit field or shorter memory address to reduce the per node memory footprint. Parent pointers are not necessary in this implementation to reduce memory consumption. Instead, a temporary tree which keeps the parent relationship is maintained on the call stack while traversing the tree nodes. As a result, this is not an in-place implementation.