Fundamentals of Red-Black Trees
Learn subroutines of red-black trees and their relation with 2-4 trees.
Red-Black trees and 2-4 trees
At first it might seem surprising that a red-black tree can be efficiently updated to maintain the black-height and no-red-edge properties, and it seems unusual to even consider these as useful properties. However, red-black trees were designed to be an efficient simulation of – trees as binary trees.
Refer to the below figure.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy