4,699 views
20 votes
20 votes
Draw the binary tree with node labels $\text{a, b, c, d, e, f and g}$ for which the inorder and postorder traversals result in the following sequences:

Inorder: $\text{a f b c d g e}$

Postorder: $\text{a f c g e d b}$

1 Answer

Best answer
25 votes
25 votes

The binary tree will be

edited by

Related questions

21 votes
21 votes
1 answer
1
Kathleen asked Sep 26, 2014
4,194 views
Derive a recurrence relation for the size of the smallest AVL tree with height $h$.What is the size of the smallest AVL tree with height $8$?
26 votes
26 votes
5 answers
2
29 votes
29 votes
11 answers
4
Kathleen asked Sep 25, 2014
14,669 views
A complete $n$-ary tree is one in which every node has $0$ or $n$ sons. If $x$ is the number of internal nodes of a complete $n$-ary tree, the number of leaves in it is g...