🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.compression.research
Article #87

Re: Fast decoders for variable-length codes

#87
From: "D. Hugh Redelmeier"
Date: Sat, 03 Oct 1992 03:10
22 lines
1319 bytes
edf@sm.luth.se (Ove Edfors) writes:
|  Is there anyone out there, who have information on fast decoders for
| variable-length codes, e.g. Huffman codes.

My program "huf" quickly decodes Huffman codes.  It can be ftped from
ftp.cs.toronto.edu:/pub/hugh/huf*.

It uses a static code table, i.e. the code is the same for an entire
file.  This allows the decoder to "leap" into the code tree based on
the first n bits by using an auxilliary table with 2^n entries.

One reason that this is effective is that huf uses words as symbols,
not ASCII characters.  Thus each symbol is represented by a larger
string of bits.

I haven't thought hard about whether this technique would work well
with an adaptive Huffman program.

Hugh Redelmeier
hugh@mimosa.com or {utcsri, yunexus, utzoo, scocan}!redvax!hugh
When all else fails: hugh@csri.toronto.edu
+1 416 482-8253
Technical Details
Message-ID: <92Oct2.231042edt.48059@neat.cs.toronto.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!neat.cs.toronto.edu!hugh
References: <1309@my.sm.luth.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!neat.cs.toronto.edu!hugh
Newsgroups: comp.compression.research
From: hugh@cs.toronto.edu ("D. Hugh Redelmeier")
Subject: Re: Fast decoders for variable-length codes
Message-ID: <92Oct2.231042edt.48059@neat.cs.toronto.edu>
Keywords: variable-length code, decoder
Organization: Department of Computer Science, University of Toronto
References: <1309@my.sm.luth.se>
Date: 3 Oct 92 03:10:52 GMT
Lines: 22