Topic: Data Structures / Trees
In a Red-Black Tree, what is the theoretical MAXIMUM possible height of a tree containing N internal nodes?
- A. 1.44 log 2(N+1)
- B. 2 log 2(N+1)
- C. log 2(N+1)
- D. 3 log 2(N+1)
Answer: B. 2 log 2(N+1)
Explanation: A Red-Black tree with $N$ internal nodes has a maximum theoretical height of $h \le 2 \log_2(N+1)$. This is because every red node must have black children, meaning the longest path from the root to a leaf (alternating red and black) can be at most twice as long as the shortest path (which is all black).