Consider the following rooted tree with the vertex labeled as the root:

The order in which the nodes are visited during an in-order traversal of the tree is
View worked solution
Answer: A
An in-order traversal of a binary tree recursively visits the nodes in the following order:
- Traverse the left subtree.
- Visit the root node.
- Traverse the right subtree.
From the given tree structure, we can trace the traversal step-by-step:
- Left subtree of (rooted at ):
- Left child of is , and right child is .
- Root node:
- Right subtree of (rooted at ):
- has no left child, and its right child is .
- has left child and right child .
Combining these parts, the complete in-order traversal sequence is:
Free practice · Your answers on this page are not saved.
