Chapter 7 Complexity
Chapter 7 Complexity
Complexity Theory
Complexity Theory
• Complexity theory is basically the study of what's hard or
easy to solve with a computer.
• The key thing is how the number of steps it takes to solve a
problem grows with the size of the input.
Complexity Theory
Measure of Complexity
• There are two kinds of measures with Complexity Theory:
i. Time Complexity:
– It is a measure of how long a computation takes to execute.
• Example:
– Sorting algorithms
Linear Programming:
NP-complete Problems
All the known NP problems have a remarkable characteristic: They are all
reducible to one another. What this means is that, given any two NP problems
X and Y,