Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions