Answered step by step
Verified Expert Solution
Question
1 Approved Answer
answer complete question 3. The Abstract Data Type Binary Tree is a non-linear data structure, storing items hierarchically. The following questions are about the binary
answer complete question
3. The Abstract Data Type Binary Tree is a non-linear data structure, storing items hierarchically. The following questions are about the binary tree. (a) Using diagrams to explain your working, show how a binary search tree (BST) would be built for the following sequence of integers. Include at least three diagrams showing the tree under construction, along with the resulting fully-built tree. Explain the algorithm (i.e. the rules you've used at each step) to decide where to place the values in the tree. [8]2,7,5,16,22,50 (b) The efficiency of a BST depends on its precise structure. Many different potential binary search trees exist for the same set of integers. Give an example of the best an worst structures a binary search tree can take, using the set of integers from part a). Clearly identify which is best and why, and which is worst and why. [6] (c) Give an example of one less efficient and one more efficient data structure than a (best-case) BST for search operations, with a brief description quantifying their average search performance in relation to a BST. [4] (d) Considering the tree you made in answer to a), state whether the tree is complete, and explain what this property means.l [2]
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