Tree Traversal

1. How is a tree different from a graph in terms of traversal?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

2. We can rebuild binary tree using results of
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

3. To find the shortest distance between every node and starting node of the graph, which method can be used?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

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?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation