关于2010年度高级工程师任职资格评审.67

上传人:r****d 文档编号:243860434 上传时间:2024-10-01 格式:PPT 页数:8 大小:39.50KB
返回 下载 相关 举报
关于2010年度高级工程师任职资格评审.67_第1页
第1页 / 共8页
关于2010年度高级工程师任职资格评审.67_第2页
第2页 / 共8页
关于2010年度高级工程师任职资格评审.67_第3页
第3页 / 共8页
点击查看更多>>
资源描述
Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,*,*,Introduction to Prolog,Motivation,Sample problem,Example program:,grandmother.pl,Sample session,A question about logic and programming,What is a program?,1,Motivation,1.Reduce the programming burden.,2.System should simply accept the necessary information and the objective(goal),and then figure out its own solution.,3.Have a program that looks more like its own specification.,4.Take advantage of logical inference to automatically get many of the consequences of the given information.,2,Sample Problem,For someone(call him or her X)to be the,grandmother,of someone else(call him or her Y),X must be the mother of someone(call him or her Z)who is a parent of Y.,Someone is a,parent,of another person,if that someone is either the mother or the father of the other person.,Mary is the,mother,of Stan.,Gwen is the,mother,of Alice.,Valery is the,mother,of Gwen.,Stan is the,father,of Alice.,The question:Who is a grandmother of Alice?,3,Sample Prolog Program:,grandmother.pl,grandmother(X,Y):-mother(X,Z),parent(Z,Y).,parent(X,Y):-mother(X,Y).,parent(X,Y):-father(X,Y).,mother(mary,stan).,mother(gwen,alice).,mother(valery,gwen).,father(stan,alice).,4,Sample Session,Welcome to SWI-Prolog(Version 3.3.2),Copyright(c)1990-2000 University of Amsterdam.All rights reserved.,For help,use?-help(Topic).or?-apropos(Word).,?-,grandmother.,%grandmother compiled 0.00 sec,1,312 bytes,Yes,?-,grandmother(X,alice).,X=mary,;,X=valery,;,No,?-,5,A Question about Logic&Programming,Q:Is a logical description of a problem actually a program?,6,What is a program?,A specification for a computation.,The specification must be effective-interpretable by some identified computer language processor.,7,=27blfpjtQwUAYE$I*L+15;9cmgqOuSyWBZF%J)N26:akeoisQvTzXD!H*K-04.8clfpjtRxVAYE$I(M=25;9dnhrOuSyWC#G%J)N37akeoisQ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25;9dnhrOuSyWC#G%J)N37akeoisQwUzXH*L+15;9cmgqOuSyVBZF%J)N=27:akeoisQvTzXD!H*L-04.8cmfpjtRxVBYE$I(M=27bkeoisQwUzXD!H*L+14.8cmgpjtRxVBZF$I(M=27bleoisQwUAYD!H*L+15.8cmgqOtRxVBZF%J(M=27blfpisQwUAYE$H*L+15;8nhqOuSyWC#G%J)N37akeoisQwTzXD!H*L+04.8cmfpjtRxVBZE$I(M=27bkeoisQwUAXD!H*L+14.8cmgqjtRxVBZF%I(M=27blfoisQwUAYE!H*L+15.8cmgqOuRxVBZF%J)M=27blfpjsQwUAYE$I*L+15;9cmgqOuSyVBZF%J)N=27blfpisQwUAYE!H*L+15;8cmgqOuSxVBZF%J)M=27blfpjtQwUAYE$I*L+15;9cmgqOuSyVBZF%J)N26:akeoisPvTzXD!H*K-04.8clfpjtRxVAYE$I(M=25;9dnhqOuSyWC#G%J)N37akeoisQwTzXD!H*L+04.8cmfpjtRxVBZE$I(M=27bkeoisQwUAXD!H*L+14.8cmgqjtRxVBZF%I(M=27:akeoisQvTzXD!H*L-04.8clfpjtRxVBYE$I(M=27akeoisQwUzXD!H*L+14.8cmgpjtRxVBZF$I(M=27bleoisQwUAYD!H*L+14.8cmgqOtRxVBZF%J(M=27blfpisQwUAYE$H*L+15;8cmgqOuSxVBZF%J)M=27blfpjtQwUAYE$I*L+15;9cmgqOuSyWBZF%N37bkeoisQwUAXD!H*L+14.8cmgqjtRxVBZF$I(M=
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业管理 > 市场营销


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!