APCSP Unit 10

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

Algorithm

A finite set of instructions that accomplish a task and solve certain problems. There are usually many algorithms to solve the same problem and many ways to express one algorithm.

2
New cards

Sequencing

Putting steps in an order.

3
New cards

Selection

Deciding which steps to do next.

4
New cards

Iteration

Doing some steps over and over.

5
New cards

Common Algorithms

Determining the maximum or minimum number from two or more numbers; calculating the average of a group of numbers.

6
New cards

Searching

Finding the needed element from everything in the dataset or determining that it is not there.

7
New cards

Linear Search/Sequential Search

A search algorithm which checks each element of a list in order until the desired value is found or all the elements in the list have been checked. The more elements you add the less efficient it will be.

8
New cards

Binary Search

A search algorithm that starts at the middle of the 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; logarithmic curve.

9
New cards

Parallel Processing

Problem is being solved at the same time, which takes a lot of computing space; happens within one machine.

10
New cards

Instance of a Problem

A specific example.

11
New cards

Decision Problem

Has a yes or no answer.

12
New cards

Optimization Problem

A problem that should find the best solution.

13
New cards

Algorithm Efficiency

A measure of how many steps are needed to complete an algorithm; can be determined mathematically.

14
New cards

Polynomial Efficiency

An algorithm whose efficiency includes the variable in the base (n^2).

15
New cards

Exponential Efficiency

An algorithm whose efficiency includes the variable in the exponent (2^n).

16
New cards

Reasonable Time

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

17
New cards

Unreasonable Time

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

18
New cards

Limits of Algorithms

Some problems do not have algorithms efficient enough to solve.

19
New cards

Sequential Computing

Programs run in order, one command at a time.

20
New cards

Parallel Computing

Programs are broken into small pieces, some of which are run simultaneously; faster than distributed computing.

21
New cards

Distributed Computing

Programs are run by multiple devices.

22
New cards

Speedup

Sequential time divided by parallel time.

23
New cards

Heuristic

Provides a "good enough" solution to a problem when the actual solution is impractical or impossible; close enough to use as a solution.

24
New cards

Decidable Problem

An algorithm can be written that results in a correct "yes" or "no" answer for all inputs, like determining if a number is prime.

25
New cards

Undecidable Problem

Does not have an algorithm that can give a correct "yes" or "no" for all the cases of the problem.