




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
浙江大学2003 2004学年第二学期期终考试The Theory of Computation课程试卷考试时间:_120_分钟 开课学院 计算机学院 专业 姓名_ 学号_任课教师_题序1234567总分评分评阅人1. (20pts, 2 each) Tell whether the statements below are true (T) or false (F).(1) ( ) Language a6nb3mcn+10 : n 0, m 0 is regular.(2) ( ) A and B are two context-free languages, so is AB, where AB =(A-B)(B-A).(3) ( ) Let L1, L2 Li are all regular languages, so is .(4) ( ) Suppose that L is context-free and R is regular, L-R is context-free language.(5) ( ) A language is recursive if and only if its complement is recursive enumerable.(6) ( ) Every computable function is primitive recursive.(7) ( ) Turing Machines with two-way infinite tape accept more languages than the standard Turing Machines.(8) ( ) Every Turing machine semidecides a recursive language.(9) ( ) L is a language, then L=.(10) ( ) L is a language, there is a Turing machine M halts on x for every xL, then L is decidable.2. Automata and regular expressions:(1) (8pts) Give a NFA (Nondeterministic Finite Automaton) accepting the language L=x | xa, b* and aab occurs as substring of x at least twice. Draw a state transition diagram of the NFA and simplify as much as possible.(2) (8pts) Write a regular expression for the language accepted by the following finite automaton:3. Pushdown Automata (PDA) and Context-free Grammar (CFG):(1) (8pts) Give a CFG that generates the L=uuRcvvR | u,va,b*.(2) (8pts) Design a PDA M=(K, , G, D, s, F) accepting the language above , whereD:(q, a, b)(q, b)=a, b;K=G=s=F=4. Say whether each of the following languages is regular or not regular (prove your answers):(1) (8pts) L1=xy | x, ya, b*, #x(a) = #y(b). Note: #x(a) presents the number of a in string x, #y(b) so on.(2) (8pts) L2=w: wa, b* and w=wR 5. (8pts) Give the equivalent primitive recursive function from the predicate x=y.6. (8pts) Let be an alphabet and let L1, L2 * be languages so that L1 is not regular but L2 is regular. Assume L1L2 is finite, Prove that L1L2 is not regular.0,1;L1SR0,10,1R L010L1100LLRL7. Let the following Turing machine M computes f(x, y), the alphabet is = 0, 1, ;. The head of M begins from the most left blank; 0 is the symbol of blank; x and y are presented by binary strings respectively and separated with the symbol “;”.(1) (8pts) Describe the key configurations
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年天津市合同监督管理办法已经修订
- 油墨厂二甲基甲酰胺存储规章
- 九年级语文下册 第四单元说课稿 (新版)新人教版
- 2024-2025学年高中历史 第六单元 现代世界的科技与文化 第29课 百花齐放 百家争鸣说课稿 岳麓版必修3
- 第九节 无人机自动跟随说课稿-2025-2026学年初中信息技术甘教版2022八年级下册-甘教版2022
- 中医学员考试题及答案大全
- 泰安市检察院招聘考试真题2024
- 福建专升本语文总结(3篇)
- 2025年上海人民警察招聘考试申论题库含答案详解
- 宠物猫寄养与宠物保险咨询服务合同
- 大疆无人机培训课件
- 中级消防员维保培训课件
- 小儿推拿进修总结汇报
- 2025公司应急预案演练计划(5篇)
- 医疗机构医院全员培训制度
- 2025仓库保管员试题及答案
- 生猪养殖场实施方案
- 矛盾纠纷化解培训课件
- 2025年成人高考语文试题及答案
- DB11-T 2103.14-2025 社会单位和重点场所消防安全管理规范 第14部分:电动汽车充电站
- 病毒感染课件
评论
0/150
提交评论