Professional KnowledgeHardIBPS SO IT

Which of these is a self-balancing tree guaranteeing height O(log n) using colour bits?

  1. A. Plain BST
  2. B. Trie
  3. C. Heap
  4. D. Red-black tree

Correct answer: D. Red-black tree

Red-black rules bound the height to 2 log2(n+1).

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic