Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are heading a team of software developers who have been given a task to design an application that will search a name in
You are heading a team of software developers who have been given a task to design an application that will search a name in the list of students enrolled for ITDPA2. Based on your data structure and algorithm knowledge, you have suggested to your team members that the easiest way to find a name in a stored array is by the implementation of the binary search tree. A sample of students with their respective marks is given on the table Student1 18 Student2 5 Student3 2 Student4 21 Student5 10 Student6 24 Student7 19 Student8 128 Keep in mind that students are arranged in list format and the list only stores the marks of the student. The marks of the first student1 occupies the first index, and so on. Question 5 5.1 Write the array (list) for the marks, then draw a binary search tree BST to store the marks of (10 Marks) the array. 5.2 Provide a python implementation of the search tree structure provide in the previous question (5 Marks) 5.3 Write a python implementation of depth first search traversal on your BST ensuring that the output is a sorted list from the minimum to the maximum. then calculate the value of the division of the maximin and minimum values in the BST and print it out. A sample output (10 Marks)
Step by Step Solution
★★★★★
3.44 Rating (167 Votes )
There are 3 Steps involved in it
Step: 1
51 Write the array list for the marks to draw the binary search treeBST to store the marks of the array The array list for the marks is given below ma...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