Machine-translated by Google. Questions are authored in English.
Top

Trees and Binary Trees Questions and Answers

11.

The post-order and in-order traversal of a Binary tree generates the same output. Then the tree is :

Exam Year(s)

MH SET - 2025, SET Exam - 2025,

Answer: D

The tree is left skewed.

Inorder visits left subtree, node, right subtree; postorder visits left subtree, right subtree, node. The two orders agree only if no node has a right subtree, because then both reduce to 'left subtree, then node'. A binary tree in which every node has only a left child is left skewed.

In a right-skewed tree the inorder sequence runs from root to leaf and postorder from leaf to root, the reverse of each other. Any balanced tree with two or more levels has right children, so its orders differ.

Please log in or register to report this question.

Loading…
Tags: Trees and Binary Trees Questions and Answers || Trees and Binary Trees MCQ Questions and Answers || Trees and Binary Trees GK Questions and Answers || Trees and Binary Trees GK MCQ Questions || Trees and Binary Trees Multiple Choice Questions and Answers || Trees and Binary Trees GK || GK on Trees and Binary Trees || Data Structures and Algorithms Questions and Answers || Data Structures and Algorithms MCQ Questions and Answers || Data Structures and Algorithms GK Questions and Answers || GK on Data Structures and Algorithms