


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















We have seen that polynomial time reducibility is a very useful concept for classifying problems in NP. In particular, it allowed us to identify the class of the hardest problems in NP , namely, NP -complete problems. This concept is still suitable when studying the class PSPACE , but we will see that it is not suitable for classifying problems in NL. So we need a weaker version of reducibility...
Definition Language L 1 is log space reducible to L 2 , denoted L 1 ā¤L L 2 , if a log-space computable function f exists such that
x ā L 1 ā f (x) ā L 2 Recall that a Turing machine that uses f (n) space runs in nO( 2 f^ (n)) time, so a function computable in log-space is computable in polynomial-time, so L 1 ā¤L L 2 =ā L 1 ⤠L 2
It makes sense to consider problems in NP that are complete with respect to log-space reductions (this is how NP -completeness is defined in Papadimitriou). By the property from the previous slide, every such problem would be NP -complete w.r.t. polynomial time reductions. Interestingly, there is no known example of a problem in NP which is complete w.r.t. polynomial time reductions, but not w.r.t. log-space reductions.
Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges
Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges
Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges
Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges
T does the following:
T does the following:
Exactly as for NP and coNP , we have: if L is NL -complete then L is coNL -complete, if a coNL -complete problem belongs to NL then NL = coNL. REACHABILITY is NL -complete. So, it suffices to show that UNREACHABILITY is in NL. We now have to find a non-deterministic algorithm which uses log space, and which has an accepting computation whenever the input graph G does not contain a path from s to t.
Exactly as for NP and coNP , we have: if L is NL -complete then L is coNL -complete, if a coNL -complete problem belongs to NL then NL = coNL. REACHABILITY is NL -complete. So, it suffices to show that UNREACHABILITY is in NL. We now have to find a non-deterministic algorithm which uses log space, and which has an accepting computation whenever the input graph G does not contain a path from s to t.
Assume first that we know the exact number c of vertices reachable from s in G. Then the algorithm
Assume first that we know the exact number c of vertices reachable from s in G. Then the algorithm