Skip to content

I-UseArch-Btw/Huffman-Code-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

A python program that compresses the text file in the attachment (lipsum.txt) using Huffman code.

Program includes;

Find the frequencies of letters in the text file.
Construct the Huffman tree of the characters used, according to their frequencies in the text file.
Find a code mapping (you can use dictionaries) and save that as a seperate file for decoding later (you can use JSON format for this).
Compress the text file given and print the compression ratio.
Finally your program should be able to decode the compressed file.

About

desc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages