archiphoto77
2011-11-01 10:53:44 UTC
{4 2 9 7 10 1 22 5}
The number of passes through the array made by each algorithm is:
a) Bubble Sort: 7, Optimized Bubble Sort: 4
b) Bubble Sort: 8, Optimized Bubble Sort: 4
c) Bubble Sort: 7, Optimized Bubble Sort: 3
d) Bubble Sort: 8, Optimized Bubble Sort: 4
e) Bubble Sort: 6, Optimized Bubble Sort: 3
Please explain your answer.