CSCI605 Week 8 Assignment 1 solution

$25.00

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (5 votes)

Your assignment is to finish implementing the Huffman encoding process to include decoding. Your solution will be called Huffman.java.

It will accept command line parameters using the following flags.

-i                          input file name

-o                         output file name

-e                         encode

-d                         decode

 

The program would then be executed as follows.

 

java Huffman -i war_and_peace.txt -o compressed_file.comp -e

 

java Huffman -i compressed_file.comp  -o war_and_peace_decoded.txt -d

 

diff war_and_peace.txt war_and_peace_decoded.txt

 

…should return no differences

 

 

Grading:
Correctness: You can lose up to 20% if your solution is not correct
Quality: You can lose up to 20% if your solution is poorly designed
Testing: You can lose up to 20% if your solution is not well tested
Explanation: You can lose up to 40% if you cannot explain your solution during the grading session