- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Regular Expression 1. Definition 2. Designing 3. Equivalence with FA 2 Operation of Languages L={ 0,11 }, M ={ , 001 } Union LM={ 0, 11 , , 001 } Concatenation LM={ 0, 11, 0001 , 11001 } ML={ 0, 11, 0010, 00111 } 3 Operation of Languages L={ 0,11 } Star ( Closure , Kleene Closure ) 0 1 2 L ={}, L ={0,11}, L ={00,011,110,1111} L3 ={000,0011,0110,1100,01111,11011,11110,111111} * i L i 0 L * = ? 4 Arithmetical Expression 0, 1+2, 3(5-2), (56-7)2 , Formal definition Inductive definition Any number is a arithmetical expression If a and b are arithmetical expressions , then so is a+b,a-b,ab, ab,an, (a) . 5 Building Regular Expressions BASIS 1. is a regular expression, denoting the languages {}. 2. is a regular expression, denoting the languages . 3. For each a in , a is a regular expression and denotes the language {a }. 6 Building Regular Expressions INDUCTION 1. If E and F are regular expressions, denoting the language L(E ) and L(F ), then E +F , EF and E * are regular expressions that denote the languages L(E ) * L(F ), L(E )L(F ) and (L(E )) . 2. If E is a RE then so is (E ) . 7 Example 5.1 What is the language defined by r
文档评论(0)