A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

can anyone clearly explain me the concept of inorder ,preorder,postorder traversal of tree

  • This Question is Closed
  1. Owlfred
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Hoot! You just asked your first question! Hang tight while I find people to answer it for you. You can thank people who give you good answers by clicking the 'Good Answer' button on the right!

  2. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i would suggest u that............. for inorder traversal LNR for preorder travesral NLR and for post order traversal LRN WHRE L=LEFT R=RIGHT AND N=ROOT NODE

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    The answer given by alex is slightly wrong and I hope everyone can get what gauravbasti2006 has written, That is the correct answer for the question

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Basically, The order of traversal is related to the position of the root. If it is an INorder traversal, the root lies between Left and right nodes. In case of PREorder traversal, ROOT is before left and right nodes. For POSTorder, ROOT is after Left and Right nodes. The overall traversal is done recursively.

  5. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.