1.For the current node, check if there is a left sub-tree. If there is, Go to 2. If there isn’t, go to 3.
2.Print the current node.
3.For the current node, check whether it has a right sub-tree. If it has, go to 5. else go to 6.
5.Repeat 1.
6.END
Task 12
Task 13
Task 14
INORDER F+5
PREORDER +F5
POSTORDER F5+
No comments:
Post a Comment