Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 809 Bytes

File metadata and controls

29 lines (24 loc) · 809 Bytes

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.