1.

LLRB maintains 1-1 correspondence with 2–3 trees.(a) True(b) FalseThis is a very interesting question from B-Trees topic in section B-Trees of Data Structures & Algorithms IThe question was posed to me during an online exam.

Answer»

Right OPTION is (a) True

Easiest EXPLANATION - LLRB (LEFT Leaning Red Black tree)is the data STRUCTURE which is used to implement the 2-3 tree with very BASIC code. The LLRB is like the 2-3 tree where each node has one key and two links. In LLRB the 3-node is implemented as two 2-nodes connected by the red link that leans left. Thus, LLRB maintains 1-1correspondence with 2–3 tree.



Discussion

No Comment Found

Related InterviewSolutions