【发布时间】:2021-03-31 03:42:10
【问题描述】:
我一直在努力更好地理解抽水引理,但我很坚持证明这两种语言不规则:
L_1 = {(ab)^n c^m | n>=1, m>=2n }
L_2 = {(ab)^n a^k (ba)^n | k<3}
对于 L_2,我的方法是:
Let's say there is a number p.
Be the word z=(ab)^p a^k (ba)^p => |z| = 2p > p
and its decomposition may z=uvw with |uv| <= p & |v|>0.
It means that v= (ab)^j with 0<j<=p.
We choose i = 2 for uv^(i)w leads to (ab)^(p+j) a^k (ba)^p.
This Strings has more ab then ba, which means it does not belong to the language.
=> L_2 is not regular
其实我和(ab)^n混淆了,我们应该分解它,所以需要考虑v的不同情况还是这样就足够了?
【问题讨论】:
-
我投票结束这个问题,因为它不是计算机编程问题。这是一道计算机科学问题。
标签: math complexity-theory pumping-lemma