Data Structures Trees Question:
Download Questions PDF

What is threaded binary tree. Explain its common uses?

Answer:

A threaded binary tree is structured in an order that, all right child pointers would normally be null and points to the ‘in-order successor’ of the node. Similarly, all the left child pointers would normally be null and points to the ‘in-order predecessor’ of the node.

Uses of Threaded binary tree:

- Traversal is faster than unthreaded binary trees
- More subtle, by enabling the determination of predecessor and successor nodes that starts from any node, in an efficient manner.
- No stack overload can be carried out with the threads.
- Accessibility of any node from any other node
- It is easy to implement to insertion and deletion from a threaded tree.

Download Data Structures Trees Interview Questions And Answers PDF

Previous QuestionNext Question
Explain B+ tree? Explain its uses?Do you know implementation of traversal of a binary tree?