- 1、本文档共32页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话: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
您可能关注的文档
- 可行性研究报告编制原则规定定稿.pdf
- 台味--从番薯糜到红蟳米糕.pdf
- 可选消费模式变化和选股策略130524.pdf
- 台州同兴印染有限公司年产染色绞纱3000吨_面料3000万米迁建项目环境影响报告书简本.pdf
- 可靠性基础知识(通用).pdf
- 台湾大学2014年高考试题-理综(自然).pdf
- 可能会考的简答题.pdf
- 台湾自驾游 第一攻略. - Mr. & Mrs.pdf
- 台湾学术文献数据库(苏州大学).pdf
- 台达 PLC 定位指令.pdf
- 山东省威海市2023-2024学年高一年级下册期末考试语文试题及答案.pdf
- 2024-2025学年绥化市高二数学上学期开学考试卷(附答案解析).pdf
- 2024届贵州省贵阳某中学联考高考模拟预测地理试题(含答案解析).pdf
- 2024年公务员考试行测常识判断复习讲义.pdf
- 2024年广东学法考试试题附答案(考场一).pdf
- 2024年人教版八年级物理复习讲义:功 专项训练【五大题型】原卷版.pdf
- 江苏省泰州市高港区等2地2023-2024学年九年级上学期期中语文试题.pdf
- 酒店概论及酒店管理培训考试题库.pdf
- 湖北省旅游类《酒店服务》技能高考历年考试试题库(含答案).pdf
- 泰安市2025年中考一模考试物理试题(A)含解析.pdf
文档评论(0)