SUBJECT: ANALYSIS AND DESIGN OF ALGORITHM
TOPIC: TREE TRAVERSAL
Cardamom Planters’ Association College
Pankajam Nagar, Bodinayakanur – 625513
Department CS & IT
2025-2026
Presented by
L.Sathiya.,M.Sc.,M.Phil.,
Assistant professor
Department of & CS & IT
CONTENTS
TREE TRAVERSAL
DEPTH FIRST TRAVERSAL
1. PREORDER TRAVERSAL
EXAMPLE
2. INORDER TRAVERSAL
EXAMPLE-
3. POSTORDER TRAVERSAL-
EXAMPLE-
BREADTH FIRST TRAVERSAL-
EXAMPLE
BINARY TREE PROPERTIES-
Property-03:
Total Number of leaf nodes in a Binary Tree
Property-04:
Maximum number of nodes at any level ‘L’ in
a binary tree= 2L
THANKYOU