Question: the language should be c + + Extend the Huffman tree by introducing another letter, namely ' * , to represent all non - alphabet
the language should be c
Extend the Huffman tree by introducing another letter, namely to represent all nonalphabet characters including numbers, spaces, tabs parenthesis, punctuation symbols, special characters, etc. You may keep the frequencies of the alphabet letters the same; and assume that the frequency of the nonalphabet characters is You may also assume that the encodings for uppercase letters are the same as the encodings of the lowercase letters.
From the extended Huffman tree, generate the code table. To be specific, your code table will have entries entries for the alphabet, and for the nonalphabet
Based on the code table, write a program to read and encode a text file that is as large as MB Save the coded text as a binary file. This becomes a file compressing program. How much is the size of the binary file?
the language should be c
What to submit:
The Huffman tree program
A text file that contains the code table
The source text file should be around MB where should i get that
The binary file
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
