1.

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

Answer»

Right CHOICE is (a) 011

The best I can explain: By RECORDING the path of the node from root to leaf, the code WORD for character ‘a’ is found to be 011.



Discussion

No Comment Found

Related InterviewSolutions