Question DSA-GRDY-0070
HardWhich greedy algorithm builds an optimal prefix-free code?
- A.
Huffman coding
- B.
Shannon–Fano always
- 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
Which greedy algorithm builds an optimal prefix-free code?
Huffman coding
Shannon–Fano always
Sign up free to see the answer and a step-by-step explanation.
Run-length encoding
LZ77