Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Devon

What are the advantages of using different traversal methods for a list/tree?

This topic is 6718 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Preorder, Postorder and in order would someone be kind enough to tell me when it is most suitable to use a given traversal method.

Share this post


Link to post
Share on other sites
Advertisement
i would like to know the same thing, i can do all of them, but the only thing that i''ve seen them used in is from the book i learned about trees from. A compiler uses them to parse out equations... like a preorder gives you prefix notation, inorder gives you a normal equation, and post order gives you post fix notation.

I know i didn''t answer any of your questions, but i''m just throwing stuff out there, no one seems to know anything about it =( i was going insane trying to find out.. SO HELP ME PLEASE!!!!!!!!!!!!!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!