Construct, in each case, a DFA/NFA that recognises L ( G ), where G is a regular grammar with productions (a) S _→ b | aS | aA, A _→ a | aA | bS. (b) S _→ aS | bS | aA, A _→ bB, B _→ aC, C _→ ε....


Construct, in each case, a DFA/NFA that recognises
L(G), where
G
is a regular grammar with productions


(a)
S
_→
b|aS|aA, A
_→
a|aA|bS.


(b)
S
_→
aS|bS|aA, A
_→
bB, B
_→
aC, C
_→
ε.


Design NFAs and DFAs that accept the following languages:


(a)
a+ ∪
ba
.


(b)
aa∗(a

b).


(c) (a

bb)∗(ba∗ ∪
ε).


(d) (abaa

bbaab).


(e) Complement of (ab

aa

bbaab).


(f) (aa∗ ∪
abab∗).


(g) (a

b)∗b(a

bb)∗
.


(h) (abab)∗ ∪ (aaa∗ ∪
b∗).


(i) ((aa∗)∗b)∗
.


(j) (aba∗) ∪ ((ab)∗ba).


(k) (aba∗) ∩ ((ab)∗ba).


(l) (a

b)a∗ ∩
baa
.


(m) (aa

bb)∗(ab

ba)(aa

bb)∗
.


(n) (aaa)∗b
∪ (aa)∗b.


(o) (a(ab)∗(aa

b) ∪
b(ba)∗(a

bb))∗
.








Dec 10, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here