Question DSA-GRDY-0016
HardHuffman coding is applied to symbols with frequencies A: 5, B: 9, C: 12, D: 13, E: 16, F: 45. What is the length of F's code?
- A.
2 bits
- B.
4 bits
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Greedy question
Huffman coding is applied to symbols with frequencies A: 5, B: 9, C: 12, D: 13, E: 16, F: 45. What is the length of F's code?
2 bits
4 bits
Sign up free to see the answer and a step-by-step explanation.
3 bits
1 bit