Re: Safely move an element into a heap

2008-09-04 Thread castironpi
On Sep 4, 6:57 am, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > On 4 Set, 13:49, Alexandru Palade <[EMAIL PROTECTED]> > wrote: > > > > > I'm not sure what you expect as an answer, but if you mean the heap as > > in the data structure, you can not just arbitrarily move one key where > > you want

Re: Safely move an element into a heap

2008-09-04 Thread Giampaolo Rodola'
On 4 Set, 13:49, Alexandru Palade <[EMAIL PROTECTED]> wrote: > I'm not sure what you expect as an answer, but if you mean the heap as > in the data structure, you can not just arbitrarily move one key where > you want as it will destroy the heap property. > > > > Giampaolo Rodola' wrote: > > Hi, >

Re: Safely move an element into a heap

2008-09-04 Thread Alexandru Palade
I'm not sure what you expect as an answer, but if you mean the heap as in the data structure, you can not just arbitrarily move one key where you want as it will destroy the heap property. Giampaolo Rodola' wrote: Hi, I wanted to know if does exist a safe way to, given a heap, move an arbitra