Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 - Binary Search Trees [35 Points) You are given the following numbers: 45, 70, 75,30, 20, 85, 5,35,95, 40, 25, 80. 1) Insert

image text in transcribed
Question 2 - Binary Search Trees [35 Points) You are given the following numbers: 45, 70, 75,30, 20, 85, 5,35,95, 40, 25, 80. 1) Insert these numbers in a Binary Search Tree, and draw the tree. [12 Points] 2) Write the node sequence for PreOrder traversal. [5 points] 3) What is the height of this tree? Explain your answer. [5 points) 4) What is the depth of 5? Explain. [3 points] 5) What is the height of 40? Explain. [3 points] 6) Delete 35, and draw the updated tree. [3 points) 7) Work on the updated tree, and delete the root. Draw the updated tree. [4 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

More Books

Students also viewed these Databases questions