Lesson 1 Flashcards
Arrays
An ____ is a data structure used to store multiple elements.
array
Arrays are_______, meaning that each element in the array has an index, a number that says where in the array the element is located.
indexed
_________ is an algorithm that sorts an array from the lowest value to the highest value
Bubble Sort
The ________ algorithm finds the lowest value in an array and moves it to the front of the array.
Selection Sort
The __________algorithm uses one part of the array to hold the sorted values, and the other part of the array to hold values that are not sorted yet.
Insertion Sort
The ________ algorithm takes an array of values, chooses one of the values as the ‘pivot’ element, and moves the other values so that lower values are on the left of the pivot element, and higher values are on the right of it
Quicksort
________ is when a function calls itself.
Recursion
The _______ algorithm sorts an array by counting the number of times each value occurs.
Counting Sort
The _____ algorithm sorts an array by individual digits, starting with the least significant digit (the rightmost one).
Radix Sort
The _________ algorithm is a divide-and-conquer algorithm that sorts an array by first breaking it down into smaller arrays and then building the array back together the correct way so that it is sorted.
Merge Sort
The _________ algorithm searches through an array and returns the index of the value it searches for.
Linear Search
The ________ algorithm searches through an array and returns the index of the value it searches for.
Binary Search
A list where the nodes are linked together
Linked List
Each _____ contains data and a pointer
node
_________ is the storage your program uses when it is running. This is where your variables, arrays and linked lists are stored.
Computer memory