Docsity

Problem Set 1 - Algorithms, Computability and Complexity | CS 6505, Assignments of Computer Science

Toggle sidebar
bg1
CS 6505: Algorithms, Computability and
Complexity
Problem Set 1
Due September 13, 2007
Problem 1
1. Show that decidable languages are closed under union and intersection,
that is, if Aand Bare decidable languages, then so are A∪Band
A∩B.
2. Are Turing-recognizable languages closed under union and intersec-
tion? Justify your answer.
Problem 2
Let f(x) = a0+a1x+· · · +anxn,an6= 0, be a univariate polynomial
with integer coefficients. Let amax = max0≤i≤n{|ai|} be the largest absolute
values of all coefficients ai’s. Suppose that f(α) = 0 and |α| ≥ 1. Show that
|α| ≤ n·amax
|an|.
Based on this fact, give an algorithm that decides whether any given uni-
variate polynomial with integer coefficients has an integer root.
Note: The related problem of whether a general multivariate polynomial
equation with integer coefficients (also known as Diophantine Equations)
has a solution in integers, famously known as Hilbert’s 10th Problem, is
undecidable.
Problem 3
It is known that the language
ETM ={hMi:Mis a TM and L(M) = ∅}
is undecidable.
1. Show that the complement ETM is Turing-recognizable.
2. Is ETM Turing-recognizable? Justify your answer.
1
pf2

Partial preview of the text

Download Problem Set 1 - Algorithms, Computability and Complexity | CS 6505 and more Assignments Computer Science in PDF only on Docsity!

CS 6505: Algorithms, Computability and

Complexity

Problem Set 1

Due September 13, 2007

Problem 1

  1. Show that decidable languages are closed under union and intersection, that is, if A and B are decidable languages, then so are A ∪ B and A ∩ B.
  2. Are Turing-recognizable languages closed under union and intersec- tion? Justify your answer.

Problem 2

Let f (x) = a 0 + a 1 x + · · · + anxn, an 6 = 0, be a univariate polynomial with integer coefficients. Let amax = max 0 ≤i≤n {|ai|} be the largest absolute values of all coefficients ai’s. Suppose that f (α) = 0 and |α| ≥ 1. Show that

|α| ≤ n ·

amax |an|

Based on this fact, give an algorithm that decides whether any given uni- variate polynomial with integer coefficients has an integer root.

Note: The related problem of whether a general multivariate polynomial equation with integer coefficients (also known as Diophantine Equations) has a solution in integers, famously known as Hilbert’s 10th Problem, is undecidable.

Problem 3

It is known that the language

ETM = {〈M 〉 : M is a TM and L(M ) = ∅}

is undecidable.

  1. Show that the complement ETM is Turing-recognizable.
  2. Is ETM Turing-recognizable? Justify your answer.

Problem 4

A state of a Turing machine is said to be useless if it is never entered on any input string. Prove that the language

{〈M 〉 : M is a TM that has a useless state}

is undecidable.

Problem 5

For a language L, an enumerator for L is an algorithm that outputs a se- quence w 1 , w 2 ,... , wi,... of strings in Σ∗, such that wi ∈ L for each i ∈ N, and each w ∈ L eventually appears in the sequence (that is, for each w ∈ L, there is some i ∈ N such that w = wi). It is well known that a language is Turing-recognizable if and only if it has an enumerator. (For this reason a Turing-recognizable language is said to be recursively enumerable.)

  1. Read Section 3.2 of Sipser’s textbook for the equivalence between rec- ognizability and enumerability. There is nothing to hand in for this part.
  2. Prove that a language L is decidable if and only if there is an enu- merator that enumerates L in a lexicographic order (for instance, if Σ = { 0 , 1 }, then a lexicographic order of Σ∗^ is ε, 0, 1, 00, 01, 10, 11, 000, 001, ...).

Problem 6

Let A = {〈M 1 〉, 〈M 2 〉,... , 〈Mi〉,.. .} be a Turing-recognizable language con- sisting of the descriptions of some Turing machines, where each Mi is a decider. Prove that there exists a decidable language that is not decidable by any decider Mi whose description appears in A. (Hint: Use diagonaliza- tion. You may find Part (a) of Problem 5 useful.)