Skip to content

rachu033/Huffman-coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Huffman Coding

Overview

This project implements Huffman coding for file compression and decompression.

Usage

1. Compilation

To use this program, first compile the source files:

gcc -o coding coding.c
gcc -o decoding decoding.c

2. Encoding a File

Run the coding program with the filename you want to encode as an argument:

./coding fileToCode.txt

This will generate output files that help illustrate the Huffman coding process.

3. Decoding a File

Run the decoding program with the encoded filename as an argument:

./decoding encodedFile

Additional Information

  • The encoding process creates auxiliary files that demonstrate the Huffman coding steps.
  • For decoding, only files with the extensions .codeTable, .huffman, and .bytes are required.

About

Huffman coding algorithm implemented in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages