Академический Документы
Профессиональный Документы
Культура Документы
Question 2: Using which kind of traversal (preorder, postorder, inorder) visits the
nodes of a BST in sorted order?
Give the results of performing traversals of this tree, printing each node as you visit it:
i. in-order traversal:
Question 5: Draw the BST that results from inserting the values 1 to 7 in each of the
following orders (reading from left to right):
1. 5 3 7 6 2 1 4
2. 1 2 3 4 5 6 7
3. 4 3 5 2 6 1 7