首页 | 本学科首页   官方微博 | 高级检索  
     

截断谓词的研究与分析
引用本文:肖启莉,柴本成. 截断谓词的研究与分析[J]. 浙江万里学院学报, 2007, 20(2): 37-40
作者姓名:肖启莉  柴本成
作者单位:浙江万里学院,宁波,315100
摘    要:回溯机制是Visual Prolog程序运行的重要机制,是获取所有可能解的一种方法.但在实际问题的解决过程中,有时却不需要回溯.Visual Prolog提供的内部谓词-截断谓词“!”可以用来阻止回溯,而且从某种意义上讲,只有学会了截断谓词的使用,才能自由驾驭Prolog.文章主要结合实例对截断谓词的作用以及使用方法进行了详细介绍,并指出了截断谓词的作用本质上是删除满足一定条件的回溯点。

关 键 词:回溯  截断  人工智能
文章编号:1671-2250(2007)02-0037-04
收稿时间:2006-06-15
修稿时间:2006-06-15

Research and Analysis of Cut Predicate
XIAO Qi-li,CHAI Ben-cheng. Research and Analysis of Cut Predicate[J]. Journal of Zhejiang Wanli University, 2007, 20(2): 37-40
Authors:XIAO Qi-li  CHAI Ben-cheng
Abstract:The backtracking mechanism is an important mechanism for Visual Prolog.The backtracking is an approach to obtaining all the possible solutions to a goal.But sometimes the backtracking isn't necessary.Visual Prolog provides an inner predicate-cut predicate that can prevent Visual Prolog from backtracking.And in some senses,Visual Prolog can be controlled only if using cut predicate expertly.This paper mainly discusses the effect and usage of cut predicate and points out that the essence of cut predicate is used to delete some backtracking dot.
Keywords:Visual Prolog
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号