由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BUPT版 - [转载] 一个regular language问题,始终想不出
相关主题
瞧我一下五篇[合集] interview question 2
问道Google题目A SAS problem
求问FB题目再问一个SAS data select的问题
Find consecutive repeated stringregular expression replace
问一个字符串面试问题请教citi开checking账户,给AA 3万里程?
请教一个PERM的广告问题戒撸打卡
这个有 bug 吗B2延期的护照需要翻译吗
关于regular expression问个regular language的问题
相关话题的讨论汇总
话题: regular话题: language话题: 想不出话题: pumping
进入BUPT版参与讨论
1 (共1页)
c***y
发帖数: 180
1
【 以下文字转载自 Mathematics 讨论区 】
【 原文由 cocoy 所发表 】
L = { uww'v | u,v,w 均属于(0,1)+ }w'是w的reverse
比如w=1101then w'=1011
直观上来说, DFA没法记住无限长的w,
所以L肯定不是一个regular language
但是怎么证明呢?用pumping lemma?
困难在于对了串x,使用pumping lemma构造的新的x'
由于u,v的选择不同,总是可以也满足L的条件,推不出矛盾来
b*****l
发帖数: 114
2
L is regular
because for any consecutive 0s or 1s,e.g. 00, 11,
we can just regard w as the first 0 (or 1), and w' the second.
Also, we can prove that for any string without consecutive 0 or 1,
i.e. (10)+ or (01)+ , we can't represent it as ww',
So, L={ bit string s , s.t. s contains more than or equal to four
bits and s contains consecutive 0 or 1 in the substring(2,length-1)}
c***y
发帖数: 180
3
原来如此,难怪我推不出矛盾来,多谢指点

【在 b*****l 的大作中提到】
: L is regular
: because for any consecutive 0s or 1s,e.g. 00, 11,
: we can just regard w as the first 0 (or 1), and w' the second.
: Also, we can prove that for any string without consecutive 0 or 1,
: i.e. (10)+ or (01)+ , we can't represent it as ww',
: So, L={ bit string s , s.t. s contains more than or equal to four
: bits and s contains consecutive 0 or 1 in the substring(2,length-1)}

r*******n
发帖数: 51
4
buptzwl,老兄现在研究什么啊?好高深啊!
哈哈。。。。
佩服佩服。。。

【在 b*****l 的大作中提到】
: L is regular
: because for any consecutive 0s or 1s,e.g. 00, 11,
: we can just regard w as the first 0 (or 1), and w' the second.
: Also, we can prove that for any string without consecutive 0 or 1,
: i.e. (10)+ or (01)+ , we can't represent it as ww',
: So, L={ bit string s , s.t. s contains more than or equal to four
: bits and s contains consecutive 0 or 1 in the substring(2,length-1)}

1 (共1页)
进入BUPT版参与讨论
相关主题
问个regular language的问题问一个字符串面试问题
What language I should use?请教一个PERM的广告问题
Status of nuclear power plants in Fukushima as of 19:00 March 16 (JAIF)这个有 bug 吗
转让medela pump关于regular expression
瞧我一下五篇[合集] interview question 2
问道Google题目A SAS problem
求问FB题目再问一个SAS data select的问题
Find consecutive repeated stringregular expression replace
相关话题的讨论汇总
话题: regular话题: language话题: 想不出话题: pumping