Question: Purpose: Demonstrate the ability to use decision trees for sorting algorithms, and understand and implement sorting in linear time. Question 1 (20 POINTS): Decision trees

Purpose: Demonstrate the ability to use decision trees for sorting algorithms, and understand and implement sorting in linear time. Question 1 (20 POINTS): Decision trees provide an abstraction for comparison sort algorithms 1.A.) (5 POINTS) Draw a decision tree for Insertion sort on 4 elements. 1.B.) (5 POINTS) What is the shortest path in the decision tree? What does this represent from Insertion sort algorithm standpoint? 1.C.) (5 POINTS) What is the longest path in the decision tree? What does this represent from Insertion sort algorithm standpoint? 1.D.) (5 POINTS) How many leaves are there in the decision tree? What does this represent from Insertion sort algorithm standpoint
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
