I have a problem understanding how to traverse a forest post-order. the definition for it is: (source: Data structures using C by Rohit Khurana page 330)
traverse the subtrees of the first tree in tree post-order.
traverse the remaining trees of F in tree post-order.
visit the root node of the first tree of F.
and the post-order traversal of it mentioned in the book is:
C F E D B Q P Z Y X A
but I think that P is in the wrong place and the correct answer for it is:
C F E D B Q Z Y X P A
I want to know whether my answer is correct or if the book's answer is true, why it is true??
thanks,