Heap on Data Structure and Algorithms related Questions and Answers


Question :   What is the location of parent node for any arbitary node i?
1. (i/2) position
2. (i+1)/ position
3. floor(i/2) position
4. ceil(i/2) position
Answer :   3 - floor(i/2) position  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter