Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5. Given the following tree: 25 20 36) 22 30 40 (28 38 48 8 15 45 50 Answer each of the following part: a)
5. Given the following tree: 25 20 36) 22 30 40 (28 38 48 8 15 45 50 Answer each of the following part: a) Check if the above tree is a Binary search tree or a Max Heap (give reasoning) (3 points) (b) Now show how you will add the following key: 46 (5 points) (C) Now illustrate how you will delete the key 36 from the tree. Must explain the algorithm. (5 points) (d) Illustrate how you would search for the key: V = 38 (from the original tree, before adding 46). Show your steps on the diagram with arrow (2 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started