8000 GitHub - russell-t/huffman
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

russell-t/huffman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

What this code will do

This code takes an ASCI .txt file as an input. A histogram of characters is generated which is used as the input to create a min heap priority queue with priority equal to character frequency. Nodes are popped off the queue according to the Huffman coding algorithm to create a Huffman tree. This tree is traversed to generate codewords for each character that was found in the ASCI .txt file. The .txt file is encoded using these codewords, with the Huffman tree encoded in the file as a header. A decoder program can then reconstruct the original .txt from the compressed binary file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0