A Binary Search Tree (BST) is a tree in which every node has two children (left & right), and every node’s left child is smaller than the node while every node’s right child is larger than the node. Let’s take a look at the following example of a BST.
A red-black tree is a kind of self-balancing
There are some distinctive properties of a red-black tree:
NULL
pointer (missing child) is considered black.Below is a red-black tree.
RELATED TAGS
CONTRIBUTOR
View all Courses