Gate CS-2006 Question Paper With Solutions

Q. 5 A scheme for storing binary trees in an array X is as follows. Indexing of X starts at 1 instead of 0. The roots is stored at X[1]. For a node stored at X[1], the left child, if any, is stored in X[2i] and the right child, if any, in X[2i + 1]. To be able to store any binary tree on n vertices, the minimum size of X should be Gate CS-2006 Question Paper With Solutions   Answer: (D)

Explanation:

Gate CS-2006 Question Paper With Solutions

Learn More:   Gate ME-2016-1 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here