For n ¥ 0, we want to count the number of ordered rooted trees on n +
Question:
(a) Performing a postorder traversal of each tree in Fig. 12.52(a), we traverse each edge twice - once going down and once coming back up. When we traverse an edge going down, we shall write "1" and when we traverse one coming back up, we shall write "-1." Hence the postorder traversal for the first tree in Fig. 12.52(a) generates the list 1, 1, 1, -1, -1, -1. The list 1, 1, -1, -1, 1, -1 arises for the second tree in part (a) of the figure. Find the corresponding lists for the other three trees in Fig. 12.52(a).
(b) Determine the ordered rooted trees on five vertices that generate the lists: (i) 1, -1, 1, 1, -1, 1, -1, -1; (ii) 1, 1, -1,-1, 1, 1,-1,-1; and (iii) 1,-1, 1,-1, 1, 1, -1, -1. How many such trees are there on five vertices?
(c) For n ¥ 0, how many ordered rooted trees are there for n + 1 vertices?
Step by Step Answer:
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi