Skip to content

About

Huffman Encoding in ruby for shits and giggles

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Huffman Encoding in Ruby

    require 'huffman.rb'

    puts encoding = "Hello Huff".huffman

1101010000100010110011111111

    encoding.lookup.each do |code, char|
      puts "#{code} : #{char}"
    end

00 : l 010 :
110 : H 011 : u 111 : f 100 : o 101 : e

Unit tests coming soon...

About

Huffman Encoding in ruby for shits and giggles

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages