Section 4.1

Exercises

[9/100%]
Show
LaTeX
Problem 4.1

ᴬ Answer all parts for the following DFA MM and give reasons for your answers.

?
(a)

Is ⟨M,0100⟩∈ADFA \langle M, 0100\rangle \in A_{\text{DFA }}?

(b)

Is ⟨M,011⟩∈ADFA \langle M, 011\rangle \in A_{\text{DFA }}?

(c)

Is ⟨M⟩∈ADFA \langle M\rangle \in A_{\text{DFA }}?

(d)

Is ⟨M,0100⟩∈AREX \langle M, 0100\rangle \in A_{\text{REX }}?

(e)

Is ⟨M⟩∈EDFA \langle M\rangle \in E_{\text{DFA }}?

(f)

Is ⟨M,M⟩∈EQ⁡DFA \langle M, M\rangle \in \operatorname {EQ}_{\text{DFA }}?

Problem 4.2

Consider the problem of determining whether a DFA and a regular expression are equivalent. Express this problem as a language and show that it is decidable.

?
Problem 4.3

Let ALL⁡DFA ={⟨A⟩∣A is a DFA and L(A)=Σ∗}\operatorname {ALL}_{\text{DFA }}=\left\{ \langle A\rangle \mid A \text{ is a DFA and } L(A)=\Sigma^{*}\right\}. Show that ALL⁡DFA \operatorname {ALL}_{\text{DFA }} is decidable.

?
Problem 4.4

Let AεCFG={⟨G⟩∣G is a CFG that generates ε}A \varepsilon_{\mathrm{CFG}}=\left\{ \langle G\rangle \mid G\text{ is a CFG that generates }\varepsilon \right\}. Show that AεCFGA \varepsilon_{\mathrm{CFG}} is decidable.

?
Problem 4.5

ᴬ Let ETM={⟨M⟩∣M is a TM and L(M)=∅}E_{\mathrm{TM}}=\left\{ \langle M\rangle \mid M\text{ is a TM and }L(M)=\emptyset \right\}. Show that ETM‾\overline{E_{\mathrm{TM}}}, the complement of ETME_{\mathrm{TM}}, is Turing-recognizable.

?
Problem 4.6

Let XX be the set {1,2,3,4,5}\left\{ 1,2,3,4,5\right\} and YY be the set {6,7,8,9,10}\left\{ 6,7,8,9,10\right\}. We describe the functions f:X⟶Yf: X \longrightarrow Y and g:X⟶Yg: X \longrightarrow Y in the following tables. Answer each part and give a reason for each negative answer.

nnf(n)f(n)
16
27
36
47
56
nng(n)g(n)
110
29
38
47
56
?
(a)

ᴬ Is ff one-to-one?

(b)

Is ff onto?

(c)

Is ff a correspondence?

(d)

ᴬ Is gg one-to-one?

(e)

Is gg onto?

(f)

Is gg a correspondence?

Problem 4.7

Let B\mathcal{B} be the set of all infinite sequences over {0,1}\left\{ 0,1\right\}. Show that B\mathcal{B} is uncountable using a proof by diagonalization.

?
Problem 4.8

Let T={(i,j,k)∣i,j,k∈N}T=\left\{ (i, j, k) \mid i, j, k \in \mathcal{N}\right\}. Show that TT is countable.

?
Problem 4.9

Review the way that we define sets to be the same size in Definition 4.12 (page 203). Show that "is the same size" is an equivalence relation.

?