in reply to Re^4: Re-orderable keyed access structure?
in thread Re-orderable keyed access structure?
- Iterating the heap to find the highest weight and adding one. One recursive operation that will then trigger another. (In Perl not C)
See, you didn't actually understand. Where is the element with the greatest value in a heap? Always at the root. :-)
You also didn't pay attention to my comment that a complete binary tree can be represented trivially using an array. You don't need linked lists, just index math.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Re-orderable keyed access structure?
by BrowserUk (Patriarch) on Aug 15, 2004 at 04:24 UTC | |
by Aristotle (Chancellor) on Aug 15, 2004 at 04:46 UTC | |
by tye (Sage) on Aug 15, 2004 at 05:08 UTC | |
by Aristotle (Chancellor) on Aug 15, 2004 at 06:34 UTC | |
by tye (Sage) on Aug 16, 2004 at 04:34 UTC | |
by BrowserUk (Patriarch) on Aug 15, 2004 at 13:35 UTC | |
by Aristotle (Chancellor) on Aug 15, 2004 at 19:05 UTC | |
by BrowserUk (Patriarch) on Aug 15, 2004 at 20:47 UTC | |
| |
by BrowserUk (Patriarch) on Aug 16, 2004 at 05:00 UTC |