[英]What language does this mean?
this is the language: 这是语言:
L = { w belong {a,b,c}* | |w|= 3 * number(a) (w) }
Then, what does that mean? 那是什么意思
It means that L is the language of strings w
consisting of symbols 'a'
, 'b'
' and 'c'
, where the length of the string w
equals to 3 times the number of symbol 'a'
present in the string w
. 这意味着,L是字符串的语言w
组成的符号'a'
, 'b'
'和'c'
,其中该串的长度w
等于符号的至3倍的数量'a'
出现在字符串中的w
。
The productions for this grammars should be such that if it add one 'a'
then it also adds two 'b'
, or two 'c'
, or one 'b'
; 该语法的结果应为:如果添加一个'a'
则还添加两个'b'
或两个'c'
或一个'b'
; one 'c'
. 一个'c'
。 Check below grammar: 检查以下语法:
S → ^ | SaSMSM | SMSaSM | SMSMSa
M → b | c
here ^
means epsilon. 这里^
表示epsilon。
To generate aabbcc
use Right most derivation 要生成aabbcc
使用最右派生
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.