Huffman encoding (compression) in Ruby 
January 9th, 2008
I stumbled onto a really interesting proof of concept today for doing Huffman-style tree compression in Ruby. The other popular symmetrical (ie: lossless) compression schemes being LZ77 (think: gZIP), and of course RLE (run length encoding.. think: GIF, PCX) Check out Building Huffman Compression in Ruby.
This may be somewhat academic because it’s worth noting that the core Ruby classes often include Zlib as part of their base compilation giving developers access to high-speed, robust gZip LZ77 compression out-of-the-box.
I’m going to do another post tomorrow on the theme of compression.
|
Del.icio.us
This entry was posted on Wednesday, January 9th, 2008 at 9:27 pm and is filed under web development, resources, rubyonrails. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

January 11th, 2008 at 4:37 pm
Darn! I thought you might do a version in JavaScript
January 11th, 2008 at 4:53 pm
Check my next post