NADAR SARASWATHI COLLEGE
OF ARTS AND SCIENCE THENI.
Department Of Computer Science
TECHNIQUES FOR BINARY TREE
M.SHAKTHI
MSC(CS)
TECHNIQUES FOR BINARY TREE
Binary Tree
 Binary tree is a one type of data structure
 Each parent node have a two child node.
 Atmost Two child (left child,right child)
 The binary trees are perform some
operations.
 Traversing a tree
•visiting each node exactly once
•produces linear order for information in a tree
 Three ways of binary tree Traversal
1.INORDER TRAVERSAL
2.PREORDER TRAVERSAL
3.POSTORDER TRAVERSAL
1. INORDER TRAVERSAL
left subtree-Root-Right subtree
2. PREORDER TRAVERSAL
Root-left subtree-right subtree
3.POSTORDER TRAVERSAL
left subtree-right subtree- Root
1.INORDER TRAVERSAL
2.PREORDER TRAVERSAL:
3.POSTORDER TRAVERSAL:
Example of binary tree:
THANK YOU

Data structure and algorithm