Unit 6: Algorithms 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
2
Q

sequencing

A

putting steps in an order

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

selection

A

deciding which steps to do next

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

iteration

A

doing some steps over and over

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
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
6
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
7
Q

binary search

A

a search algorithm that starts in the middle of a sorted set of numbers and removes half the data; repeats until the desired value is found or all elements have been checked

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

reasonable time

A

algorithms with a polynomial efficiency or lower- constant, linear, square, cube, etc)

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

unreasonable time

A

algorithms with exponential or factorial efficiencies

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

heuristic

A

provides a “good enough” solution to problem for which actual solution is impractical or impossible

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

decision problem

A

a binary problem with a yes or no answer

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

optimization problem

A

a problem with the goal of finding the “best” solution among many

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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
14
Q

sequential computing

A

a model in which programs run in order, one cmd at a time

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

parallel computing

A

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

16
Q

distributed computing

A

a model in which programs are run by multiple devices

17
Q

speedup

A

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