简体   繁体   English

Pumping lemma(常规语言)

[英]Pumping lemma (Regular language)

I need some help with a pumping lemma problem.我需要一些关于抽引引理问题的帮助。

L = { {a,b,c}* | #a(L) < #b(L) < #c(L) }

This is what I got so far:这是我到目前为止得到的:

y = uvw is the string from the pumping lemma.

I let y = abbc^n, n is the length from the pumping lemma.我让 y = abbc^n,n 是泵引理的长度。 y is in L because the number of a:s is less than the number of b:s, and the number of b:s is less than the number of c:s. y 在 L 中是因为 a:s 的数量小于 b:s 的数量,而 b:s 的数量小于 c:s 的数量。

I let u = a, v = bb and w = c^n.我让 u = a,v = bb 和 w = c^n。 |uv| |紫外线| < y, as stated in pumping lemma. < y,如泵引理中所述。 If I "pump" (bb)^2 then i get如果我“抽”(bb)^2 然后我得到

y = abbbbc^n which violates the rule #b(L) < #c(L).

Is this right ?这是正确的吗 ? Am I on the "right path" ?我在“正确的道路上”吗?

Thanks谢谢

The main idea of the pumping lemma is to tell you that when you have a regular language L with infinite number of terms there is a pattern in the language that repeats forever. Pumping lemma 的主要思想是告诉你,当你有一个具有无限数量术语的常规语言L ,语言中存在一个永远重复的模式。

The regular expression associated with that language will contain KLEENE-STAR(pattern).与该语言关联的正则表达式将包含 KLEENE-STAR(pattern)。

The automaton associated with that regular expression (and language) will contain a loop.与该正则表达式(和语言)关联的自动机将包含一个循环。

The proof is done using the pigeon principle.证明是使用鸽子原理完成的。

This图像is very suggestive.很有启发性。

Note that all terms must start in q0 and end in qn in this case.请注意,在这种情况下,所有项都必须以 q0 开头并以 qn 结尾。 So, the automata defining the language is finite (max N states), so there are a limited number of states, but the words (ie terms) can have >N letters.因此,定义语言的自动机是有限的(最多 N 个状态),因此状态数量有限,但单词(即术语)可以有 >N 个字母。 The pigeon principle tells us that there must be a state that is reached 2 times, so at that state a loop will be present.鸽子原理告诉我们,必须有一个状态达到 2 次,因此在该状态下将存在一个循环。

In your notation, you can make the correspondence with the image so:在您的符号中,您可以与图像对应:

  • your u is x from image你的u是图像中的x

  • v is y in image v是图像中的y

  • w is z from image w是图像中的z

To arrive from q0 to qn , you can use any of the strings from the set: { uw , uvw, uvvw, uvvvw, ... } .要从q0到达qn ,您可以使用集合中的任何字符串: { uw , uvw, uvvw, uvvvw, ... }

In this particular case the pattern P is y , the set X is {xz xyz xyyz xyyyz ...} and S is length(x)+length(y) .在这种特殊情况下,模式Py ,集合X{xz xyz xyyz xyyyz ...}并且Slength(x)+length(y)

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

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