GATEverse
← GATE CSE 2006

Q13

MCQ1 mark, −0.25

A scheme for storing binary trees in an array XX is as follows. Indexing of XX starts at 11 instead of 00. the root is stored at X[1]X[1]. For a node stored at X[i]X[i], the left child, if any, is stored in X[2i]X[2i] and the right child, if any, in X[2i+1]X[2i+1]. To be able to store any binary tree on n vertices the minimum size of XX should be

Sign in to save attempts.

Loading…