Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the following list of data : 20, 15, 18, 40, 60, 30, 7, 35, 50 a) Draw a binary tree. b) Based on the
Given the following list of data : 20, 15, 18, 40, 60, 30, 7, 35, 50 a) Draw a binary tree. b) Based on the tree that you have drawn in Question 4(a) answer ALL of the following questions: i. Write PostOrder Traversal. ii. Write all the descendants of node with data 40.
iii. Redraw the tree when node with data 40 is being deleted. iv. What is the height of the tree based on the new redrawn tree in Question 4(b)(iii)? v. Which node will be the root node if the current root node is deleted based on the new redrawn tree in Question 4(b)(iii)?
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