Tree
Tree
Data Structure
Terminology of tree
Types of Tree Traversal:
Tree implementation in C
What is a Binary Search tree?
In the above figure, we can observe that the root node is 40, and all the nodes of the left
subtree are smaller than the root node, and all the nodes of the right subtree are greater than
the root node.
Now, let's see the creation of binary search tree using an example.
Suppose the data elements are - 45, 15, 79, 90, 10, 55, 12, 20, 50