HW 3
HW 3
Homework 3
Assigned: 23/12/2013
Due: 31/12/2013, 17:00
Questions
1. (20pts) State whether the following statements are true or not. You must give a BRIEF explanation
or show a counter example to receive full credit.
2. (20pts) Give a Turing Machine that decides language L = {w ∈ {0, 1}∗ : n0 (w) 6= 2n1 (w)}.
3. (20pts) A multiple-head Turing machine has m heads reading cells of one tape. A move of this TM
depends on the state and on the symbol scanned by each head. In one move, the TM can change
state, write a new symbol on the cell scanned by each head, and can move each head left, right,
or keep it stationary. Since several heads may be scanning the same cell, we assume the heads are
numbered 1 through m, and the symbol written by the highest numbered head scanning a given
cell is the one that actually gets written there. Show that this variant of TM model is equivalent
to ordinary TM model.
4. (20pts) Disprove (by reduction) or prove that the following languages are decidable.
LC = {w : w ∈ LA and wR ∈ LB }
(a) Let A and B be deciders for languages LA and LB , respectively. Construct a decider C for
language LC .
(b) Let language LB be decidable. Prove that LA is decidable if LC is decidable.