[英]Determine the language describe by the CFG
S -> 1A
A -> 0B | 1A | epsilon
B -> 0C | 1B
C -> 0A | 1C
I was thinking that the language described by this grammar is the following: L = {0,1 | 我以为该语法描述的语言如下:L = {0,1 | w string contains 1+ OR it has at least three 0's}
w字符串包含1+或至少具有三个0'}
Does this seem correct? 这看起来正确吗?
It is a regular CFG so its DFA given below: 这是常规CFG,因此其DFA如下:
It is a language that consist of alphabet = {0,1}
this language accept one 1
or multiple 1
's.if 0
input it need 3 (0)
to go to final.between this multiple 1
come after every 0.
这是一种由字母=
{0,1}
组成的语言,该语言接受一个1
或多个1
如果输入0
则需要3 (0)
才能进入最终语言。在这个多个1
,每0.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.