An open API service indexing awesome lists of open source software.

https://github.com/mtchavez/huffman-encode


https://github.com/mtchavez/huffman-encode

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

### huffman-encode
Hufffman encoding example using ruby
[![endorse](http://api.coderwall.com/mtchavez/endorsecount.png)](http://coderwall.com/mtchavez)

### Example
Example script bin/huffman.rb encodes sample.html and shows breakdown of bytes before and after with
percentage of encoding.

ruby bin/huffman.rb
# => original 22485 bytes, huffman encoded: 17122.625 bytes, ratio: 76.15%

### Specs
Run ```rake``` for specs.