my dog learned polymorphism*
The moose likes Java in General and the fly likes Tree Traversal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Tree Traversal" Watch "Tree Traversal" New topic
Author

Tree Traversal

Rajeev Ja
Ranch Hand

Joined: May 06, 2007
Posts: 38
which is the best tree traversal method(inorder,preorder or postorder)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36453
    
  15
Not an advanced question.

There is no such thing as a "best" traversal method. It depends which order you want to see the members in.
A quick google search revealed this, this, and this site.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tree Traversal
 
Similar Threads
Tree Question
Is it possible to generate Binary Tree from the expression given in Inorder?
Urgent
Employee Class problem
When do i say that a binary search tree is unique?!