Skip to main content
Stepwise
/Data Structures/Red-Black Tree
1 / 7
Speed
ENES
/
Big O NotationRecursionTwo PointersSliding WindowSpace ComplexityWorst-case AnalysisMemoizationGreedy vs DP
StackQueueLinked ListHash TableBinary Search TreeHeapUnion-Find / Disjoint SetsRed-Black Tree
Bubble SortSelection SortInsertion SortQuick SortMerge SortHeap SortCounting SortRadix SortShell SortBucket Sort
Binary SearchLinear SearchJump SearchInterpolation SearchQuickselect / Median Finding
Breadth-First SearchDepth-First SearchDijkstra's AlgorithmPrim's AlgorithmKruskal's MSTTopological Sort
Fibonacci DPKnapsack 0/1Longest Common Subsequence
N-Queens ProblemSudoku SolverMaze Pathfinding
Tower of Hanoi
Sieve of Eratosthenes
45 algorithms·by Sai Rithwik Kukunuri

Red-Black Tree — Data Structures

Red-Black Tree
insert(10): root is always black
10
red blackroot and NIL leaves are black
Step 1:Insert 10. A Red-Black Tree always forces the root to black.
Variables
root==10
color==black