简体   繁体   English

L语言补语的正则表达式

[英]A regular expression for the complement of the language L

Let L(R) be the language denoted by regular expression R. 令L(R)为正则表达式R表示的语言。

I'd really love your help with presenting a regular expression to the complement 非常感谢您提供正则表达式的帮助。

of L((0 U 10 U 110)* (epsilon U 1 U 11)), where language is over the alphabet {0,1}, epsilon is the empty word, 'U' stands for union and '*' is the star iterator. L((0 U 10 U 110)*(epsilon U 1 U 11))的表达式,其中语言在字母{0,1}上,epsilon是空词,“ U”代表并集,“ *”是星型迭代器。

I tried to find it with De Morgan's laws. 我试图根据戴摩根定律找到它。 I think that I am requested to evaluate 我认为我需要评估

not (L((0 U 10 U 110)* (epsilon U 1 U 11)))- what is not of the '*' for example? 不是(L((0 U 10 U 110)*(εU 1 U 11)))-例如'*'不是什么?

Thanks a lot 非常感谢

您需要将正则表达式转换为确定性有限自动机,对它进行补充(在另一个DFA中),然后将其转换回正则表达式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM