18-space-complexity

18-space-complexity - Space Complexity Time and space are...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Space Complexity Time and space are two of the most important considerations when we seek practical solutions to computational problems. Space complexity shares many of the same features of time complexity Therefore, space complexity serves as a further way of classifying problems according to their computational difficulty. We will continue to use the TM as our model, but now we look at the tape space it consumes during its computation. –p
Background image of page 1

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

View Full DocumentRight Arrow Icon
Space Complexity Definition: Let M be a deterministic TM that halts on all inputs. We define the space complexity of M to be the function f : N N , where f ( n ) is the maximum number of tape cells that M scans on any input of length n . If the space complexity of M is f ( n ) , then we also say that M runs in space f ( n ) . If M is a nondeterministic TM wherein all branches halt on all inputs we define its space complexity f ( n ) to be the maximum number of tape cells that M scans on any branch of its computation on any input of length n . –p
Background image of page 2
Space Complexity Definition: Let f : N R + be a function. The space complexity classes , SPACE ( f ( n )) and NSPACE ( f ( n )) , are defined as follows,
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

18-space-complexity - Space Complexity Time and space are...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online