I need help to get a grip on understanding of binary tree in inorder transversal.
according to wiki:
To traverse a non-empty binary tree in inorder, perform the following operations recursively at each node:
1. Traverse the left subtree.
2. Visit the node.
3. Traverse the right subtree.
Suppose there is a binary tree like this:
the sequence of Inorder traversal sequence will be A, B, C, D, E, F, G, H, I.
Question:
1. I assume A is picked up at random. Is this correct?
2. From A it goes to B, as it is said that from left to root, but how come from B it goes to C, not D since it is said that after visit the node, traverse the right subtree?
3. From this point, I just totally lost. I need more explanation on the sequence.
Regards,
Ethereal1m

New Topic/Question
Reply


MultiQuote






|