[英]Some NFA & REGULAR LANGUAGE & Equivalences
I read some note about Automaton Course. 我读了一些有关自动机课程的笔记。 i see this note, that following all is the same. 我看到这条笔记,以下是相同的。 but i think the L(g) is not equal to NFA and regular expression. 但我认为L(g)不等于NFA和正则表达式。 anyone could help me with defining the language of this figures (nfa, regular expression and grammar): 任何人都可以帮助我定义这些图形的语言(nfa,正则表达式和语法):
They are in fact equivalent, but this is a strange way of converting one to the other. 它们实际上是等效的,但这是将彼此转换为另一种奇怪的方式。
R
is the same as (a|b)b*
. R
与(a|b)b*
。 M
recognizes (a|b)(bb)*b?
M
识别(a|b)(bb)*b?
. 。 The right part recognizes 2*n+1
or 2*n
b
's, where n>=0
, hence is equivalent to R
. 右部识别2*n+1
或2*n
b
“s,其中n>=0
,因此,等同于R
Now on G
现在在G
A
recognizes (bb)*b?
A
识别(bb)*b?
, which is equivalent to b*
(see comment on M
). ,它等效于b*
(请参阅M
注释)。
B
recognizes bB|bb*|e
which is equivalent to bB|b*
which is equivalent to b*
. B
识别bB|bb*|e
这相当于bB|b*
这等同于b*
。
S
recognizes ab*b*|bb*b
which is equivalent to ab*|bbb*
, which is equivalent to (a|bb)b*
. S
识别与ab*|bbb*
等效的ab*b*|bb*b
,与(a|bb)b*
等效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.