《计算理论导引》PPT课件.ppt
《《计算理论导引》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《计算理论导引》PPT课件.ppt(19页珍藏版)》请在三一办公上搜索。
1、,计算理论导引与算法复杂性Introduction to the Theory of Computation and Algorithm Complexities,主讲:刘国华(学院楼225室,)助教:辛婷婷(学院楼153室,),6 BOOLEAN LOGIC1)Negation 0=1,1=02)Conjunction 01=0,11=13)Disjunction 01=14)Exclusive or 00=0,01=15)Equality 00=1,1 0=06)Implication 10=0,11=1,01=1,00=17)Distributive law P(QR)=(PQ)(PR)
2、P(QR)=(PQ)(P R),CHAPTER 1 FUNDATION,Im 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 following a well-defined model.Computation is als
3、o a major subject matter of computer science:it investigates what can or cannot be done in a computational manner.,CHAPTER 2COMPUTATIONAL MODELS(1),AUTOMATATURING MACHINES,CHAPTER 2 COMPUTATIONAL MODELS(1),AUTOMATA1 FINITE AUTOMATA1)DETERMINISTIC FINITE AUTOMATA(DFA)Example.An automatic door.,Rules
4、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;3 The door is opening,if some one is standing on the front
5、 pad and some one is standing on the rear pad(BOTH),then the door keeps opening;,CHAPTER 2 COMPUTATIONAL MODELS(1),Rules for closing:1 The door is opening,if no one is standing on either pad(NEITHER),then the door closes;2 The door is closing,if some one is standing on the rear pad(REAR),then the do
6、or 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 bit memory),etc.,How about the software?,CHAPTER 2 COMPUTATIONAL MODELS(
7、1),satrt,tTRUE;d 0,t=TRUE?,Y,s1sensor1,s2sensor2,d=0and(s2=1ors1=1ands2=1ors1=0ands2=0),Y,d=1and(s1=1ors2=1ors1=1ands2=1),N,Y,d=0ands1=1,N,Y,d1,d=1ands1=0ands2=0,Y,d0,N,end,N,N,CHAPTER 2 COMPUTATIONAL MODELS(1),CLOSED(d=0),OPEN(d=1),NEITHER(s1=0ands2=0),FORNT(s1=1),REAR(s2=1)BOTH(s1=1ands2=1)NEITHER
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算理论导引 计算 理论 导引 PPT 课件
链接地址:https://www.31ppt.com/p-5604301.html