Wednesday, September 28, 2011

tree traversal

there are three type of tree traversals
for example,if I have tree like this
A
/ \
B C
the preorder way access order will be ABC
the inorder way access order will be BAC
the post Order way access order will be BCA
this algorithm will cursively apply to all node we meet

No comments:

Post a Comment