Java sorting: Bubble sort, insertion sort, and selectionsort
Could someone check if my answers are correct? Please downloadthe questions at: https://ufile.io/irzoq
Bubble Sort:
1. After the first pass, the array { D G L A Q B R X }, 6comparisons, 12 assignments
2. After the second pass, the array { D G A L B Q R X }, 5comparisons, 6 assignments
3. After the third pass, the array { D A G B L Q R X }, 4comparisons, 6 assignments
Insertion Sort: I don’t know numbers ofcomparisons
1. After the first pass, the array { A B D G L Q R X },comparisons,
PayPal Gateway not configured
PayPal Gateway not configured