Tree Traversal
1. How is a tree different from a graph in terms of traversal?
2. We can rebuild binary tree using results of
3. To find the shortest distance between every node and starting node of the graph, which method can be used?
4. Let us assume a binary tree consisting of nodes a, b, c, d, e, f, g (in no particular order). If the postorder traversal on the tree gives {d, e, b, f, g, c, a} as the results. Then what are the results of preorder and inorder traversals respectively?