Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
we know tht heap is a specialized tree-based data structure.I wish to know the answer for this qn.Let A and B be the nodes of a heap such tht B is a child of A.Heap must then satisfy the following condition.(heap property) key(A)>=key(B)
a)How many different heaps are there containing the three keys 1,2 & 3?
b)which positions cud be occupied by the 3rd largest key in a heap with 32 keys ?(where the root is counted as depth 0)
c)which positions cud be occupied by the 3rd smallest key in the heap with 32 keys??
plz help me in answering this by explanation.