Chapter 12 Flashcards
binary search
The process of examining a middle value of a sorted array to see which half contains the value in question and halving until the value is located. (442)
bubble sort
A sorting algorithm that swaps consecutive elements when they are out of order to bubble the elements to the top or bottom on each pass. (448)
insertion sort
A sorting algorithm that locates an insertion point and takes advantage of partial ordering in an array. (449)
linear search
The process of searching a list by examining the first component and then examining successive components in the order in which they occur. (442)
multidimensional array
An array that uses multiple lists of items. (456)
one-dimensional array
An array that can represent simple lists of items. (456)
ragged array
An array with rows of different lengths. (459)
selection sort
A sorting algorithm puts the smallest or largest element in the top position and repeats the process on the remaining array components.
two-dimensional array
An array that uses two lists of items. (456)