Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

!) (c) Trace the execution of Huffmans algorithm for the following set of frequencies: a : 4, b : 75, c : 1, d :

!)

(c) Trace the execution of Huffmans algorithm for the following set of frequencies: a : 4, b : 75, c : 1, d : 2, e : 5. Show what the tree will look like at the end ((if you prefer, you can just draw the tree by hand with paper and pencil instead of with a word processor). Also show what will be the encoding for cbadbe with this code.

(d) Consider the Zvi-Lempel ZIP compression algorithm applied to the text: catinthecatinhat

Show what will be the representation for the repeated codes (you just have to show the final representation where the compressed representation is being used, you dont have to show the normal representation part, you dont have to show the trace or intermediate steps). you can assume

we are following exactly the same protocol described in class and in the handout.

the repeating representation is used only if the length is at least 3.

the 8-bit for pointers and 4-bit for length option is used here.

we are using the decimal notation

you dont have to calculate the number of bits

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions