Next: About this document ...
Up: PROBLEM COMPLEXITY
Previous: PROBLEM COMPLEXITY
(Worst case) Complexity of a problem is the min
number of operations
needed to solve the problem in the worst case using
particular resources.
eg. Matrix Multiplication
- for
1 to
for
1 to
-
- for
to
- Basic operation: Multiplication (addition can be ignored)
- lower bound on number of multiplications
lower bound on the problem complexity of matrix multiplication =
.
- best algorithm found has time complexity
- Average-Case Problem Complexity
-
- Space complexity of a problem
-
- matrix multiplication
- sorting on comparison model
.
- matching parentheses
.
Sushil_Prasad
2012-08-23