regular-language - infinite regular language and finite regular language proof
问题描述
Suppose L is an infinite regular language. Does it follow that there exists a finite language S such that L = SS* ? Prove or disprove by finding a counterexample.
What i have tried: Intuitively this should be true. Any infinite language can be represented by a finite language S if S has the same alphabets as L e.g if L is the infinite language over the alphabet {a, b}* then S = {a, b} works, so essentially S contains just one occurrence of all the alphabets in L. Is this correct or am i missing something fundamental? or is this just not valid at all?
Any help would be appreciated!
解决方案
我对此的直觉是,这不是真的。让我们以所有奇长字符串的语言为例{a, b}
。这是微不足道的规则,微不足道的无限。L = SS*
但是,该语言的任何有限子集都将具有奇数长度的字符串,并且任何无限后缀都必须具有偶数长度,因此对于某些有限语言没有合理的构造S
。
我将把这种直觉变成正式的证明给读者。
推荐阅读
- dart - 在 Flutter 中正确使用 MediaQuery
- ios - UIViewControllerTransitioningDelegate 在呈现后立即被取消初始化
- c# - 从 MongoDB 中提取特定记录,其中记录使用 C# 中的对象 GUID
- c# - 如何将json对象发送到剃须刀模型然后angularjs
- mysql - 将非空 CONCAT_GROUP 连接到 MySQL 中的父列
- java - Tricking Scanner 输入来自用户
- angular-dart - 如何使用选择元素的 onchange 事件在 AngularDart 中传递对象而不是字符串?
- javascript - 重构嵌套的 for...in 语句
- javascript - 添加指向外部网站的链接,它是我的 HTML 中的概要
- javascript - 按下多个键,但需要某些键只触发一次,直到在 JavaScript 中按下