Nitobi
About Nitobi
Services
Products
Home -> Blogs -> Alexei@Nitobi

Alexei@Nitobi

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.

2 Responses to “Huffman encoding (compression) in Ruby”

  1. proj Says:

    Darn! I thought you might do a version in JavaScript ;)

  2. Alexei Says:

    Check my next post :)

Leave a Reply


Search Posts

Pages

Archives

Categories

LinkedIn Profile

  • My Profile

www.flickr.com


My ideal work culture:
[See my summary] [What’s yours?]


All contents are (c) Copyright 2024, Nitobi Software Inc. All rights Reserved
Alexei@Nitobi Entries (RSS) and Comments (RSS).