1. Prove that the language
= {
:
are natural numbers.} is non-regular.
2. For the grammar given below answer the following questions:
(a) What kind of grammar is it ? Regular, context-free, context-sensitive or phrase structure ?
(b) Describe the strings generated by the grammar.
where
and
are terminals,
and
are nonterminals
and
is the start symbol.
3 (a) Using the basic Turing machines
and
, construct a Turing machine
that accepts (but not decides) the language
= {
:
are natural numbers.}.
(b) Repeat (a) for a Turing machine that decides the language
.
4 (a) Explain the relationship between the solvability of a decision problem (i.e. yes-no question)
and the decidability of the language corresponding to the decision problem.
(b) Explain in what sense unsolvable problems such as the "Halting Problem" are unsolvable.
5. Following the Kleene's theorem, construct an
that accepts
the language represented
by the regular expression
. DO NOT SIMPLIFY.
6 (a) Find a string of minimum length in
not in the language
corresponding to the regular expression
.
(b) Find a string in
corresponding to neither
nor
, where
and
.
(c) Simplify the regular expression