Max & Min Heap

42 views
Skip to first unread message

Hafsa Tariq

unread,
Jun 7, 2015, 3:10:37 AM6/7/15
to dsfas...@googlegroups.com



this question is solved with the max heap (inserting from left to right).

 But Is it possible to insert in minimum heap, which follow the convention inserting each entry from right to Left ? 


Hassan Mirza

unread,
Jun 7, 2015, 5:32:11 AM6/7/15
to dsfas...@googlegroups.com
there is always insertion in heap from left to right.The difference  between min heap and max heap is that , min heap have small number at parent node and max heap have large value at parent node as compare to its child nodes.

Hafsa Tariq

unread,
Jun 7, 2015, 5:41:41 AM6/7/15
to Hassan Mirza, dsfas...@googlegroups.com
Got it 
Thank you 

--
You received this message because you are subscribed to the Google Groups "DSFAST2015" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dsfast2015+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dsfast2015/dbd83335-38e0-4f4e-8e17-6d447b0d8a35%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards
Hafsa Tariq Javed
Reply all
Reply to author
Forward
0 new messages