What is the location of a parent node for any arbitary node i?

Question:What is the location of a 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


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!