Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Heap structure for lookup?

by RichardK (Parson)
on May 27, 2015 at 10:26 UTC ( [id://1127972]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Heap structure for lookup?
in thread Heap structure for lookup?

As you're only storing single values it shouldn't be too bad, only the balancing code gets a bit involved, when you split the current node you insert into it's parent node which may cause it to split and so on back up to the root node. It's really not that hard, once you get your head round it.

Anyway you've had 20 more years of experience since then, so you shouldn't have any problems ;)

Replies are listed 'Best First'.
Re^4: Heap structure for lookup?
by BrowserUk (Patriarch) on May 27, 2015 at 13:06 UTC
    Anyway you've had 20 more years of experience since then, so you shouldn't have any problems

    If only it worked that way. If only :)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1127972]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-25 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found