Unit 3 Lesson 1 Flashcards
(18 cards)
Bubble sort
A simple sorting algorithm that repeatedly steps through a list, compares adjacent elements, and swaps them if they are in the wrong order.
Concrete step
A detailed action that specifies exactly how to perform a task.
Count-controlled loop
A loop that repeats a specific number of times, controlled by a counter variable (e.g., ‘for’ loop).
Desk checking
A manual method of reviewing the logic of a program or algorithm using a pencil and paper instead of a computer.
Event-controlled loop
A loop that continues to execute until a specific condition or event occurs, such as user input or a sensor reading.
Heterogeneous
A term describing a collection of items that are of different types.
Homogenous
A term describing a collection of items that are all of the same type.
Index
A numerical representation of an element’s position within an array or list.
Insertion sort
A sorting algorithm that builds the final sorted array one item at a time by inserting each new item into its correct position.
Processing
The act of performing operations on data according to a set of instructions to achieve a desired result.
Record
A composite variable that can store multiple fields of different data types, usually related to a single entity.
Searching
The process of finding a specific item or value within a collection of data.
Selection sort
A simple sorting algorithm that repeatedly finds the minimum element from the unsorted part of a list and moves it to the beginning.
Sequential search (linear search)
A search algorithm that checks each element in a list one by one until the desired element is found or the list ends.
Sorting
The process of arranging data in a particular order, such as ascending or descending.
Array
A collection of items stored at contiguous memory locatin; each item can be accessed using an index
Binary Search
A search algorithim that finds the position of a target value within a sorted array by repeatedly dividing the search interval in half
String
A sequence of characters treated as a single data item; commonly used to represent text