/Huffman-Coding

A Huffman coding implementation in Java

Primary LanguageJava

Huffman-Coding

Introduction

A Huffman coding implementation in Java . You will find in this project :

  • Huffman tree implemented
  • Coding file
  • Decoding file

Techniques used

  • Greedy Algorithms
  • TreeMap
  • PriorityQueue (Min Heap)
  • Nested Class
  • Recursion (dfs)

How to test

1. Coding file

$ java huffmancoding -huff -c  $INPUT_FILE_PATH

2. Decoding file

$ java huffmancoding -huff -d  $INPUT_FILE_PATH