Skip to content

An extremely well tested and commented red black tree implementation. Worth a look if you are studying the material.

Notifications You must be signed in to change notification settings

stanislavkozlovski/Red-Black-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Red-Black-Tree

An extremely well tested and commented classic red black tree implementation. Worth a look if you are studying the material. Supports

  • addition
  • deletion

Currently implemented in Python and Ruby

These implementations can be found in my data structures repository. The reason I created a separate repository for the tree is to enable people to find this easily. I personally searched a lot through GitHub while learning about RB trees and did not manage to find code that was well commented and well tested. I've tried to heavily describe each rotation and with 2000 lines of tests, I think it's descriptive enough

Note

Does not support duplicate values

TODOs

  • Rewrite tests for Ruby
  • Write extra methods, like ceiling() and floor()

About

An extremely well tested and commented red black tree implementation. Worth a look if you are studying the material.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published