in Theory of Computation edited by
393 views
1 vote
1 vote
Please solve this question with proper explanation:

$L=\{ w : \: n_a(w) = 2n_b(w) \}$
in Theory of Computation edited by
393 views

1 Answer

0 votes
0 votes

S -> Saab / aSab / aaSb / aabS/ Saba / aSba / abSa / abaS / Sbaa / bSaa / baSa/ baaS / $\epsilon$

More simplified - 

S -> aSaSbS / aSbSaS / bSaSaS / $\epsilon$

edited by

3 Comments

@vijaycs07  What you say about this, isn't it more simplified ...

S-> aSaSbS|aSbSaS|bSaSaS|ϵ

ϵϵ
 
 
0
0

Right.

1
1

Yes @Lakshya Mission 1 .. thanks .. :)

1
1

Related questions