Skip to content

JaredPC/Huffman.c

Repository files navigation

Huffman.c
Jared Peter-Contesse ([email protected])

This is an example of an implementation of the huffman coding algorithm
to compress/decompress files. The algorithm finds the optimal binary
replacement of each charater in a file using a table of frequency counts
and huffman tree. This code sample can both encode and decode files.

usage: hencode [infile] [outfile]
	infile: The name of the file that will be compressed
	outfile: The name of the compressed file that will be created

usage: hdecode [infile] [outfile]
	infile: The name of the compressed huffman file
	outfile: The name of the decompressed file that will be created

About

Huffman encoder/decoder in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published