The bubble sort algorithm works by
A) repeatedly comparing adjacent items and swapping them so smaller values come before larger values
B) repeatedly locating the smallest value in the unsorted portion of the array and moving it toward the lower end of the array
C) repeatedly taking the first value in the unsorted portion of the array and placing it at its proper place in the part of the array that is already sorted
D) partitioning the unsorted portion of the array into two sublists and a pivot and recursively sorting the two sublists
A) repeatedly comparing adjacent items and swapping them so smaller values come before larger values
You might also like to view...
What is the name of this method?
Given the following code from BinaryNodeTree
template
The correct determination of a(n) ________ length is important to avoid truncation.
A) address B) zip code C) database D) element