Lecture 10: Space Complexity III Arijit Bishnu 27.03.2010 Space - - PowerPoint PPT Presentation

lecture 10 space complexity iii
SMART_READER_LITE
LIVE PREVIEW

Lecture 10: Space Complexity III Arijit Bishnu 27.03.2010 Space - - PowerPoint PPT Presentation

Space Complexity Classes: NL and L Reductions NL -completeness The Relation between NL and coNL A Relation Among the Lecture 10: Space Complexity III Arijit Bishnu 27.03.2010 Space Complexity Classes: NL and L Reductions NL -completeness The


slide-1
SLIDE 1

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Lecture 10: Space Complexity III

Arijit Bishnu 27.03.2010

slide-2
SLIDE 2

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Outline

1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes

slide-3
SLIDE 3

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Outline

1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes

slide-4
SLIDE 4

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Space Complexity Classes

Definition for Recapitulation PSPACE =

c>0 SPACE(nc). The class PSPACE is an analog of

the class P.

slide-5
SLIDE 5

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Space Complexity Classes

Definition for Recapitulation PSPACE =

c>0 SPACE(nc). The class PSPACE is an analog of

the class P. Definition for Recapitulation NPSPACE =

c>0 NSPACE(nc). The class NPSPACE is an

analog of the class NP.

slide-6
SLIDE 6

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Space Complexity Classes

Definition for Recapitulation PSPACE =

c>0 SPACE(nc). The class PSPACE is an analog of

the class P. Definition for Recapitulation NPSPACE =

c>0 NSPACE(nc). The class NPSPACE is an

analog of the class NP. Definition L = SPACE(log n).

slide-7
SLIDE 7

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Space Complexity Classes

Definition for Recapitulation PSPACE =

c>0 SPACE(nc). The class PSPACE is an analog of

the class P. Definition for Recapitulation NPSPACE =

c>0 NSPACE(nc). The class NPSPACE is an

analog of the class NP. Definition L = SPACE(log n). Definition NL = NSPACE(log n).

slide-8
SLIDE 8

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Examples

Is the following in L? Check whether the following language is in L? EVEN = {x | x has an even number of 1s}.

slide-9
SLIDE 9

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Examples

Is the following in L? Check whether the following language is in L? EVEN = {x | x has an even number of 1s}. Is the following in L? Check whether the following language is in L? A = {0k1k | k ≥ 0}

slide-10
SLIDE 10

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

A Certificate Based Definition of NL

Recall the Definition of the Class NP A language L ⊆ {0, 1}∗ is in NP if there exists a polynomial p : N → N and a polynomial-time TM M such that for every x ∈ {0, 1}∗, x ∈ L ⇐ ⇒ ∃u ∈ {0, 1}p(|x|) such that M(x, u) = 1 If x ∈ L and u ∈ {0, 1}p(|x|) satisfy M(x, u) = 1, then we call u a certificate for x (w.r.t. language L and machine M).

slide-11
SLIDE 11

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

A Certificate Based Definition of NL

Recall the Definition of the Class NP A language L ⊆ {0, 1}∗ is in NP if there exists a polynomial p : N → N and a polynomial-time TM M such that for every x ∈ {0, 1}∗, x ∈ L ⇐ ⇒ ∃u ∈ {0, 1}p(|x|) such that M(x, u) = 1 If x ∈ L and u ∈ {0, 1}p(|x|) satisfy M(x, u) = 1, then we call u a certificate for x (w.r.t. language L and machine M). The idea for this definition was that the nondeterministic choices of the NDTM that result in acceptance can be viewed as a polynomial sized certificate that x ∈ L and vice versa.

slide-12
SLIDE 12

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

A Certificate Based Definition of NL

Recall the Definition of the Class NP A language L ⊆ {0, 1}∗ is in NP if there exists a polynomial p : N → N and a polynomial-time TM M such that for every x ∈ {0, 1}∗, x ∈ L ⇐ ⇒ ∃u ∈ {0, 1}p(|x|) such that M(x, u) = 1 If x ∈ L and u ∈ {0, 1}p(|x|) satisfy M(x, u) = 1, then we call u a certificate for x (w.r.t. language L and machine M). The idea for this definition was that the nondeterministic choices of the NDTM that result in acceptance can be viewed as a polynomial sized certificate that x ∈ L and vice versa. A logspace NDTM, according to the concept of configuration graph that we studied, can generate a certificate that is polynomially long but it does not have the space to store it.

slide-13
SLIDE 13

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

A Certificate Based Definition of NL continued...

So, we assume a separate read-only tape for the logspace

  • machine. We call this tape to be the certificate tape.
slide-14
SLIDE 14

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

A Certificate Based Definition of NL continued...

So, we assume a separate read-only tape for the logspace

  • machine. We call this tape to be the certificate tape.

At each step, the machine’s head on this tape can either stay in place or move right. Thus, the tape is a read once tape.

slide-15
SLIDE 15

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Certificate Based Definition of NL

slide-16
SLIDE 16

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Certificate Based Definition of NL

slide-17
SLIDE 17

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Certificate Based Definition of NL

Definition: Class NL A language L ⊆ {0, 1}∗ is in NL if there exists a polynomial p : N → N and a deterministic TM M using at most O(log |x|) space on its read/write tape for every input x and M has a certificate tape, such that for every x ∈ {0, 1}∗, x ∈ L ⇐ ⇒ ∃u ∈ {0, 1}p(|x|) such that M(x, u) = 1 M(x, u) denotes the output of M where x is placed on its input tape and u is placed on its certificate tape.

slide-18
SLIDE 18

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Example

Is the following in NL? Check whether the following language is in NL? PATH = {< G, s, t > | G is a directed graph in which there is a path from s to t}. G has n nodes.

slide-19
SLIDE 19

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Example

Is the following in NL? Check whether the following language is in NL? PATH = {< G, s, t > | G is a directed graph in which there is a path from s to t}. G has n nodes. Solution: PATH ∈ NL Generate the certificate on the certificate tape and verify it.

slide-20
SLIDE 20

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Relations between Classes L, NL and P

The Relation between L, NL and P L ⊆ NL ⊆ P

slide-21
SLIDE 21

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Relations between Classes L, NL and P

The Relation between L, NL and P L ⊆ NL ⊆ P Proof

slide-22
SLIDE 22

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Relations between Classes L, NL and P

The Relation between L, NL and P L ⊆ NL ⊆ P Proof It is easy to follow the relation L ⊆ NL.

slide-23
SLIDE 23

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Relations between Classes L, NL and P

The Relation between L, NL and P L ⊆ NL ⊆ P Proof It is easy to follow the relation L ⊆ NL. About the second part, look at the number of vertices (i.e. configurations) in the configuration graph corresponding to a language A in NL. The number of vertices is 2O(log n) which is surely a polynomial in n, the input size.

slide-24
SLIDE 24

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Relations between Classes L, NL and P

The Relation between L, NL and P L ⊆ NL ⊆ P Proof It is easy to follow the relation L ⊆ NL. About the second part, look at the number of vertices (i.e. configurations) in the configuration graph corresponding to a language A in NL. The number of vertices is 2O(log n) which is surely a polynomial in n, the input size. Just run through the polynomial number of configurations in polynomial time to find the accept or reject configuration. So, A ∈ P. Hence, NL ⊆ P.

slide-25
SLIDE 25

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Outline

1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes

slide-26
SLIDE 26

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Reductions

The essence of reductions is to set up difficulty hierarchy among problems keeping in mind the complexity phenomenon (say P vs NP) we want to understand.

slide-27
SLIDE 27

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Reductions

The essence of reductions is to set up difficulty hierarchy among problems keeping in mind the complexity phenomenon (say P vs NP) we want to understand. The reduction cannot be more powerful than the weaker class.

slide-28
SLIDE 28

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Reductions

The essence of reductions is to set up difficulty hierarchy among problems keeping in mind the complexity phenomenon (say P vs NP) we want to understand. The reduction cannot be more powerful than the weaker class. So, to understand the relation between P and NP, we used polynomial reduction.

slide-29
SLIDE 29

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Reductions

The essence of reductions is to set up difficulty hierarchy among problems keeping in mind the complexity phenomenon (say P vs NP) we want to understand. The reduction cannot be more powerful than the weaker class. So, to understand the relation between P and NP, we used polynomial reduction. We understand that we cannot use polynomial reduction for understanding the complexity question whether L = NL?

slide-30
SLIDE 30

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Reductions

The essence of reductions is to set up difficulty hierarchy among problems keeping in mind the complexity phenomenon (say P vs NP) we want to understand. The reduction cannot be more powerful than the weaker class. So, to understand the relation between P and NP, we used polynomial reduction. We understand that we cannot use polynomial reduction for understanding the complexity question whether L = NL? So, we use logspace reductions.

slide-31
SLIDE 31

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Reductions

The essence of reductions is to set up difficulty hierarchy among problems keeping in mind the complexity phenomenon (say P vs NP) we want to understand. The reduction cannot be more powerful than the weaker class. So, to understand the relation between P and NP, we used polynomial reduction. We understand that we cannot use polynomial reduction for understanding the complexity question whether L = NL? So, we use logspace reductions. Any reduction takes an input instance of size n and maps it to another instance of size at least n.

slide-32
SLIDE 32

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Reductions

The essence of reductions is to set up difficulty hierarchy among problems keeping in mind the complexity phenomenon (say P vs NP) we want to understand. The reduction cannot be more powerful than the weaker class. So, to understand the relation between P and NP, we used polynomial reduction. We understand that we cannot use polynomial reduction for understanding the complexity question whether L = NL? So, we use logspace reductions. Any reduction takes an input instance of size n and maps it to another instance of size at least n. But, a logspace machine does not have the memory space to write the reduced instance. So, what to do?

slide-33
SLIDE 33

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Logspace Reduction

Definition: Logspace Computable Function A logspace reducer is a TM M with O(log n) space (symbols) on its read/write tape that computes a function f : {0, 1}∗ → {0, 1}∗ where f (x) is the string remaining on the output tape after M halts when it is started with x ∈ {0, 1}∗ on its input tape. We term such an f as a logspace computable function.

slide-34
SLIDE 34

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Logspace Reduction

Definition: Logspace Computable Function A logspace reducer is a TM M with O(log n) space (symbols) on its read/write tape that computes a function f : {0, 1}∗ → {0, 1}∗ where f (x) is the string remaining on the output tape after M halts when it is started with x ∈ {0, 1}∗ on its input tape. We term such an f as a logspace computable function. Definition: Logspace Reducibility A language A is logspace reducible to a language B, denoted as A ≤L B, if there is a logspace computable function f : {0, 1}∗ → {0, 1}∗ such that x ∈ A iff f (x) ∈ B for every x ∈ {0, 1}∗.

slide-35
SLIDE 35

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Properties of Logspace Reducibility

Transitivity If A ≤L B and B ≤L C, then A ≤L C. Proof Left as an exercise.

slide-36
SLIDE 36

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Properties of Logspace Reducibility

Theorem If A ≤L B and B ∈ L, then A ∈ L. Proof Does the idea from ≤P carry over?

slide-37
SLIDE 37

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Properties of Logspace Reducibility

Theorem If A ≤L B and B ∈ L, then A ∈ L. Proof Does the idea from ≤P carry over? We need to show a logspace machine MA for A. Let f be the logspace computable function corresponding to ≤L.

slide-38
SLIDE 38

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Properties of Logspace Reducibility

Theorem If A ≤L B and B ∈ L, then A ∈ L. Proof Does the idea from ≤P carry over? We need to show a logspace machine MA for A. Let f be the logspace computable function corresponding to ≤L. MA computes individual symbols of f (x) as requested by MB, which is B’s machine.

slide-39
SLIDE 39

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Properties of Logspace Reducibility

Theorem If A ≤L B and B ∈ L, then A ∈ L. Proof Does the idea from ≤P carry over? We need to show a logspace machine MA for A. Let f be the logspace computable function corresponding to ≤L. MA computes individual symbols of f (x) as requested by MB, which is B’s machine. MA keeps track of where MB’s input head would be on f (x).

slide-40
SLIDE 40

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Properties of Logspace Reducibility

Theorem If A ≤L B and B ∈ L, then A ∈ L. Proof Does the idea from ≤P carry over? We need to show a logspace machine MA for A. Let f be the logspace computable function corresponding to ≤L. MA computes individual symbols of f (x) as requested by MB, which is B’s machine. MA keeps track of where MB’s input head would be on f (x). Every time MB moves, MA restarts the computation of f on x from the beginning and ignores all output except for the desired location of f (x). This takes too much time but who cares as we are bothered about space.

slide-41
SLIDE 41

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Properties of Logspace Reducibility

Theorem If A ≤L B and B ∈ L, then A ∈ L. Proof Does the idea from ≤P carry over? We need to show a logspace machine MA for A. Let f be the logspace computable function corresponding to ≤L. MA computes individual symbols of f (x) as requested by MB, which is B’s machine. MA keeps track of where MB’s input head would be on f (x). Every time MB moves, MA restarts the computation of f on x from the beginning and ignores all output except for the desired location of f (x). This takes too much time but who cares as we are bothered about space. We need to store a single symbol of f (x) at any point.

slide-42
SLIDE 42

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Outline

1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes

slide-43
SLIDE 43

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL-completeness

Definition A language A is NL-complete if A ∈ NL. for every B in NL, we have B ≤L A.

slide-44
SLIDE 44

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL-completeness

Definition A language A is NL-complete if A ∈ NL. for every B in NL, we have B ≤L A. Corollary If any NL-complete language is in L, then L = NL.

slide-45
SLIDE 45

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL-completeness

Definition A language A is NL-complete if A ∈ NL. for every B in NL, we have B ≤L A. Corollary If any NL-complete language is in L, then L = NL. Proof Easy and left as an exercise.

slide-46
SLIDE 46

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

PATH is NL-complete

PATH PATH = {< G, s, t > | G is a directed graph in which there is a path from s to t}. G has n nodes. Theorem PATH is NL-complete. Proof PATH ∈ NL.

slide-47
SLIDE 47

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

PATH is NL-complete

PATH PATH = {< G, s, t > | G is a directed graph in which there is a path from s to t}. G has n nodes. Theorem PATH is NL-complete. Proof PATH ∈ NL. Let A be any language in NL that was decided by a logspace TM M. We have to define a logspace computable function f that logspace reduces A to PATH.

slide-48
SLIDE 48

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

PATH is NL-complete

PATH PATH = {< G, s, t > | G is a directed graph in which there is a path from s to t}. G has n nodes. Theorem PATH is NL-complete. Proof PATH ∈ NL. Let A be any language in NL that was decided by a logspace TM M. We have to define a logspace computable function f that logspace reduces A to PATH. Look at the configuration graph GM,x. The number of vertices = 2O(log n).

slide-49
SLIDE 49

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

PATH is NL-complete

PATH PATH = {< G, s, t > | G is a directed graph in which there is a path from s to t}. G has n nodes. Theorem PATH is NL-complete. Proof PATH ∈ NL. Let A be any language in NL that was decided by a logspace TM M. We have to define a logspace computable function f that logspace reduces A to PATH. Look at the configuration graph GM,x. The number of vertices = 2O(log n). f (x) has a relation with GM,x.

slide-50
SLIDE 50

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Proof Continued

Proof (continued) In GM,x, ∃ a path from C x

s to Cacc iff M accepts x.

slide-51
SLIDE 51

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Proof Continued

Proof (continued) In GM,x, ∃ a path from C x

s to Cacc iff M accepts x.

GM,x is represented by an adjacency matrix A.

slide-52
SLIDE 52

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Proof Continued

Proof (continued) In GM,x, ∃ a path from C x

s to Cacc iff M accepts x.

GM,x is represented by an adjacency matrix A. A[i, j] = 1 iff there is an edge from configuration (vertex) Ci to configuration (vertex) Cj in GM,x.

slide-53
SLIDE 53

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Proof Continued

Proof (continued) In GM,x, ∃ a path from C x

s to Cacc iff M accepts x.

GM,x is represented by an adjacency matrix A. A[i, j] = 1 iff there is an edge from configuration (vertex) Ci to configuration (vertex) Cj in GM,x. Can A be computed by a logspace reduction?

slide-54
SLIDE 54

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

The Proof Continued

Proof (continued) In GM,x, ∃ a path from C x

s to Cacc iff M accepts x.

GM,x is represented by an adjacency matrix A. A[i, j] = 1 iff there is an edge from configuration (vertex) Ci to configuration (vertex) Cj in GM,x. Can A be computed by a logspace reduction? Given a pair < Ci, Cj >, a deterministic machine can in space |Ci| + |Cj| = O(log |x|) examine Ci and Cj and can determine whether Cj is one of the at most two configurations that can follow Ci according to δ of M.

slide-55
SLIDE 55

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and P

A relook at the Theorem NL ⊆ P For any A ∈ NL, we have A ≤L PATH.

slide-56
SLIDE 56

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and P

A relook at the Theorem NL ⊆ P For any A ∈ NL, we have A ≤L PATH. The TM that computes ≤L goes through at most polynomial configurations (2O(log n)) and hence, runs in polynomial time.

slide-57
SLIDE 57

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and P

A relook at the Theorem NL ⊆ P For any A ∈ NL, we have A ≤L PATH. The TM that computes ≤L goes through at most polynomial configurations (2O(log n)) and hence, runs in polynomial time. So, any A ∈ NL is poly-time reducible to PATH, i.e. A ≤P PATH.

slide-58
SLIDE 58

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and P

A relook at the Theorem NL ⊆ P For any A ∈ NL, we have A ≤L PATH. The TM that computes ≤L goes through at most polynomial configurations (2O(log n)) and hence, runs in polynomial time. So, any A ∈ NL is poly-time reducible to PATH, i.e. A ≤P PATH. PATH ∈ P.

slide-59
SLIDE 59

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and P

A relook at the Theorem NL ⊆ P For any A ∈ NL, we have A ≤L PATH. The TM that computes ≤L goes through at most polynomial configurations (2O(log n)) and hence, runs in polynomial time. So, any A ∈ NL is poly-time reducible to PATH, i.e. A ≤P PATH. PATH ∈ P. A ≤P PATH and PATH ∈ P, so A ∈ P.

slide-60
SLIDE 60

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Outline

1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes

slide-61
SLIDE 61

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and its complement class coNL

PATH A decision problem for PATH accepts when there is no path from s to t in G.

slide-62
SLIDE 62

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and its complement class coNL

PATH A decision problem for PATH accepts when there is no path from s to t in G. Theorem PATH ∈ NL

slide-63
SLIDE 63

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and its complement class coNL

PATH A decision problem for PATH accepts when there is no path from s to t in G. Theorem PATH ∈ NL Proof Left as an exercise. Hints: Use the certificate definition of NL.

slide-64
SLIDE 64

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

NL and its complement class coNL

PATH A decision problem for PATH accepts when there is no path from s to t in G. Theorem PATH ∈ NL Proof Left as an exercise. Hints: Use the certificate definition of NL. Theorem NL = coNL.

slide-65
SLIDE 65

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

Outline

1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes

slide-66
SLIDE 66

Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the

A Relation between NSPACE and coNSPACE

Theorem For every space constructible S(n) > log n, NSPACE(S(n)) = coNSPACE(S(n)). Inclusion Relation DTIME(x) ⊆ SPACE(x) ⊆ NSPACE(x) = coNSPACE(x) ⊆ DTIME(2O(x)) where x denotes S(n).