Chapter 4 Flashcards
1
Q
Does the analysis of algorithm gives real time of execution
A
Yes
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
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
4
Q
What is asypmtotic growth rate of the function
A
theta (n square)
5
Q
What is summation
A
adding
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