Construct a dfa that recognizes each of the following


1. Construct a DFA that recognizes each of the following languages. Unless otherwise noted we are assuming that ω ∈ {0,1}*. (A drawing of a state diagram is sufficient.)

(a)  {ω| the length of w is at least 4 }

(b)   {ωl ω contains the substring 0101}

(c)   { ω ∈ {3, 4}* when the characters of to are added up, their sum is divisible by seven. }

(d) The language represented by the regular expression (01 U 10)*.

2. Suppose that A is a regular language, with elements belonging to E* for some alphabet Σ*. Show that the following languages are also regular:

(a) A' = {ω ∈ Σ*|ω ∈ A}.

(b) AR = {ωR ∈ Σ*| ω ∈ A}. Where ωR represents the reverse of ω, i.e. if ω = ω1ω2......wn then ωR = ωnωn-1.......ω1.

(c) A= {ω ∈ Σ*| ω = x1x2x3......xkyk where x1x2........xkyk where x1x2........xk ∈ A y1y2 ........yk ∈ A and each xi, yi ∈ Σ

3. Suppose A is a regular language and let B be any language. Show that the following language is also regular A/B = {ω|ωx A for some x ∈ B}.

Request for Solution File

Ask an Expert for Answer!!
Theory of Computation: Construct a dfa that recognizes each of the following
Reference No:- TGS0661554

Expected delivery within 24 Hours