zimsec_computer_science_binary_trees_answers
zimsec_computer_science_binary_trees_answers
15
/ \
10 20
/\ \
8 12 25
(i) Pre-order traversal (Root, Left, Right): 15, 10, 8, 12, 20, 25
(ii) In-order traversal (Left, Root, Right): 8, 10, 12, 15, 20, 25
(iii) Post-order traversal (Left, Right, Root): 8, 12, 10, 25, 20, 15
(d) Pseudocode for inserting a new node into a binary search tree: