Question: Question Based on the binary tree above, answer the questions: What are the ancestors of node P What are the descendants of node K What

Question

Question Based on the binary tree above, answer the questions: What are

  1. Based on the binary tree above, answer the questions:
    1. What are the ancestors of node P
    1. What are the descendants of node K
    1. What is the maximum possible number of nodes in the tree at the level of node W?
    2. What is the maximum possible number of nodes in the tree at the level of node N?
    3. Assume that node O is inserted. How many nodes would be in the tree if it were completely full down to and including the level of node O?
    4. Show the order in which the nodes in the tree are processed by preorder traversal.

  1. Draw the binary search tree which elements are inserted in the following order: 50 72 96 94 107 26 12 11 9 2 10 25 51 16 17 95

tree D M R B P W N

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!