1.

Identify the reason which doesn’t play a key role to use threaded binary trees?(a) The storage required by stack and queue is more(b) The pointers in most of nodes of a binary tree are NULL(c) It is Difficult to find a successor node(d) They occupy less sizeQuestion is taken from Binary Trees using Linked Lists in section Binary Trees of Data Structures & Algorithms II got this question in exam.

Answer»

Right choice is (d) They occupy less SIZE

Easiest explanation - Threaded binary trees are INTRODUCED to make the Inorder traversal faster without USING any stack or recursion. Stack and QUEUE require more SPACE and pointers in the majority of binary trees are null and difficulties are raised while finding successor nodes. Size constraints are not taken on threaded binary trees, but they occupy less space than a stack/queue.



Discussion

No Comment Found

Related InterviewSolutions