证明一种语言是正规的

发布于 2024-10-09 09:01:53 字数 251 浏览 0 评论 0原文

泵引理用于证明语言不规则。但是语言可以是怎样的
证明是有规律的?特别是,

Let L be a language. Define half(L) to be  
{ x | for some y such that |x| = |y|, xy is in L}.  
Prove for each regular L that half(L) is regular.  

是否有任何技巧或一般程序来解决此类问题?

Pumping Lemma is used to prove a language to be not regular. But How a language can be
proved to be regular ? In particular,

Let L be a language. Define half(L) to be  
{ x | for some y such that |x| = |y|, xy is in L}.  
Prove for each regular L that half(L) is regular.  

Is there any trick or general procedure to tackle such kind of questions ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缘字诀 2024-10-16 09:01:53

如果您可以通过 NFADFA,那么它将是常规的。

NFA、DFA、正则语法正则表达式,因此 L 在任何这些形式中的表示都应该可以。

If you can correctly describe your language L by an NFA or DFA, then it will be regular.

There is a well known equality of NFAs, DFAs, regular grammars and regular expressions, so a representation of L in any of these formalisms should do.

随风而去 2024-10-16 09:01:53

提供与该语言匹配的正则语法或有限自动机。有关可以证明语言是常规语言的属性的完整列表,请参阅关于常规语言的维基百科文章的第一行语言。

Provide a regular grammar or a finite automaton that matches the language. For the full list of properties you can prove to show a language is regular, see the first lines of the Wikipedia Article on regular languages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文