Time_Complexity

# Time_Complexity - TimeComplexity Fall 2006 Costas Busch RPI...

This preview shows pages 1–11. Sign up to view the full content.

Fall 2006 Costas Busch - RPI 1 Time Complexity

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

View Full Document
Fall 2006 Costas Busch - RPI 2 M L Consider a deterministic  Turing Machine which decides  a language
Fall 2006 Costas Busch - RPI 3 For any string       the computation of terminates in a finite amount of transitions w M      Accept or Reject w Initial state

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

View Full Document
Fall 2006 Costas Busch - RPI 4      Accept or Reject w Decision  Time  = #transitions Initial state
Fall 2006 Costas Busch - RPI 5 Consider now all strings of length n ) (n T M = maximum time required to decide    any string of length  n

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

View Full Document
Fall 2006 Costas Busch - RPI 6 ) (n T M Max time to accept a string of length      n 1 2 3 4 n STRING LENGTH TIME
Fall 2006 Costas Busch - RPI 7 Time Complexity Class: )) ( ( n T TIME All Languages decidable by a deterministic Turing  Machine in time                     1 L 2 L 3 L )) ( ( n T O

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

View Full Document
Fall 2006 Costas Busch - RPI 8 Example: } 0 : { 1 = n b a L n This can be decided in           time ) (n O ) (n TIME } 0 : { 1 = n b a L n
Fall 2006 Costas Busch - RPI 9 ) (n TIME } 0 : { 1 = n b a L n } 0 , : { k n aba ab n } even   is   : { n b n Other example problems in the same class } 3 : { k n b n =

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

View Full Document
Fall 2006 Costas Busch - RPI 10 ) ( 2 n TIME } 0 : { n b a n n Examples in class: }} , { : { b a w ww R }} , { : { b a w ww
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern