Unit 10 - Algorithms Review

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

1/19

flashcard set

Earn XP

Description and Tags

AP CSP

Last updated 2:56 AM on 4/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Problem

  • A general description of a task that can (or cannot) be solved with an algorithm

2
New cards

Algorithm

  • A finite set of instructions that accomplish a task

3
New cards

Building Blocks

  • All algorithms can be created by combining three types of steps: sequencing, selection, iteration

4
New cards

Sequencing

  • putting steps in a specific order

5
New cards

Selection

  • deciding which steps to do next based on a condition

6
New cards

Iteration

  • repeating some steps over and over again

7
New cards

Efficiency

  • a measure of how many steps are required to complete an algorithm

8
New cards

Linear Search

  • a search algorithm that checks every element of a list in order until the value is found or all elements are checked

  • as you add more inputs, the number of steps grows at the same rate

9
New cards

Binary Search

  • a search algorithm that starts at the middle of a SORTED set of numbers and eliminated half of the remaining data with each step

  • much faster than linear search for large datasets but the data must be sorted first

10
New cards

Reasonable Time

  • algorithms with polynomial efficiency or lower(such as constant, linear, square, or cube) are considered to run in this time

11
New cards

Unreasonable Time

  • algorithms with exponential or factorial efficiencies are considered this because the number of steps grows to quickly to be practical for large inputs

12
New cards

Decision Problem

  • a problem with yes or no answer

13
New cards

Optimization Problem

  • a problem where the goal is to find the “best“ solution among many possibilities

14
New cards

Heuristic

  • a technique that provides a good enough solution to a problem when an actual. perfect solution is impossible/impractical to calculate in a reasonable time

15
New cards

Undecidable Problem

  • a problem for which no algorithm can ever be built that is always capable of providing a correct yes or no answer

  • An example is the Halting problem

16
New cards

Sequential Computing

  • a model where steps are performed one at a time, in order

17
New cards

Parallel Computing

  • a model where some steps are performed at the same time to speed up the process

18
New cards

Distributed Computing

  • multiple devices are used together to run a program or solve a problem

19
New cards

Speedup

  • calculated by dividing the time it takes for a sequential solution by the time it takes for a parallel solution

20
New cards

Limitations

  • speedup is NEVER EQUAL to the number of processes used because some portions of an algorithm cannot be made parallel and eventually reach a limit