[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-beginners
Subject:    Re: Using Heap::Elem
From:       Ankit Singla <iitb.ankit () gmail ! com>
Date:       2009-06-30 16:52:17
Message-ID: fa8273da0906300952h49db7388r543bda8ef2d71f4c () mail ! gmail ! com
[Download RAW message or body]

Thanks Chris! These are valuable pointers - I'll try them out and let
you know how it goes.

Cheers,
Ankit
---------------------------------
Ankit Singla
Research Assistant - EPFL



2009/6/30 Chris Charley <charley@pulsenet.com>:
>
> ----- Original Message ----- From: "Ankit Singla" <iitb.ankit@gmail.com>
>
>
>> Hi,
>>
>> I'm trying to use Fibonacci heaps to keep <key, value> type of objects
>> sorted. I require the sorting to be over the key. I've only started
>> out with Perl and can't figure out how to extend the Heap::Elem class
>> to make this kind of pair objects for use with Heap::Fibonacci. I have
>> tried reading up the perldocs but it doesn't seem to be a good
>> starting point for novices like me. Can someone point me to example
>> code where I can 'watch and learn' or maybe illustrate to me with the
>> same Heap::Elem extension?
>>
>> Thanks for your help!
>>
>> Cheers,
>> Ankit
>
> Hello,
>
> Heap::Simple's docs show how to order a heap using <key, value> pairs.
>
> http://search.cpan.org/~thospel/Heap-Simple-0.13/lib/Heap/Simple.pm
>
> Don't know if this is what you want?
>
> Just a note as you say you are learning Perl. I found it difficult to know
> where
> in the perldoc to find the info I needed. I found it easier to eventually
> use them
> after reading the best source, 'Programming Perl'. It is well written and
> after reading it, I was able to use the perldocs much better.
>
> Chris
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic