Efficient Algorithms and Problem Complexity – Introduction to Problem Complexity –
Frank Drewes Department of Computing Science Ume˚ a University
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 1 / 12
Efficient Algorithms and Problem Complexity Introduction to Problem - - PowerPoint PPT Presentation
Efficient Algorithms and Problem Complexity Introduction to Problem Complexity Frank Drewes Department of Computing Science Ume a University Frank Drewes (Ume a University) Efficient Algorithms and Problem Complexity Lecture 8
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 1 / 12
Outline
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 2 / 12
About Problem Complexity
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 3 / 12
About Problem Complexity
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 4 / 12
About Problem Complexity
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 5 / 12
About Problem Complexity
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 6 / 12
About Problem Complexity
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 7 / 12
Decision Problems and the Class P
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 8 / 12
Decision Problems and the Class P
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 9 / 12
Decision Problems and the Class P
1 With input x, start by computing a “yardstick” Rz = |x|k + c in some
2 Continue precisely like M, but decrease Rz by 1 in each step. 3 Moreover, if Rz ever reaches 0, stop with output 0. Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 10 / 12
Decision Problems and the Class P
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 11 / 12
Decision Problems and the Class P
1 With input x, start by computing M1(x). 2 When M1 has terminated, continue by working like M2.
Frank Drewes (Ume˚ a University) Efficient Algorithms and Problem Complexity Lecture 8 12 / 12