• closed by
3,061 views
0 0 votes
closed with the note: -

in Huffman Code, we get extract the minimum at each time, but my minimum is creating duplicate, then which one i choose?

i am getting the same avg.no.of bits for every Huffman tree, but the problem is my tree is changing therefore representing the character also changed, if some one asks convert the message using Huffman, then ambiguity comes.

ex :- frequencies of A,B,C,D,E,F,G and H are $\frac{1}{30},\frac{1}{30},\frac{1}{30},\frac{2}{30},\frac{3}{30},\frac{5}{30},\frac{5}{30}$ and $\frac{12}{30} $

Position:
Show:

Related questions

1 1 vote
1 1 answer
3.0k
3.0k views
amrit22 asked Sep 24, 2023
3,011 views
consider the following message BCCABBDDAECCBBAEDDCC find the no of bits requiered for huffman encoding of above message
0 0 votes
2 answers 2 answers
568
568 views
Dknights asked Jan 3, 2025
568 views
can someone please explain if the following queries are the same?1- Average length of the Huffman code2- Expected length of the encoded message3- What is the minimum leng...
0 0 votes
1 1 answer
153
153 views
Shubham Sharma 2 asked Apr 19
153 views
Match the LIST-I with LIST-IILIST-ILIST-IIA.Dynamic programmingI.Floyd Warshall Shortest pathB.GreedyII.Huffman codingC.Back trackingIII.Hamiltonian cycle problemD.Branch...
1 1 vote
3 3 answers
591
591 views
Shubham Sharma 2 asked Sep 10, 2025
591 views
Which of the following algorithms use Greedy strategy?Dijkstra's algorithmKruskal's algorithmHuffman codingBellman-Ford algorithmChoose the correct answer from the option...