Answer To: CSC 202 - Sorting and Hashing Homework Sorting You are given the list: 73, 25,66, 99,-5,0,23. In the...
Kshitij answered on May 04 2021
Sorting/sort.txt
You are given the list: 73, 25,66, 99,-5,0,23. In the problems below demonstrate how the numbers would be sorted, step-by- step.
1. Use the Bubble Sort located
Psss No. 1
[25, 66, 73, -5, 0, 23, 99]
Psss No. 2
[25, 66, -5, 0, 23, 73, 99]
Psss No. 3
[25, -5, 0, 23, 66, 73, 99]
Psss No. 4
[-5, 0, 23, 25, 66, 73, 99]
Psss No. 5
[-5, 0, 23, 25, 66, 73, 99]
Psss No. 6
[-5, 0, 23, 25, 66, 73, 99]
==== result ====
[-5, 0, 23, 25, 66, 73, 99]
2. Use the Selection Sort located at:
Psss No. 1
[-5, 25, 66, 99, 73, 0, 23]
Psss No. 2
[-5, 0, 66, 99, 73, 25, 23]
Psss No. 3
[-5, 0, 23, 99, 73, 25, 66]
Psss No. 4
[-5, 0, 23, 25, 73, 99,...