Question: Consider the following tree : 100 19 36 17 a) List (in order) the nodes that will be visited by a pre-order traversal. b) List

Consider the following tree : 100 19 36 17 a) List (in order) the nodes that will be visited by a pre-order traversal. b) List (in order) the nodes that will be visited by a postorder traversal c) This tree is a max-heap. Insert nodes 200 and 55 (in that order). Demonstrate your answer by drawing the tree after each insertion. d) Remove node 19 from the tree drawn above (do not consider nodes inserted in the previous question). Consider the following tree : 100 19 36 17 a) List (in order) the nodes that will be visited by a pre-order traversal. b) List (in order) the nodes that will be visited by a postorder traversal c) This tree is a max-heap. Insert nodes 200 and 55 (in that order). Demonstrate your answer by drawing the tree after each insertion. d) Remove node 19 from the tree drawn above (do not consider nodes inserted in the previous question)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
