Question: 2 Decision Tree Models (40 points) In class, we have used the decision tree model to derive a lower bound for the worst-case running time

 2 Decision Tree Models (40 points) In class, we have used

2 Decision Tree Models (40 points) In class, we have used the decision tree model to derive a lower bound for the worst-case running time of comparison-based sorting, including insertion sort, merge sort, heapsort and quicksort. 2.1 Mergesort (10 points) a, aal, where a, a2. Draw the decision tree model for Mergesort Given an input sequence with 2 elements: running on this sequence. 2.2 Heapsort (10 points) Given an input sequence with 8 elements: [a1, a2, a3M4, as, a6,G7, a8], where all the elements are distinct from each other. For the decision tree model for Heapsort running on this input sequence, what is the root node of your decision tree model? 2.3 Insertionsort (1O points) Given an input sequence with 8 elements: [a1,a2, a3, a4, a5, ae, a7, as], where all the elements are distinct from each other. For the decision tree model for Insertionsort running on this input sequence, what is the root node of your decision tree model? 2.4 Quicksort (10 points) Given an input sequence with 8 elements: [ai, a2, a3, a4, a5, a6, a7, a8], where all the elements are distinct from each other. For the decision tree model for Quicksort running on this input sequence, what is the root node of your decision tree model

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!