Tree Traversals - InOrder PreOrder and PostOrder

Tree Traversals - InOrder PreOrder and PostOrder



Tree is a non-linear data structure which organises a data in hierarchial structure. It is basially a colletion of nodes(vertex) and edges.

As trees are Non-linear data structures, so there are different techniques of tree traversals.

In case of Binary Trees,there are three possible ways to traverse a Binary Tree:

1. In-Order :  Left - Root - Right

2. Pre-Order : Root - Left - Right

3. Post-Order : Left - Right - Root 

C Program implementing InOrder, PreOrder and PostOrder Tree Traversals







SHARE If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.

More posts

Comments

Post a Comment

Sponsored Content