Define threaded binary tree. Explain its common uses



Define threaded binary tree. Explain its common uses..

Answer / Chetan Pd Singh

A threaded binary tree is a modification of a binary tree where each node has additional links (threads) to other nodes that would be reached by a left or right inorder traversal from that node's successor or predecessor, respectively. These threads allow for more efficient inorder traversals without needing to store explicit pointers to parent nodes. Common uses include:
1. Implementing data structures like stacks and queues using the threaded binary tree structure.
2. Improving the efficiency of certain algorithms that require multiple passes over the same data, such as depth-first search (DFS) or breadth-first search (BFS).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What are the objectives of studying data structures?

1 Answers  


How do you find the height of a binary tree?

1 Answers  


Name the areas in which you can apply data structures extensively?

1 Answers   Accenture,


Are dictionaries mutable?

1 Answers  


What is adt in data structure with example?

1 Answers  


Provide an algorithm to reverse a linked list without using recursion.

1 Answers   Wipro,


What do you mean by general trees?

1 Answers  


What is the maximum total number of nodes in a tree that has N levels? Note that the root is level (zero)

18 Answers   CSC, National Instruments, Sasken, Sybrant Technologies,


What is difference between array and arraylist?

1 Answers  


Is pointer a variable in data structure?

1 Answers  


Describe stack operation.

1 Answers  


Tell me do array subscripts always start with zero?

1 Answers  


Categories