Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > Re: Pure heap d...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 2799 of 2841
Post > Topic >>

Re: Pure heap data structure with efficient decreaseKey

by Ben Franksen <ben.franksen@[EMAIL PROTECTED] > Mar 31, 2008 at 10:07 PM

dbueno wrote:
> On Mar 14, 10:06 pm, Ben Franksen <ben.frank...@[EMAIL PROTECTED]
> wrote:
>> It could be (but I haven't investigated) whether the much simpler
>> implementation described
>> inhttp://www.soi.city.ac.uk/~ross/papers/FingerTree.htmlcan
be used as
>> well.
> 
> Indeed, the paper describing that implementation shows how one can
> implement a priority queue, and gives enough detail for implementing
> decreaseKey.  I was able to implement one pretty quickly, but found it
> to be (too) slow (for my expectations).  It is not unlikely that I did
> something stupid, so I will be investigating.

Depending on which programming language you are using, it might be helpful
to know that an implementation of general purpose (annotated)
2-3-fingertrees is already available for Haskell, see
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/fingertree-0.0.


In case you are using a strict language, remember that the (amortized)
efficiency of this data structure crucially depends on lazyness (in
certain
places, the paper explains where, but you might have skipped the relevant
parts on first reading); you would have to code this lazyness explicitly.

Cheers
Ben




 5 Posts in Topic:
Pure heap data structure with efficient decreaseKey
dbueno <dbueno@[EMAIL   2008-03-14 10:46:45 
Re: Pure heap data structure with efficient decreaseKey
Ben Franksen <ben.fran  2008-03-15 03:06:29 
Re: Pure heap data structure with efficient decreaseKey
dbueno <dbueno@[EMAIL   2008-03-22 11:03:21 
Re: Pure heap data structure with efficient decreaseKey
dbueno <dbueno@[EMAIL   2008-03-22 11:03:29 
Re: Pure heap data structure with efficient decreaseKey
Ben Franksen <ben.fran  2008-03-31 22:07:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:18:57 CDT 2008.