preorder and postorder traversal
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi I need some help on reading an XML document and assign to each of the nodes, its preorder and postorder position in the document.
-
Hi I need some help on reading an XML document and assign to each of the nodes, its preorder and postorder position in the document.
With preorder traversal you visit the root node and then the child nodes, postorder traversal is the opposite you visit the child nodes and then the root node. There are many articles on the Internet that have examples of constructing algorithms to perform both kinds of traversal.
Keep It Simple Stupid! (KISS)