Presentation is loading. Please wait.

Presentation is loading. Please wait.

Umans Complexity Theory Lectures Lecture 2b: A P-Complete Problem.

Similar presentations


Presentation on theme: "Umans Complexity Theory Lectures Lecture 2b: A P-Complete Problem."— Presentation transcript:

1 Umans Complexity Theory Lectures Lecture 2b: A P-Complete Problem

2 2 A P-complete problem We don’t know how to prove L ≠ P But, can identify problems in P least likely to be in L using P- completeness. need stronger notion of reduction (why?) yes no yes no L1L1 L2L2 f f

3 3 A P-complete problem logspace reduction: f computable by TM that uses O(log n) space –denoted “L 1 ≤ L L 2 ” If L 2 is P-complete, then L 2 in L implies L = P (homework problem)

4 4 A P-complete problem Circuit Value (CVAL): given a variable-free Boolean circuit (gates , , , 0, 1), does it output 1? Theorem: CVAL is P-complete. Proof: –already argued in P –L arbitrary language in P, TM M decides L in n c steps

5 5 A P-complete problem Tableau (configurations written in an array) for machine M on input w: w1/qsw1/qs w2w2 …wnwn _ … w1w1 w2/q1w2/q1 …wnwn _ … w1/q1w1/q1 a…wnwn _ … _/q a _…__ …............ height = time taken = |w| c width = space used ≤ |w| c

6 6 A P-complete problem Important observation: contents of cell in tableau determined by 3 others above it: a/q 1 ba b/q 1 a a a aba b

7 7 A P-complete problem Can build Boolean circuit STEP –input (binary encoding of) 3 cells –output (binary encoding of) 1 cell ab/q 1 a a STEP each output bit is some function of inputs can build circuit for each size is independent of size of tableau

8 8 A P-complete problem |w| c copies of STEP compute row i from i-1 w1/qsw1/qs w2w2 …wnwn _ … w1w1 w2/q1w2/q1 …wnwn _ …............ Tableau for M on input w … … STEP

9 9 A P-complete problem w 1/ q s w2w2 …wnwn _ … STEP............ 1 iff cell contains q accept ignore these This circuit C M, w has inputs w 1 w 2 …w n and C(w) = 1 iff M accepts input w. logspace reduction Size = O(|w| 2c ) w1w1 w2w2 wnwn

10 10 Answer to question   10   101  Can we evaluate an n node Boolean circuit using O(log n) space? NO! (probably) CVAL in L if and only if L = P


Download ppt "Umans Complexity Theory Lectures Lecture 2b: A P-Complete Problem."

Similar presentations


Ads by Google