《计算理论导引》PPT课件.ppt
《《计算理论导引》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《计算理论导引》PPT课件.ppt(19页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、 计算理论导引与算法复杂性计算理论导引与算法复杂性Introduction to the Theory of Computation and Algorithm Complexities 主讲:刘国华主讲:刘国华(学院楼学院楼225225室室,),)助教:辛婷婷助教:辛婷婷(学院楼学院楼153153室室,),)6 BOOLEAN LOGIC1)Negation 0=1,1=02)Conjunction 0 1=0,1 1=13)Disjunction 0 1=14)Exclusive or 0 0=0,0 1=15)Equality 00=1,1 0=06)Implication 10=0,1
2、1=1,01=1,00=17)Distributive law P(Q R)=(P Q)(P R)P(Q R)=(P Q)(P R)CHAPTER 1 FUNDATIONIm sorry!CHAPTER 2COMPUTATIONAL MODELS(1)Computation?Computation is a general term for any type of process,algorithm or measurement;this often includes but is not limited to digital data.Computation is a process fol
3、lowing a well-defined model.Computation is also a major subject matter of computer science:it investigates what can or cannot be done in a computational manner.CHAPTER 2COMPUTATIONAL MODELS(1)AUTOMATATURING MACHINESCHAPTER 2 COMPUTATIONAL MODELS(1)AUTOMATA1 FINITE AUTOMATA1)DETERMINISTIC FINITE AUTO
4、MATA(DFA)Example.An automatic door.front padrear padRules for opening:1 The door is closing,if some one is standing on the front pad(FRONT)and no one is standing on the rear pad(REAR),then the door opens;2 The door is opening,if some one is standing on the rear pad(REAR),then the door keeps opening;
5、3 The door is opening,if some one is standing on the front pad and some one is standing on the rear pad(BOTH),then the door keeps opening;CHAPTER 2 COMPUTATIONAL MODELS(1)front padrear padRules for closing:1 The door is opening,if no one is standing on either pad(NEITHER),then the door closes;2 The
6、door is closing,if some one is standing on the rear pad(REAR),then the door keeps closing;3 The door is closing,if some one is standing on the front pad and some one is standing on the rear pad(BOTH),then the door keeps closing.How to implement this system?Hardwares:two sensors;one computer(only 1 b
7、it memory),etc.How about the software?CHAPTER 2 COMPUTATIONAL MODELS(1)satrttTRUE;d 0t=TRUE?Ys1sensor1s2sensor2d=0and(s2=1ors1=1ands2=1ors1=0ands2=0)Yd=1and(s1=1ors2=1ors1=1ands2=1)NYd=0ands1=1NYd1d=1ands1=0ands2=0Yd0NendNNCHAPTER 2 COMPUTATIONAL MODELS(1)front padrear padCLOSED(d=0)OPEN(d=1)NEITHER
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算理论导引 计算 理论 导引 PPT 课件
限制150内