Choose the correct alternatives (more than one may be correct) and write the corresponding letters only:A 2-3 tree is such thata. All internal nodes have either 2 or 3 childrenb. All paths from root to the leaves have the same length.The number of internal nodes of a 2-3 tree having 9 leaves could be
Show the worked solution\[\boxed{\text{level above } m \text{ nodes: } k \text{ nodes with } 2k\le m\le 3k}\]Nine leaves can be grouped under 3 parents \((3+3+3)\) or 4 parents \((2+2+2+3)\); 5 parents would need at least 10 leaves.3 parents: one root above them. Internal nodes \(=3+1=4\).4 parents: grouped as \(2+2\) under 2 nodes, then the root. Internal nodes \(=4+2+1=7\).So the count could be 4 or 7, never 5 or 6. (The question allows more than one correct choice.)Answer: A, D
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com