Section 2.7

Minimum Deterministic Finite Automata

[14/64%]
Show
LaTeX
Example 2.45

Let L={x∈(0+1)∗∣∣x∣ is odd}L=\left\{ x \in (0+1)^{*} \mid \left|x\right|\text{ is odd}\right\}. Find all equivalence classes of RLR_{L}.

?
Example 2.46

Let LL be the set of nonempty binary strings starting and ending with the same symbol. Find all equivalence classes of RLR_{L}.

?
Example 2.50

Show that LL is regular if and only if there exists a positive integer kk such that xRLyx R_{L} y if and only if for every z∈Σ∗z \in \Sigma^{*} with ∣z∣≤k\left|z\right| \leq k, xz∈L⇔yz∈Lx z \in L \Leftrightarrow y z \in L.

?
Example 2.51

Find the minimum DFA for language (0+1)∗01(0+1)^{*} 01.

?
Example 2.52

Construct the minimum DFA for language (0+1)∗0(0+1)9(0+1)^{*} 0(0+1)^{9}.

?
Example 2.53

Find the minimum DFA equivalent to the DFA MM of Figure 2.47.

Figure 2.47: DFA M.Figure 2.47: DFA M.

?
Example 2.54

Show that the following language is not regular:

L={xxR∣x∈{0,1}∗} L=\left\{ x x^{R} \mid x \in \left\{ 0,1\right\} ^{*}\right\}
?
Example 2.55

Show that L={0m1n∣gcd⁡(m,n)=1}L=\left\{ 0^{m} 1^{n} \mid \operatorname {gcd}(m, n)=1\right\} is not regular.

?
Example 2.56

For any language LL, define an equivalence relation DLD_{L} by

xDLy⟺(∀u)(∀w)[uxw∈L⇔uyw∈L]. x D_{L} y \Longleftrightarrow (\forall u)(\forall w)[u x w \in L \Leftrightarrow u y w \in L].

Show that LL is regular if and only if Index⁡(DL)<∞\operatorname {Index}\left(D_{L}\right)<\infty.

?
Problem 2.7.1

Find all equivalence classess of RLR_{L} for the following languages:

?
(a)

(0+1)∗01(0+1)∗(0+1)^{*} 01(0+1)^{*}.

(b)

(00+11)(0+1)∗(00+11)(0+1)^{*}.

(c)

011(0+1)∗001011(0+1)^{*} 001.

(d)

The set of binary strings in which each block of four symbols have at least two 0's.

(e)

{x∈{0,1}∗∣#0(x)=#1(x)}\left\{ x \in \left\{ 0,1\right\}^{*} \mid \#_{0}(x)=\#_{1}(x)\right\}, where #a(w)\#_{a}(w) is the number of occurrences of symbol aa in ww.

Problem 2.7.2

For each of the following languages LL, show that Index⁡(L)=∞\operatorname {Index}(L)=\infty and so LL is not regular.

?
(a)

{0m1n∣0≤m≤n}\left\{ 0^{m} 1^{n} \mid 0 \leq m \leq n\right\}.

(b)

{0n1m0n+m∣n,m≥0}\left\{ 0^{n} 1^{m} 0^{n+m} \mid n, m \geq 0\right\}.

(c)

{ww∣w∈{0,1}∗}\left\{ w w \mid w \in \left\{ 0,1\right\}^{*}\right\}.

(d)

{xxRw∣x,w∈{0,1}+}\left\{ x x^{R} w \mid x, w \in \left\{ 0,1\right\}^{+}\right\}.

Problem 2.7.3

For each of the following languages LL, show that no two strings can be in the same equivalence class of RLR_{L}.

?
(a)

{0p∣p is a prime }\left\{ 0^{p} \mid p\text{ is a prime }\right\}.

(b)

{0n2∣n≥0}\left\{ 0^{n^{2}} \mid n \geq 0\right\}.

Problem 2.7.4

Construct the minimum DFA's for languages accepted by DFA's in Figure 2.52(a) and 2.52(b).

Figure 2.52: Two DFA’s for Exercise 4.Figure 2.52: Two DFA’s for Exercise 4.

?
Problem 2.7.5

Construct a minimum DFA equivalent to the NFA of Figure 2.53.

Figure 2.53: An NFA for Exercise 5.Figure 2.53: An NFA for Exercise 5.

?