Tree Traversal
1. Let us consider to be the total number of vertices and to be the total number of edges in a tree. What is the time complexity of Depth First Traversal in this tree?
2. While performing inorder traversal in a tree, what is the sequence of nodes that gets visited?
3. While performing preorder traversal in a tree, what is the sequence of nodes that gets followed?
4. For the postorder traversal in the binary tree, what is the sequence of nodes that gets accessed?
5. Which of the following is a Depth First Traversal of a binary tree?
6. Consider a binary tree with root , left child , and right child . If has children and , what is the preorder traversal?
7. Consider the same tree with root , left child , right child , and children and under . What is the inorder traversal?
8. Consider a binary tree with root , left child , right child , and children and under . What is the postorder traversal?
9. Which statement about recursive Depth First Traversal is correct?