Skip to content

Files

Latest commit

907108e · Sep 21, 2024

History

History
32 lines (16 loc) · 836 Bytes

README.md

File metadata and controls

32 lines (16 loc) · 836 Bytes

Text Compression

Text Compression using Huffman encoding, in huffman encoding we use binary tree to store nodes which represent characters. Each character is assigned a binary code on the basis on how frequently it occurs in the given file.

Priority Queue is used for assigning value for each character.

Hufffman Encoding is variable length encoding scheme.

Build

make

Compression

./compression input_file compressed_file

Decompression

./decompression compressed_file output_file

Future Scope

  • Adding command line utility instead of passing to the source file

  • Adding Support for text file compression and decompression where you can specify the files

  • Adding complete ascii support

  • Adding UTF-8 support

  • Adding utility to get compression ratio for particular file