Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CS 3330 Assignment 2 (Due: at 11:59PM on 4/1/2018) Q.1. (50 Points) Sort A-[ 13, 6, 30, 1, 5, 9, 12, 6, 5, 3, 5,
CS 3330 Assignment 2 (Due: at 11:59PM on 4/1/2018) Q.1. (50 Points) Sort A-[ 13, 6, 30, 1, 5, 9, 12, 6, 5, 3, 5, 17] using quicksort with median-of-three partitioning (Figure 7.16 from your textbook) and a cutoff of 3. For this question, you need to illustrate the step by step solution of the quick sort algorithm as illustrated in your textbook Fig 7.14. Please strictly follow the steps of the partitioning and quick sort algorithm. Q.2.(50 Points) Sort array A-[ 13, 6, 30, 1, 5, 9, 12, 6, 5, 3, 5,17] using merge sort and illustrate your recursion calls it is shown in your lecture notes (sorting.pdf) o.3.(10 Bonus Points) Sort the array A-[3, 1, 4, 1,5, 9, 2, 6, 5] using insertion sort and illustrate your solution it is shown in your lecture notes (sorting.pdf) No cod date as Word or Pdf file. On the top of your paper, please add your name and number, Course ID. Assignment number and the date e submision over Canvas is necessary. Please submit your solutions to the Canvas on due
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