
- Forum
- Programming Talk
- Java
- Recursive Tree Traversing
Recursive Tree Traversing
This is a discussion on Recursive Tree Traversing within the Java forums, part of the Programming Talk category; I need help on Recursive Tree Traversing in Java. I would really appreciate if anyone among you explain it along ...
-
Recursive Tree Traversing
I need help on Recursive Tree Traversing in Java.
I would really appreciate if anyone among you explain it along with examples code (if possible).
Thanks in advance
Seenu
-
There are various methods of implementing the recursive tree traversing. One of the methods is by using the stack method. This method is used for maintaining the state of the traversal for every level of a tree.
-
One more way I could suggest for implementing recursive tree traversing is by using link structure that is in particular by using child-parent link
-
Ralph it was quite right about your explanation on stack usage for implementing recursive tree traversing. I want to know whether some more ways of implementing recursive tree traversing. Can you give guidelines on those.
-
Yes adrain its a good suggestion. The structure of using child-parent link is used for returning the pointer back to the parent level after traversing the child level. By this method we can eliminate the need for a separate stack object. That's a good suggestion. I am going this out in program.
-
Sponsored Ads

Reply With Quote





