Ask Question

Which method of traversing a tree would result in a sorted list for a binary search tree?

+3
Answers (1)
  1. 23 July, 05:03
    0
    The inorder traversal make a binary search tree sorted.

    Explanation:

    The algorithm of inorder traversal is

    1. Traverse the left subtree.

    2. print the data.

    3. Traverse the right subtree

    In this algorithm left subtree is visited first then it print the data or visit the data and finally it visited Right subtree.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which method of traversing a tree would result in a sorted list for a binary search tree? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers