• edited by
3,364 views
2 2 votes

Q29.
4. A file contains the following characters and their corresponding frequencies as shown below:
\[
\mathrm{a}: 45, \mathrm{~b}: 13, \mathrm{c}: 12, \mathrm{~d}: 16, \mathrm{e}: 9, \mathrm{f}: 5
\]

If we use Huffman coding for data comparisons, what is the difference between maximum and minimum number of comparisons?

1 Answer

Best answer
3 3 votes

construct huffman tree max number of comparisions nothing but max heights of the tree

min number of comparisions nothing but min height.(like no comparisions in a b-tree)

• selected by
Position:
Show:

Related questions

1 1 vote
1 1 answer
3.0k
3.0k views
amrit22 asked Sep 24, 2023
3,012 views
consider the following message BCCABBDDAECCBBAEDDCC find the no of bits requiered for huffman encoding of above message
0 0 votes
3 3 answers
1.5k
1.5k views
radha gogia asked Jun 29, 2015
1,464 views
Though the parent node is maximum of both the child nodes but still the procedure we follow is chosing the minimum at each step and adding them to produce a parent node, ...
1 1 vote
1 answers 1 answer
726
726 views
bahirNaik asked Jan 14, 2016
726 views
Consider the Huffman codes that are used to compress the data. Four messages with their respective frequencies are given in the table.\begin{tabular}{|l|c|c|c|c|}\hline M...
0 0 votes
1 1 answer
654
654 views
reena_kandari asked Jan 10, 2017
654 views
Consider the problem of Huffman coding for messages$\left(M_{1}, M_{2}, \ldots . M_{7}\right)$ with relative frequencies of$\left(q_{1}, q_{2} \ldots q_{7}\right)=(4,5,7,...