简体   繁体   English

正规语言的无限结合

[英]Infinite union of regular language

Infinite union of regular language can be context free. 常规语言的无限结合可以不受上下文限制。

Is this statement true or false? 这句话是对还是错?

According to answer key, this is true! 根据答案键,这是真的! What I know is that infinite union or intersection is not closed under union/intersection. 我知道的是,无限联合或交叉点在联合/交叉点下不是封闭的。

Can anyone explain the procedure or logic behind this? 任何人都可以解释其背后的过程或逻辑吗? How to know the infinite union / intersection for a particular language? 如何知道特定语言的无限并集/交集?

The statement is true, yes. 这个说法是对的,是的。 It asks if such a union CAN be context-free, not if it always is. 它询问是否对这样的结合可以上下文,而不是是否总是。 A verx simple example is taking the union of infinitely many times the same language; 一个简单的例子就是无数次使用同一语言。 the result is just the original language, and if it was regular the result is, too. 结果只是原始语言,如果是常规语言,结果也是如此。 Or the union of all the { a^i } is the regular language a^*. 或所有{a ^ i}的并集是常规语言a ^ *。

On the other hand, the infinite union can be uncomputable. 另一方面,无限联合可能是无话可说的。 Take a non-enumerable language L and the infinitely many (regular) singleton sets that contain exactly one word from this language. 采取不可枚举的语言L和无限多(规则)单例集,这些单例集恰好包含该语言中的一个单词。 Their union is L and thus non-enumerable. 它们的并集为L,因此不可枚举。

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

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