Tree Data Structure
Tree Data Structure is a hierarchical data structure in which a collection of elements known as nodes are connected to each other via edges such that there exists exactly one path between any two nodes.

Tree Data Structure
Introduction to Tree Data Structure:
- Introduction to Tree – Data Structure and Algorithm Tutorials
- What is Tree | Tree Definition & Meaning in DSA
- Types of Trees in Data Structures
- Applications of tree data structure
- Applications, Advantages, and Disadvantages of Tree
Basic Operations on Tree Data Structure:
- Height of Tree
- Height and Depth of Node
- Level of a Given Node in Tree
- Search a Node in Tree
- Find the Parent of a Node
- Diameter of a Tree
- Find all Leaf nodes
- Find Siblings of a Node
- Find Children of a Node
- Tree Traversals (Inorder, Preorder and Postorder)
Types of Tree Data Structure:
- Binary tree: In a binary tree, each node can have a maximum of two children linked to it. Some common types of binary trees include full binary trees, complete binary trees, balanced binary trees, and degenerate or pathological binary trees.
- Ternary Tree: A Ternary Tree is a tree data structure in which each node has at most three child nodes, usually distinguished as “left”, “mid” and “right”.
- N-ary Tree or Generic Tree: Generic trees are a collection of nodes where each node is a data structure that consists of records and a list of references to its children(duplicate references are not allowed). Unlike the linked list, each node stores the address of multiple nodes.
To learn more about types of trees, refer to this article.
n-ary or Generic Tree:
- Generic Trees(N-ary Trees)
- What is Generic Tree or N-ary Tree
- Depth of an N-ary Tree
- Mirror of n-ary Tree
- Diameter of an N-ary Tree
- Level Order Traversal of N-ary Tree
- Sum of all elements of N-ary Tree
- Serialize and Deserialize an N-ary Tree
Binary Tree:
- Introduction to Binary Tree – Data Structure and Algorithm Tutorials
- Properties of Binary Tree
- Types of Binary Tree
- Applications, Advantages and Disadvantages of Binary Tree
- Binary Tree (Array implementation)
- Level Order Tree Traversal
- Inorder Traversal of Binary Tree
- Preorder Traversal of Binary Tree
- Postorder Traversal of Binary Tree
- Insertion in a Binary Tree
- Deletion in a Binary Tree
- Enumeration of Binary Trees
Binary Search Tree:
- Introduction to Binary Search Tree – Data Structure and Algorithm Tutorials
- Applications of BST
- Application, Advantages and Disadvantages of Binary Search Tree
- Insertion in Binary Search Tree
- Searching in Binary Search Tree
- Binary Search Tree (BST) Traversals – Inorder, Preorder, Post Order
- Deletion in Binary Search Tree
Ternary Search Tree:
- Ternary Search Tree
- Ternary Search Tree meaning & definition in DSA
- Ternary Search Tree (Deletion)
- How to implement text Auto-complete feature using Ternary Search Tree
- Longest word in ternary search tree
AVL Tree:
- AVL Tree Data Structure
- What is AVL Tree | AVL Tree meaning
- Insertion in an AVL Tree
- Deletion in an AVL Tree
- Weak AVL or Rank Balanced Trees
- Insertion, Searching and Deletion in AVL trees containing a parent node pointer
- AVL with duplicate keys
- Count greater nodes in AVL tree
- How to insert Strings into an AVL Tree
- Minimum number of nodes in an AVL Tree with given height
- Optimal sequence for AVL tree insertion (without any rotations)
- Different shapes of AVL possible at height h
B Tree:
- Introduction of B-Tree
- What is B-Tree? | B-Tree meaning
- Insert Operation in B-Tree
- Delete Operation in B-Tree
- B-Tree Insert without aggressive splitting
B+ Tree:
Red-Black Tree:
- Introduction to Red-Black Tree
- Red-Black Tree Definition & Meaning in DSA
- Insertion in Red-Black Tree
- Red-Black Trees | Top-Down Insertion
- Deletion in Red-Black Tree
- Applications, Advantages, and Disadvantages of Red-Black Tree
Other types of Trees:
- Ternary Tree:
- Interval Tree:
- 2-3-4 Tree:
Trees vs other Data Structures:
- Difference between graph and tree
- Comparison between Heap and Tree
- What is the difference between Heap and Red-Black Tree?
- Difference between Binary Search Tree and Binary Heap
- Difference between Stack and Tree
- Difference between an array and a tree
Comparison among different Tree Data Structures:
- Difference between General tree and Binary tree
- Difference between Binary Tree and Binary Search Tree
- Difference between Binary tree and B-tree
- Difference between B tree and B+ tree
- Difference between Full and Complete Binary Tree
- Difference between Binary Search Tree and AVL Tree
- Red Black Tree vs AVL Tree
Problems based on Tree Data Structure:
Quick Links:




Please Login to comment...