Intractability
[25/52%]ᴬ Prove that .
ᴬ Prove that .
ᴬ Prove that .
Show how the circuit depicted in Figure 9.26 computes on input 0110 by showing the values computed by all of the gates, as we did in Figure 9.24.
Give a circuit that computes the parity function on three input variables and show how it computes on input 011.
Prove that if , then .
Give regular expressions with exponentiation that generate the following languages over the alphabet .
ᴬ All strings of length 500
ᴬ All strings of length 500 or less
ᴬ All strings of length 500 or more
ᴬ All strings of length different than 500
All strings that contain exactly 500 1s
All strings that contain at least 500 1s
All strings that contain at most 500 1s
All strings of length 500 or more that contain a 0 in the 500th position
All strings that contain two 0s that have at least 500 symbols between them
If is a regular expression, let represent the expression
Show how to implement the operator, using the ordinary exponentiation operator, but without "…".
Show that if , then coNP.
Problem 8.13 showed that is PSPACE-complete.
Do we know whether ? Explain your answer.
Do we know whether ? Explain your answer.
Show that the language MAX-CLIQUE from Problem 7.48 is in .
Problem 7.48: MAX-CLIQUE .
Describe the error in the following fallacious "proof" that . Assume that and obtain a contradiction. If , then SAT and so for some , . Because every language in NP is polynomial time reducible to , you have . Therefore, . But by the time hierarchy theorem, contains a language that isn't in , which contradicts . Therefore, .
Consider the function pad : that is defined as follows. Let , where and is the length of . Thus, simply adds enough copies of the new symbol to the end of so that the length of the result is at least . For any language and function , define the language as
Prove that if , then .
Prove that if NEXPTIME EXPTIME, then . You may find the function pad, defined in Problem 9.13, to be helpful.
ᴬ Define pad as in Problem 9.13.
Problem 9.13: Consider the function pad : that is defined as follows. Let , where and is the length of . Thus, simply adds enough copies of the new symbol to the end of so that the length of the result is at least . For any language and function , define the language as
Prove that for every and natural number iff .
Prove that .
Prove that .
- Read the definition of a 2DFA (two-headed finite automaton) given in Problem 5.26. Prove that P contains a language that is not recognizable by a 2DFA.
Problem 5.26: A two-headed finite automaton (2DFA) is a deterministic finite automaton that has two read-only, bidirectional heads that start at the left-hand end of the input tape and can be independently controlled to move in either direction. The tape of a 2DFA is finite and is just large enough to contain the input plus two additional blank tape cells, one on the left-hand end and one on the right-hand end, that serve as delimiters. A 2DFA accepts its input by entering a special accept state.
Let . Show that P.
Define the unique-sat problem to be
Show that USAT .
Prove that an oracle exists for which .
A k-query oracle Turing machine is an oracle Turing machine that is permitted to make at most queries on each input. A -query oracle Turing machine with an oracle for is written . Define to be the collection of languages that are decidable by polynomial time -query oracle Turing machines with an oracle for .
Show that .
Assume that . Show that .
Suppose that and are two oracles. One of them is an oracle for , but you don't know which. Give an algorithm that has access to both and , and that is guaranteed to solve TQBF in polynomial time.
Recall that you may consider circuits that output strings over by designating several output gates. Let take two bit binary integers and produce the bit sum. Show that you can compute the function with size circuits.
Define the function as
Thus, the function returns the majority vote of the inputs. Show that can be computed with:
size circuits.
size circuits. (Hint: Recursively divide the number of inputs in half and use the result of Problem 9.23.)
- Define the function as in Problem 9.24. Show that it may be computed with size circuits.
Problem 9.24: The function is
Thus, the function returns the majority vote of the inputs.