Preorder, Inorder and postorder sequences of a binary tree are given below: MBCAFHPYK KAMCBYPFH MABCKYFPH Yet it is not clear which sequence belongs to which traversal. Pick the true statement from the following. Your answer: OI and II are preorder and inorder sequences, respectively OI and III are preorder and postorder sequences, respectively O II is the inorder sequence, but nothing more can be said about the other two sequence II and III are the preorder and inorder sequences, respectively

icon
Related questions
Question
Preorder, Inorder and postorder sequences of a binary tree are given below:
MBCAFHPYK
KAMCBYPFH
MABCKYFPH
Yet it is not clear which sequence belongs to which traversal.
Pick the true statement from the following.
Your answer:
OI and II are preorder and inorder sequences, respectively
O I and III are preorder and postorder sequences, respectively
O
Il is the inorder sequence, but nothing more can be said about the other two sequences
II and Ill are the preorder and inorder sequences, respectively
Transcribed Image Text:Preorder, Inorder and postorder sequences of a binary tree are given below: MBCAFHPYK KAMCBYPFH MABCKYFPH Yet it is not clear which sequence belongs to which traversal. Pick the true statement from the following. Your answer: OI and II are preorder and inorder sequences, respectively O I and III are preorder and postorder sequences, respectively O Il is the inorder sequence, but nothing more can be said about the other two sequences II and Ill are the preorder and inorder sequences, respectively
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer