This document describes three tree traversal algorithms: InOrder, PreOrder, and PostOrder. InOrder first traverses the left subtree, then visits the root, then the right subtree. PreOrder first visits the root, then the left subtree, then the right subtree. PostOrder first traverses the left subtree, then the right subtree, then visits the root.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
48 views3 pages
Inorder Traversal Algorithm
This document describes three tree traversal algorithms: InOrder, PreOrder, and PostOrder. InOrder first traverses the left subtree, then visits the root, then the right subtree. PreOrder first visits the root, then the left subtree, then the right subtree. PostOrder first traverses the left subtree, then the right subtree, then visits the root.