Sail E0 Webinar
Question
What is the location of parent node for any arbitary node i?
Options:
A .  (i/2) position
B .  (i+1)/ position
C .  floor(i/2) position
D .  ceil(i/2) position
Answer: Option C


For any node child nodes are located at either 2*i , 2*i +1 So the parent node could be found by taking the floor of the half of child node.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers