Computational complexity/hw1

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา

การบ้าน 1 มี xx ข้อ

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 auxiliary variables ensuring of 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 .