InterviewSolution
Saved Bookmarks
| 1. |
In Huffman coding, data in a tree always occur?(a) roots(b) leaves(c) left sub trees(d) right sub treesThis question was posed to me in semester exam.The origin of the question is Greedy Algorithms in chapter Greedy Algorithms of Data Structures & Algorithms II |
|
Answer» CORRECT ANSWER is (b) leaves Easiest explanation - In Huffman ENCODING, data is always stored at the leaves of a tree inorder to COMPUTE the codeword EFFECTIVELY. |
|