

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!


CS221: Computational Complexity Prof. Salil Vadhan
9/27 Scribe: Sasha Schwartz
1 Recap 1
2 Explicit Problems 2
3 A Refinement 2
4 Almost Everywhere Hard 3
Relevant reading: Papadimitriou, Sec 7.2. (Does not cover much of the lecture.)
Correction from last lecture: a proper complexity function requires that f (n + 1) ≥ f (n) for all n.
Theorem 1 (Time Hierarchy Theorem) If f (n) ≥ n is a proper complexity function, then TIME(f (n)) ( TIME(n^2 f (n)^2 ).
Proof: We construct a Turing Machine M ∈ TIME(n^2 f (n)^2 ) with M /∈ TIME(f (n)). For a string x, first compute f (|x|), and simulate Mx(x) for f (|x|) steps, where Mx is the Turing Machine associated to the string x. If Mx halts on x in f (|x|) steps, then output the opposite of Mx(x). Otherwise output 0. The Turing Machine M which performs the above sequence of steps runs in time O(|Mx|^2 f (|x|)^2 ) = O(|x|^2 f (|x|)^2 ), but by construction no Turing Machine running in time f (n) agrees with M on every input. Thus M is as desired, and the proof is complete.
What makes this diagonalization work?
Can we identify a specific problem (i.e. language) in TIME(n^2 f (n)^2 ) \ TIME(f (n))? One such language comes from the proof of Theorem 1. With the M defined in the proof we have
L(M ) = Lf = {x : Mx(x) = 0 within f (|x|) steps}.
We can also deduce that the following Bounded Halting problem is hard:
Hf = {〈M, x〉 : M (x) halts within f (|x|) steps}.
We show Hf is hard by relating it to Lf. Let M (^) x′ be a Turing Machine that is identical to Mx except that it goes into an infinite loop when Mx is about to halt and output 1. Then x ∈ Lf if and only if 〈M (^) x′, x〉 ∈ Hf. Notice that if x is of length n, then 〈M (^) x′, x〉 is of length roughly 2n. Therefore Hf ∈ TIME(f (n/2)) ⇒ Lf ∈ TIME(f (n)), and we conclude Hf ∈/ TIME(f (n/2)).
While the languages Lf and Hf are reasonably interesting from a computer science perspective, we’d really like to identify natural intractable problems, e.g. ones that don’t directly refer to computation.
The function n^2 f (n)^2 in Theorem 1, which comes from the running time of a universal Turing Machine, provides a fairly coarse separation. The f (n)^2 part can be improved but it is not so easy (uses a more efficient universal TM which simulates t steps in time O(t log t)), but the n^2 can be easily replaced with any slowly growing function as follows.
Theorem 2 If f (n), g(n) ≥ n are proper complexity functions and g(n) = ω(f (n)^2 ) (meaning that limn→∞ g(n)/f (n)^2 = ∞), then TIME(f (n)) ( TIME(g(n)).
Proof: We describe the steps of a Turing Machine M on an input string x. First compute f (|x|) and g(|x|). Simulate Mx′ (x) for f (|x|) steps where x′^ consists of the first b
g(|x|)/f (|x|)^2 c bits of x. The remainder of the construction and proof mirrors that of the proof of Theorem 1, except that the running time of M is O(|x′|^2 f (|x|)^2 ) = O(g(|x|)), as desired.
An important issue in complexity theory is that for a given “hard problem” L, how “rare” are the “hard instances”? This question can be interpreted in several ways. Consider the language L we constructed in TIME(n^2 f (n)^2 ) \ TIME(f (n)). We know there is no algorithm that always decides L correctly and always runs in time f (n). But we can ask for more, for example: