- #1
mathmari
Gold Member
MHB
- 5,049
- 7
Hey!
Let G=(N,T,S,P) be a grammar with the non-terminal symbols N={S,E,T,Z,Q,C,D}, the terminal symbols T={0,1} and the production rules
How could we determine the language L(G) that the grammar produces? From the above rules we get for example the words [m]11010111010[/m], [m]11000110110[/m], [m]0000001111111[/m].
Is the language maybe $L(G)=\{w\in \{0,1\}^\star \mid \# 0 < \# 1\}$ ? (Wondering)
Let G=(N,T,S,P) be a grammar with the non-terminal symbols N={S,E,T,Z,Q,C,D}, the terminal symbols T={0,1} and the production rules
Code:
P={ S -> E | Z | Q,
E -> 1E | 0T | ε,
T -> 1T | 0E,
Z -> 1Z | 0E | ε,
Q -> CD,
C -> 0C | 0,
D -> 1D | 1}
How could we determine the language L(G) that the grammar produces? From the above rules we get for example the words [m]11010111010[/m], [m]11000110110[/m], [m]0000001111111[/m].
Is the language maybe $L(G)=\{w\in \{0,1\}^\star \mid \# 0 < \# 1\}$ ? (Wondering)
Last edited by a moderator: