Unit 6 ✔️ Flashcards

1
Q

Problem

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Algorithm

A

a finite set of instructions that accomplish a task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Efficiency

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Linear Search

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Binary Search

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Reasonable time

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Unreasonable time

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Heuristic

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Undecidable problem

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Sequential computing

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Parallel computing

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Distributed Computing

A

a model in which programs are run by multiple devices. Used in tandem with parallel computing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Speedup

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Decision Problem

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Optimization Problem

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Sequencing

A

the application of each step of an algorithm in the order in which the code statements are given

17
Q

Selection

A

deciding which steps to do next

18
Q

Iteration

A

doing some steps over and over