Suppose a BST is converted into an AVL tree. Which of the following statements is correct? a. The in-order traversal of the AVL tree and the BST will be the same. b. The pre-order traversal of the AVL tree and the BST will be the same. c. The post-order traversal of the AVL tree and the BST will be the same. d. None of the above.

icon
Related questions
Question
Suppose a BST is converted into an AVL tree. Which of the following statements is correct?
a. The in-order traversal of the AVL tree and the BST will be the same.
b. The pre-order traversal of the AVL tree and the BST will be the same.
c. The post-order traversal of the AVL tree and the BST will be the same.
d. None of the above.
Transcribed Image Text:Suppose a BST is converted into an AVL tree. Which of the following statements is correct? a. The in-order traversal of the AVL tree and the BST will be the same. b. The pre-order traversal of the AVL tree and the BST will be the same. c. The post-order traversal of the AVL tree and the BST will be the same. d. None of the above.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer