Note: Computers count from zero, so the first number in the array is always counted as 0. The last element in an array with n elements will have the index n-1. If an array has 10 elements then the ...
Each pass through the data consists of making a set of comparisons between two data items. You always start with the items in position 0 and 1, then 1 and 2, then 2 and 3 etc. Each time, you compare ...