AP CSP Algorithm Unit

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:13 PM on 5/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

30 Terms

1
New cards

Algorithm

a step-by-step procedure for solving a problem

2
New cards

Efficiency

a measure of how many steps are needed to complete an algorithm

3
New cards

Linear Search Algorithm

a search algorithm which checks each element of a list, in order, until the desired value is found or all elements in the list have been checked.

4
New cards

Binary Search Algorithm

a search algorithm that starts at the middle of a sorted set of numbers and removes half of the data; this process repeats until the desired value is found or all elements have been eliminated.

5
New cards

reasonable time algorithm

Algorithms with a polynomial efficiency or lower (constant, linear, square, cube, etc.) are said to run in a reasonable amount of time.

6
New cards

unreasonable time algorithm

Algorithms with exponential or factorial efficiencies are examples of algorithms that run in an unreasonable amount of time.

7
New cards

Heuristic

provides a "good enough" solution to a problem when an actual solution is impractical or impossible

8
New cards

Decision Problem

a problem with a yes/no answer (e.g., is there a path from A to B?)

9
New cards

Optimization Problem

a problem with the goal of finding the "best" solution among many (e.g., what is the shortest path from A to B?)

10
New cards

undecidable problem

a problem for which no algorithm can be constructed that is always capable of providing a correct yes-or-no answer

11
New cards

Sequential Computing

a model in which programs run in order, one command at a time.

12
New cards

Parallel Computing

a model in which programs are broken into small pieces, some of which are run simultaneously

13
New cards

distributed computing

a model in which programs are run by multiple devices

14
New cards

Speedup

the time used to complete a task sequentially divided by the time to complete a task in parallel

15
New cards

selection programming structure

allows the computer to make a selection between alternative conditions; decisions choice, if/else

16
New cards

sequential programming structure

instructions that the computer follows in order, one by one, from top to bottom

17
New cards

Iterative Programming

A process of repeating a set of instructions a specified number of times or until a condition is met. Such as in a repetition of a process or a newer version of development in computer science.

18
New cards

Insertion Sort Algorithm

algorithm used to sort a list, will create a temp list

and pulls one item out of the original list at a time

and inserts it into the proper place in the temp list

19
New cards

Bubble Sort Algorithm

Looks at one pair of data at a time, puts them in order, then moves to the right to put the next pair in order, and goes all the way down the line then restarts until all are in order

20
New cards

variable

is a placeholder for a value

21
New cards

data types

are different categories of data that your computer can represent

22
New cards

array

are used to store multiple values in a single variable

23
New cards

Array Index

​The location of an array element, the first index always starts with [1,2...]

24
New cards

elements

are individual values in a list

25
New cards

Boolean Value

a data type that is either true or false.

26
New cards

procedure

a small section of a program that performs a specific task.

27
New cards

parameters

identify values that are passed into a function/ procedure

28
New cards

Arguments

The values that the programmer provides in the function call.

29
New cards

Application Programming Interface (API)

a set of routines, protocols, and tools for building software applications

30
New cards

simulation

A representation of a situation or problem with a similar but simpler model or a more easily manipulated model in order to determine experimental results.