Question: 1. Sorting algorithms (30 pts) Use the following sorting algorithms to sort array (5, 3, 7, 8,4, 6,9, 2, 10, 1 a) bubble sort (Please

 1. Sorting algorithms (30 pts) Use the following sorting algorithms to

1. Sorting algorithms (30 pts) Use the following sorting algorithms to sort array (5, 3, 7, 8,4, 6,9, 2, 10, 1 a) bubble sort (Please show the contents of the array after each round) b) selection sort (Please show the contents of the array after each round) c) insertion sort (Please show the contents of the array after each round) d) shell sort (Please use h values as n/2, n/4, .., 1, and show the contents of the array after each round of h) each call of the partition function) call of the merge function) e) quick sort (Please choose the first item as the pivot and show the contents of the array after f merge sort (Please use the top-down method and show the contents of the array after each

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!