array
As a data structure where data elements are contiguous and given an index number for accessing elements.
binary search
The process of comparing the middle value in a sorted array or list to the target value, eliminating the half of the list that can’t contain the target value, selecting the middle value of the remaining elements and repeating the process until the target value is found or the search space is empty.
bubble sort
A sorting algorithm where adjacent elements are compared in pairs and swapped if out of order. The process is reiterated until all elements are sorted.
concrete step
A step in an algorithm that gives specific instructions on what to do.
count-controlled loop
any loop whose stop condition is met through a predictable count.
desk checking
Manually going through an algorithm step-by-step on paper, acting like the computer to verify logic and expected results before running code.
event-controlled loop
A loop whose stop condition is determined by when an event becomes true or false, and the number of iterations is not determined by a count.
heterogeneous
When data are not of the same type.
homogenous
When data are of the same type.
index
A numeric position identifier for elements in a list or array. Can start at 0 or 1.
insertion sort
When you sort the first two elements, add the next element and insert it into its correct place among the already-sorted elements. You keep adding elements and inserting them into the correct position until the entire array is sorted.
processing
the act of performing operations on data according to a set of instructions to achieve a desired result
record
a composite variable that’s treated as a single unit of data and made up of multiple fields consisting of any data type.
searching
the process of finding a specific item or value within a collection of data
selection sort
Select the first element, assume it to be sorted, ccompare to all subsequent elements and swap with smallest element found if it’s smaller than the first element. Then select sequentially through the remaining elements, repeating the same process until the list is sorted
sequential search (linear search)
a search algorithm that compares elements sequentially to the target value until the value is found or the list ends.
sorting
the process of arranging data in a particular order, such as ascending or descending
string
A sequence of any characters that are treated as a single piece of data.