Unit I Flashcards

1
Q

sequence of unambiguous instructions for solving a problem

A

Algorithm

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

algorithms that executes instructions one after another, one operation at a time.

A

Sequential Algorithm

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

expressing algorithm by a collection of connected geometric shapes

A

Flow Chart

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

Efficiency indicates how fast the algorithm runs.

A

Time Efficiency

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

Efficiency indicates how much extra memory the algorithm needs.

A

Space Efficiency

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

preserves the relative order of any two equal elements in its input.

A

Stable Algorithm

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

Efficiency for which the algorithm runs the longest among all possible inputs of that size.

A

Worst Case Efficiency

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

Efficiency for which the algorithm runs fastest among all possible inputs of that size.

A

Best Case Efficiency

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

h ϵ O(g); g ϵ θ(n^2) then h ϵ θ(n^2)

A

Transitivity

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

t1(n) ϵ Ο(g1(n)) and t2(n) ϵ Ο(g2(n)),

t1.t2 ϵ Ο(g1, g2)

A

Rule of Product

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

t1(n) ϵ Ο(g1(n)) and t2(n) ϵ Ο(g2(n)),

t1(n) + t2(n) ϵ Ο(max{g1(n), g1(n)})

A

Rule of sum

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

Class name that characterizes efficiency of an algorithms with two embedded loops

A

Quadratic

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

Class name that characterizes efficiency of an algorithms with three embedded loops

A

Cubic

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

Class name that characterizes algorithms that generate all subsets of an n-element set

A

exponential

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

Class name that characterizes algorithms that generate all permutations of an n-element set

A

Factorial

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

The principal alternative to the mathematical analysis of an algorithm’s efficiency

A

Empirical Analysis