From the following given tree, what is the code word for the character ‘a’?
(a) 011
(b) 010
(c) 100
(d) 101
This question was posed to me in exam.
This intriguing question originated from Greedy Algorithms topic in chapter Greedy Algorithms of Data Structures & Algorithms II