14-time-complexity

14-time-complexity - Complexity Theory Up to now we...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Complexity Theory Up to now we investigated whether a problem is in principle solvable algorithmically, that is, we asked the question whether a particular language is, Decidable: machine halts on all inputs (total computable functions) Turing-Recognizable: machine loops forever on some inputs (partially computable functions) However, we did not investigate the cost of the computation itself - the amount of resources the computation absorbs (time, space, etc. ) In the following we discuss time complexity and space complexity . Furthermore, we assume that we are dealing with total computable functions, that is, the respective language is decidable. – p. 1/
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Time Complexity Definition: Let M be a deterministic TM that halts on all inputs. The running time or time complexity of M is the function f : N N , where f ( n ) is the maximum number of steps that M uses on any input of length n . If f ( n ) is the running time of M , then we say that M runs in time f ( n ) and that M is an f ( n ) time TM. Customarily we use n to represent the length of the input.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern