@ankit: you are right. While building is okay (item to insert is from other array, hence comparison to that allowed), deletemin() will violate the condition given.
-- On Wed, Jul 27, 2011 at 2:03 PM, ankit sambyal <ankitsamb...@gmail.com>wrote: > @anand: How are you building minheap ?? Comparison of same array elements > is not allowed !!!!! > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.