![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AI
文章平均质量分 80
yizhang88
这个作者很懒,什么都没留下…
展开
-
facts in prolog
FactsThis chapter describes the basic Prolog facts. They are the simplest form of Prolog predicates, and are similar to records in a relational database. As we will see in the next chapter they c转载 2007-07-04 09:59:00 · 772 阅读 · 0 评论 -
recursion in prolog
RecursionRecursion in any language is the ability for a unit of code to call itself, repeatedly, if necessary. Recursion is often a very powerful and convenient way of representing certain programmi原创 2007-07-04 17:34:00 · 653 阅读 · 0 评论 -
simple query in prolog
Simple QueriesNow that we have some facts in our Prolog program, we can consult the program in the listener and query, or call, the facts. This chapter, and the next, will assume the Prolog program原创 2007-07-04 10:54:00 · 912 阅读 · 0 评论 -
rules in prolog
RulesWe said earlier a predicate is defined by clauses, which may be facts or rules. A rule is no more than a stored query. Its syntax is head :- body.where head a predicate definition原创 2007-07-04 16:15:00 · 716 阅读 · 0 评论