Chapter 4 Flashcards

1
Q

Does the analysis of algorithm gives real time of execution

A

Yes

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

What is polynomial algorithm

A

polynomial time O(n)^k means Number of operations are proportional to power k of the size of input

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

What is exponential algorithm

A

exponential time O(k)^n means Number of operations are proportional to the exponent of the size of input

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

What is asypmtotic growth rate of the function

A

theta (n square)

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

What is summation

A

adding

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

How do we analyze the running time of an algorithm that has complex nested loops

A

Write loops as summations and then solve the summations

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