https://github.com/mtchavez/huffman-encode
https://github.com/mtchavez/huffman-encode
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mtchavez/huffman-encode
- Owner: mtchavez
- Created: 2012-12-08T23:31:36.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-09T01:29:00.000Z (over 12 years ago)
- Last Synced: 2025-02-04T15:32:44.771Z (4 months ago)
- Language: Ruby
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### huffman-encode
Hufffman encoding example using ruby
[](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.