Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Huffman encoder

by japhy (Canon)
on Feb 20, 2001 at 22:29 UTC ( #59729=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    map{$0{$_}++}split//,$_=<>;
    @0=map{[$_,$0{$_},$_]}keys%0;
    
  2. or download this
    map$0{$_}++,split//,$_=<>;
    @0=map[$_,$0{$_},$_],keys%0;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (19)
As of 2015-08-28 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (337 votes), past polls