Data Structures and Algorithms
with Object-Oriented Design Patterns in JavaThe second depth-first traversal method we consider is postorder traversal . In contrast with preorder traversal, which visits the root first, postorder traversal visits the root last. To do a postorder traversal of a general tree:
visits the nodes in the following order:
![]()
Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.