Java Questions. 1. (5) Assume selection sort is applied to the following array.
ID: 3833498 • Letter: J
Question
Java Questions.
1. (5) Assume selection sort is applied to the following array. Show the state of the array after the first pass of the outer loop. Once a numbe is fixed you do not need to keep writing it down 50 35 15 100 90 20 o 125 55 2. (5) Assume bubble sort is applied to the following array. Show the state of the array after the first pass of the outer loop. Once a number is fixed you do not need to keep writing it down. 50 35 15 100 90 20 o 125 55 3. (5) Assume quicksort is applied to the following array Show the state of the array after quicksort has partitioned the array. Use the element in position 0 as the pivot value 50 35 100 90 20 ss 10 25 55Explanation / Answer
Selection Sort:
BubbleSort:
QuickSort:
RadixSort:
Intially: 50 35 15 100 90 20 88 10 25 55 After loop: 50 35 15 55 90 20 88 10 25 100Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.