Skip to content

Implementation of a self-balancing binary search tree.

Notifications You must be signed in to change notification settings

framdani/red-black-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

red_black_tree

This is an implementation of a red black tree which is a self-balancing binary search tree.

After each insert/delete operation, There are specific rules that must be respected to enforce the balance. If they have been violated, they must be restored by recoloring and rotations.

Red-Black tree Properties

  • Each node is either black or red.

  • The root is always black.

  • A red node must not have red children.

  • All paths from a node to the leaves contain the same number of black nodes.

About

Implementation of a self-balancing binary search tree.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages