简体   繁体   English

是a ^ n,其中n> 1000是常规语言吗?

[英]Is a^n, where n>1000 a regular language?

As in the topic, if I have a language with alphabet {a}, does a^n, where n > 1000 a regular language? 就像在主题中一样,如果我有一种字母为{a}的语言,那么a ^ n是n> 1000的常规语言吗? I am confused. 我很困惑。 I tried to apply the Pumping Lemma here, and I am unsure of the result. 我尝试在此处应用抽水引理,但不确定结果。 From one side I can see that if I pump out from a^1001 one of a's, then I will have a^1000 which does not belong to L. On the other side I couldn't find any examples of such cases, so maybe my reasoning is wrong. 从一侧我可以看到,如果我从a的1001中抽取一个a,那么我将拥有一个不属于L的a1000。另一方面,我找不到此类情况的任何示例,所以也许我的推理是错误的。

It's regular. 这是正常的。 Consider the regular expression a{1001}a* where a{1001} is a string of 1001 a 's. 考虑正则表达式a{1001}a* ,其中a{1001}是1001 a的字符串。

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

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