SlideShare a Scribd company logo
4
Most read
6
Most read
7
Most read
Presentation on : Threaded Binary Tree
Student Name: MOULI MANDAL
Student Code: BWU/MCA/22/095
Reg. No. : 22012006227 of 2022-2023
University Roll No. : 22010201087
Course Name: Data Structures and Algorithms
Course Code: MCA101
Semester: I
Programme Name: Master of Computer Applications
Index
 How the concept of Threaded Binary Tree came?
 What is a Threaded Binary Tree?
 Types of Threaded Binary tree
a) Single-Threaded Binary Tree
b) Double-Threaded Binary Tree
 Advantages of Threaded Binary Tree
 Disadvantages of Threaded Binary Tree
How the concept of Threaded Binary Tree came?
 Many nodes present in this tree hold a NULL value in their
left or right child pointer (which are denoted by sketched
fields)
 The space occupied by these null values can be used to store
some kind of valuable information.
 One possible way to utilise this space is to have a special
pointer that points to nodes higher in the tree.
 These special pointers are called threads.
What is a Threaded Binary Tree?
 A variant of a normal Binary Tree.
 The nodes will store the in-order
predecessor/successor instead of storing NULL in
the left/right child pointers.
 The leftmost and the rightmost child pointer of a
tree always points to null as their in-order
predecessor and successor do not exist.
Types of Threaded Binary tree
Threaded Binary Tree
Single-Threaded Binary Tree Double-Threaded Binary Tree
Single-Threaded Binary Tree
 If a node has a right null pointer, then this right pointer is
threaded towards the in-order successor’s node if it exists
 Node Structure of Single-Threaded Binary Trees:
struct Node{
int value;
Node* left;
Node* right;
bool rightThread;
}
Double-Threaded Binary Tree
 The left null pointer of a node is made to point
towards the in-order predecessor node and the right
null pointer is made to point towards the in-order
successor node.
 Node Structure of Double-Threaded Binary Trees:
struct Node{
int value;
Node* left;
Node* right;
bool rightThread;
bool leftThread;
}
Advantages of Threaded Binary Tree
 No need for stacks or recursion
 Optimal memory usage
 Time complexity
 Backward traversal
Disadvantages of Threaded Binary Tree
 Complicated insertion and deletion
 Extra memory usage
•THANK YOU

More Related Content

PPTX
Binary Search Tree
PDF
Dbms 10: Conversion of ER model to Relational Model
PPTX
Threaded Binary Tree.pptx
PPTX
Tree in data structure
PPTX
Types of keys dbms
PPT
Binary search tree(bst)
PPTX
Introduction to data structure ppt
PDF
Trees, Binary Search Tree, AVL Tree in Data Structures
Binary Search Tree
Dbms 10: Conversion of ER model to Relational Model
Threaded Binary Tree.pptx
Tree in data structure
Types of keys dbms
Binary search tree(bst)
Introduction to data structure ppt
Trees, Binary Search Tree, AVL Tree in Data Structures

What's hot (20)

PPTX
Data structure & its types
PPTX
Binary Tree in Data Structure
PPT
UNIT-4 TREES.ppt
PPTX
AVL Tree in Data Structure
PPTX
Binary tree and operations
PPT
BINARY TREE REPRESENTATION.ppt
PPT
1.5 binary search tree
PPTX
SQL Queries Information
PPTX
B and B+ tree
PPTX
Abstract Data Types
PPTX
Trees (data structure)
PPTX
Data structures trees - B Tree & B+Tree.pptx
PDF
sparse matrix in data structure
PPS
Architecture of-dbms-and-data-independence
PPTX
Binary Search Tree in Data Structure
PPT
Data structures using c
PPTX
Stacks in c++
PPTX
Trees in data structures
PPTX
DDL And DML
PDF
Expression trees
Data structure & its types
Binary Tree in Data Structure
UNIT-4 TREES.ppt
AVL Tree in Data Structure
Binary tree and operations
BINARY TREE REPRESENTATION.ppt
1.5 binary search tree
SQL Queries Information
B and B+ tree
Abstract Data Types
Trees (data structure)
Data structures trees - B Tree & B+Tree.pptx
sparse matrix in data structure
Architecture of-dbms-and-data-independence
Binary Search Tree in Data Structure
Data structures using c
Stacks in c++
Trees in data structures
DDL And DML
Expression trees
Ad

Similar to Threaded Binary Tree.pptx (20)

PPTX
Threaded Binary Tree
PPT
Full threded binary tree
PPTX
Threaded binary tree
PPTX
Unit 3 - Part 1_Threaded Binary Tree.pptx
PPT
Binary search Tree and avl tree , treee.ppt
PDF
Threaded binarytree&heapsort
PPT
BINARY SEARCH TREE
PPT
lecture18(1) for the data structure .ppt
PPTX
THREADED BINARY TREE AND BINARY SEARCH TREE
PDF
Binary Trees, Traversals and BST.pdf....
PPT
M.E - Computer Science and Engineering-Data structure-bst-and-threaded
PPTX
Tree structure and its definitions with an example
PDF
Dsc++ unit 3 notes
PPT
Chap 5 Tree.ppt
PPTX
Unit 3 dsuc
PPTX
DOCX
Chapter 4
PPT
PPTX
NON-LINEAR DATA STRUCTURE-TREES.pptx
Threaded Binary Tree
Full threded binary tree
Threaded binary tree
Unit 3 - Part 1_Threaded Binary Tree.pptx
Binary search Tree and avl tree , treee.ppt
Threaded binarytree&heapsort
BINARY SEARCH TREE
lecture18(1) for the data structure .ppt
THREADED BINARY TREE AND BINARY SEARCH TREE
Binary Trees, Traversals and BST.pdf....
M.E - Computer Science and Engineering-Data structure-bst-and-threaded
Tree structure and its definitions with an example
Dsc++ unit 3 notes
Chap 5 Tree.ppt
Unit 3 dsuc
Chapter 4
NON-LINEAR DATA STRUCTURE-TREES.pptx
Ad

Recently uploaded (20)

PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
PPT on Performance Review to get promotions
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPT
Project quality management in manufacturing
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
composite construction of structures.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPT on Performance Review to get promotions
Structs to JSON How Go Powers REST APIs.pdf
OOP with Java - Java Introduction (Basics)
bas. eng. economics group 4 presentation 1.pptx
Project quality management in manufacturing
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
composite construction of structures.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf

Threaded Binary Tree.pptx

  • 1. Presentation on : Threaded Binary Tree Student Name: MOULI MANDAL Student Code: BWU/MCA/22/095 Reg. No. : 22012006227 of 2022-2023 University Roll No. : 22010201087 Course Name: Data Structures and Algorithms Course Code: MCA101 Semester: I Programme Name: Master of Computer Applications
  • 2. Index  How the concept of Threaded Binary Tree came?  What is a Threaded Binary Tree?  Types of Threaded Binary tree a) Single-Threaded Binary Tree b) Double-Threaded Binary Tree  Advantages of Threaded Binary Tree  Disadvantages of Threaded Binary Tree
  • 3. How the concept of Threaded Binary Tree came?  Many nodes present in this tree hold a NULL value in their left or right child pointer (which are denoted by sketched fields)  The space occupied by these null values can be used to store some kind of valuable information.  One possible way to utilise this space is to have a special pointer that points to nodes higher in the tree.  These special pointers are called threads.
  • 4. What is a Threaded Binary Tree?  A variant of a normal Binary Tree.  The nodes will store the in-order predecessor/successor instead of storing NULL in the left/right child pointers.  The leftmost and the rightmost child pointer of a tree always points to null as their in-order predecessor and successor do not exist.
  • 5. Types of Threaded Binary tree Threaded Binary Tree Single-Threaded Binary Tree Double-Threaded Binary Tree
  • 6. Single-Threaded Binary Tree  If a node has a right null pointer, then this right pointer is threaded towards the in-order successor’s node if it exists  Node Structure of Single-Threaded Binary Trees: struct Node{ int value; Node* left; Node* right; bool rightThread; }
  • 7. Double-Threaded Binary Tree  The left null pointer of a node is made to point towards the in-order predecessor node and the right null pointer is made to point towards the in-order successor node.  Node Structure of Double-Threaded Binary Trees: struct Node{ int value; Node* left; Node* right; bool rightThread; bool leftThread; }
  • 8. Advantages of Threaded Binary Tree  No need for stacks or recursion  Optimal memory usage  Time complexity  Backward traversal
  • 9. Disadvantages of Threaded Binary Tree  Complicated insertion and deletion  Extra memory usage