Question 2
The number of swappings needed to sort the numbers 8, 22, 7, 9, 31, 5, 13 in ascending order, using bubble sort is
Question 3
Assume that we use Bubble Sort to sort n distinct elements in ascending order. When does the best case of Bubble Sort occur?
Question 4
What is the maximum number of comparisons that can take place when a bubble sort algorithm is implemented?, suppose there are n elements in the array.
Question 9
In Bubble Sort, after each pass, the largest element among the unsorted elements "bubbles up" to which position? You may assume that the elements are being sorted in ascending order.
There are 10 questions to complete.