Question: COMP 2 3 0 Advanced Computational Problem Modeling Programming Project # 5 Due Dates: Thursday 1 2 / 5 / 2 0 2 4 midnight
COMP Advanced Computational Problem Modeling
Programming Project #
Due Dates: Thursday midnight or :PM USA PST executable code
submitted through your Linux account
Friday : PM USA PST typed project writeup in PDF
submitted as a group to GradeScope proj
Code Submission Instructions: Assignmentname for this project is proj You must
use the turnin script with this name along with the class name: comp please see
the labs attached instructions for detail submitting your completed project from your
Linux account. Both team members are required to submit their identical group program
files. We will randomly choose one of them to run and grade.
Writeup Submission Instruction: Only one team member needs to submit the group
typed project writeup in PDF through GradeScope proj Must include all team
members in this group writeup submission.
General Instructions:
Create a subdirectory proj under comp if you have not done so
All programs should allow the user to run more than once until the user says she
or he is done this is a general requirement for all projects from this class.
All programs need to be written in a good style and it should be well documented
including the header comments that appear on the top of the program:
A brief summary of the program,
authors names and
last date modified
In addition, all the variable names used in programs must be meaningful these
are required for all projects from this class.
Make sure all programs are runnable in Linux machines.
points
Text CompressionDecompression
In this project, we implement a text compressor and a text decompressor using
the algorithms that have been discussed in recent class sessions. The
algorithms are relatively simple and they employ both ideal hashing and chained
hashing implementations.
Text Compression
Inputoutput: The input to the compressor is a text file and its name should be
entered by the user from keyboard, prompted by the program, and the output
is a binary coded file. The name of the input file may or may not have an
extension. Just as an example, if the input file name is inputFile then the
corresponding output file name generated automatically by the compressor
should be inputFile.zzz Similarly, if the input name is inputFile.txt then the
program should produce the output file named inputFile.txtzzz If the input file
name is entered incorrectly, your compressor should allow the user to enter a
correct one. Name the compression program Compress, so the following
command
java Compress textfilename
at the prompt should produce a compressed version of the file and it is saved
into the file textfilename.zzz This running command with an argument is
REQUIRED. After one file is compressed, the user is given the option of
compressing another file.
Dictionary: A chained hash table with a prime table size shall be used to
organize the dictionary. We assume that each code is implemented as an int
integer bits
Log File: A log file should be generated during the compression process and
it has the extension zzzlog eg inputFile.zzzlog Here is a sample log file
content:
Compression of inputFile.txt
Compressed from Kilobytes to Kilobytes
Compression took seconds
The dictionary contains total entries
The table was rehashed times
Text Decompression
Inputoutput: The input to the decompressor is a binary coded file, and the
output is the corresponding original text file. We assume that the name of
the input file contains the extension zzz the name itself may have some other
extensions If the input file name is entered incorrectly, your decompressor
should allow the user to enter a correct one. Name the decompression
program Decompress, so the following command
java Decompress textfilename.zzz
at the prompt should produce the decompressed version of the file and it is
saved into the file textfilename. This running command with an argument is
REQUIRED. After one file is decompressed the user is given the option of
decompressing another file.
Dictionary: It must be implemented as an idealperfect hash table eg one
shall not use a separate chaining hashing implantation used in compression
Log File: A log file is generated during the decompression process and it has
the extension log eg inputFile.log Here is a sample log file content:
Decompression for file inputFile.txtzzz
Decompression took seconds.
The table was doubled times.
The typed project writeup in PDF to be submitted through GradeScope should
contain the following in order and each of them should begin with a new page
Cover page course name, term, project info, your names, instructor name,
date, etc.
Assertion statement about the project completeness, correctness and
punctuality
Summary of the projects
Sample runs produced by the script command in Linux
Source code it must be well documented
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
