ผลต่างระหว่างรุ่นของ "Computational complexity/hw1"
Jittat (คุย | มีส่วนร่วม) |
Jittat (คุย | มีส่วนร่วม) |
||
(ไม่แสดง 4 รุ่นระหว่างกลางโดยผู้ใช้คนเดียวกัน) | |||
แถว 1: | แถว 1: | ||
− | การบ้าน 1 มี | + | การบ้าน 1 มี 6 ข้อ |
1. (AB-1.7) Define a ''two-dimensional'' Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only <tt>L</tt>eft and <tt>R</tt>ight, but also <tt>U</tt>p and <tt>D</tt>own). Show that for every (time-constructible) <math>T:{\mathbb N}\rightarrow {\mathbb N}</math> and every Boolean function <math>f</math>, if <math>f</math> can be computed in time <math>T(n)</math> using a two-dimensional TM then <math>f\in DTIME(T(n)^2)</math>. | 1. (AB-1.7) Define a ''two-dimensional'' Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only <tt>L</tt>eft and <tt>R</tt>ight, but also <tt>U</tt>p and <tt>D</tt>own). Show that for every (time-constructible) <math>T:{\mathbb N}\rightarrow {\mathbb N}</math> and every Boolean function <math>f</math>, if <math>f</math> can be computed in time <math>T(n)</math> using a two-dimensional TM then <math>f\in DTIME(T(n)^2)</math>. | ||
แถว 9: | แถว 9: | ||
3. (AB-2.23) Prove that <math>\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}</math> | 3. (AB-2.23) Prove that <math>\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}</math> | ||
− | 4. (AB-6.8) A language <math>L\subseteq\{0,1\}^*</math> is sparse if there is a polynomial <math>p</math> such that <math>|L\ | + | 4. (AB-6.8) A language <math>L\subseteq\{0,1\}^*</math> is sparse if there is a polynomial <math>p</math> such that <math>|L\cap\{0,1\}^n|\leq p(n)</math> for every <math>n\in{\mathbb N}</math>. Show that every sparse language is in <math>\mathbf{P}_\mathrm{/poly}</math>. |
− | 5. (AB-7.6) (a) Prove that a language <math>L</math> is in <math>\mathbf{ZPP}</math> iff there exists a polynomial-time PTM <math>M</math> with output in <math>\{0,1,?\}</math> such that for every <math>x\in\{0,1\}^*</math>, with probability 1, <math>M(x)\in\{L(x),?\}</math> and <math>\mathbf{Pr}[M(x)=?]\leq 1/2</math>. | + | 5. (AB-7.5) Recall that, in lecture, we briefly state that one can simulate a coin with head probability <math>p</math>, if the real number <math>p</math> is efficiently computable. Let us study to what extent this claim truly needs the assumption that <math>p</math> is efficiently computable. Describe a real number <math>p</math> such that given a random coin that comes up "Heads" with probability <math>p</math>, a Turing machine can decide an undecidable language in polynomial time. |
+ | |||
+ | : ''Hint:'' Think of the real number <math>p</math> as an advice string. How can its bits be recovered? | ||
+ | |||
+ | 6. (AB-7.6) (a) Prove that a language <math>L</math> is in <math>\mathbf{ZPP}</math> iff there exists a polynomial-time PTM <math>M</math> with output in <math>\{0,1,?\}</math> such that for every <math>x\in\{0,1\}^*</math>, with probability 1, <math>M(x)\in\{L(x),?\}</math> and <math>\mathbf{Pr}[M(x)=?]\leq 1/2</math>. | ||
(b) Show that <math>\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}</math> | (b) Show that <math>\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}</math> | ||
− | |||
− | : '' | + | |
+ | : ''Links:'' [[Computational complexity/hw2|การบ้าน 2]] | ||
+ | |||
+ | [[Category:complexity]] |
รุ่นแก้ไขปัจจุบันเมื่อ 00:25, 15 เมษายน 2564
การบ้าน 1 มี 6 ข้อ
1. (AB-1.7) Define a two-dimensional Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only Left and Right, but also Up and Down). Show that for every (time-constructible) and every Boolean function , if can be computed in time using a two-dimensional TM then .
2. (AB-2.17, 1st half) In the Exactly One 3SAT problem, we are given a 3CNF formula and need to decide if there exists a satisfying assignment for such that every clause of has exactly one True literal. Prove that Exactly One 3SAT is NP-complete.
- Hint: Replace each occurrence of a literal in a clause by a new variable with additional clauses and auxiliary variables ensuring that if is TRUE, then can be either TRUE or FALSE, but if is FALSE, then must be FALSE.
3. (AB-2.23) Prove that
4. (AB-6.8) A language is sparse if there is a polynomial such that for every . Show that every sparse language is in .
5. (AB-7.5) Recall that, in lecture, we briefly state that one can simulate a coin with head probability , if the real number is efficiently computable. Let us study to what extent this claim truly needs the assumption that is efficiently computable. Describe a real number such that given a random coin that comes up "Heads" with probability , a Turing machine can decide an undecidable language in polynomial time.
- Hint: Think of the real number as an advice string. How can its bits be recovered?
6. (AB-7.6) (a) Prove that a language is in iff there exists a polynomial-time PTM with output in such that for every , with probability 1, and .
(b) Show that
- Links: การบ้าน 2