Question
The test file EE6743_grail_testfile.txt is the script from the movie Monty Python and the Holy Grail. It has been modified so that it contains only
The test file EE6743_grail_testfile.txt is the script from the movie Monty Python and the Holy Grail. It has been modified so that it contains only 30 different characters:
lowercase a-z (ascii 9710-12210),
space (sp) (ascii 3210),
line feed (lf) (ascii 1010)
carriage return (cr) (ascii 1310),
and end of text (etx) (ascii 0310).
All uppercase, punctuation, and numerals have been removed. The file is in .txt format, and contains 61,392 characters. It has also been compressed using zip. First, unzip the file, and note the size of the zipped file vs. the unzipped .txt file.
Write the following programs:
Write a program in MATLAB to calculate the 30 letter probabilities directly from the file and then constuct a binary Huffman code based on the probabilities.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started