Professional KnowledgeHardIBPS SO IT
Which of these is a self-balancing tree guaranteeing height O(log n) using colour bits?
- A. Plain BST
- B. Trie
- C. Heap
- D. Red-black tree
Correct answer: D. Red-black tree
Red-black rules bound the height to 2 log2(n+1).
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- Insert keys 12, 22, 32, 42 into a hash table of size 10 with h(k) = k mod 10 and linear probing. Position of 42 is:
- Time complexity of finding the k-th smallest element in an unsorted array in the worst case using median-of-medians is:
- Recurrence T(n) = 3T(n/2) + n solves to:
- Which sorting algorithm has O(n log n) worst case and is not stable?
- Which algorithm design technique does Dijkstra's single-source shortest path use?
- Floyd-Warshall algorithm complexity for V vertices is: