Some frequently used predicates: file frequent.pl
CHAPTER 1
Figure 1.8 The family program.
CHAPTER 2
Figure 2.14 A program for the monkey and banana problem.
Figure 2.16 Four versions of the predecessor program.
CHAPTER 4
Figure 4.5 A flight route planner and an example flight timetable.
Figure 4.7 Program 1 for the eight queens problem.
Figure 4.9 Program 2 for the eight queens problem.
Figure 4.11 Program 3 for the eight queens problem.
CHAPTER 7
Figure 7.2 A program for cryptoarithmetic puzzles.
Figure 7.3 A procedure for substituting a subterm of a term by another subterm.
Figure 7.4 An implementation of the findall relation.
CHAPTER 9
Figure 9.2 Quicksort.
Figure 9.3 A more efficient implementation of quicksort using difference-pair
representation for lists.
Figure 9.7 Finding an item X in a binary dictionary.
Figure 9.10 Inserting an item as a leaf into the binary dictionary.
Figure 9.13 Deleting from the binary dictionary.
Figure 9.15 Insertion into the binary dictionary at any level of the tree.
Figure 9.17 Displaying a binary tree.
Figure 9.20 Finding an acyclic path, Path, from A to Z in Graph.
Figure 9.21 Path-finding in a graph: Path is an acyclic path with cost Cost from A to Z in Graph.
Figure 9.22 Finding a spanning tree of a graph: an `algorithmic' program.
Figure 9.23 Finding a spanning tree of a graph: a `declarative' program.
CHAPTER 10
Figure 10.6 Inserting and deleting in the 2-3 dictionary.
Figure 10.7 A program to display a 2-3 dictionary.
Figure 10.10 AVL-dictionary insertion.
CHAPTER 11
Figure 11.7 A depth-first search program that avoids cycling.
Figure 11.8 A depth-limited, depth-first search program.
Figure 11.10 An implementation of breadth-first search.
Figure 11.11 A more efficient program than that of Figure 11.10 for
the breadth-first search.
CHAPTER 12
Figure 12.3 A best-first search program.
Figure 12.6 Problem-specific procedures for the eight puzzle,
to be used in best-first search of Figure 12.3.
Figure 12.9 Problem-specific relations for the task-scheduling problem.
Figure 12.10 An implementation of the IDA* algorithm.
Figure 12.13 A best-first search program that only requires
space linear in the depth of search (RBFS algorithm).
CHAPTER 13
Figure 13.8: Depth-first search for AND/OR graphs.
Figure 13.12 Best-first AND/OR search program.
CHAPTER 14
Figure 14.3 Scheduling with precedence constraints and no resource constraints.
Figure 14.4 A CLP(R) scheduling program for problems with precedence and resource constraints.
Figure 14.6 Constraints for some electrical components and connections.
Figure 14.7 Two electrical circuits.
Figure 14.8 A cryptarithmetic puzzle in CLP(FD).
Figure 14.9 A CLP(FD) program for eight queens.
CHAPTER 15
Figure 15.6 A backward chaining interpreter for if-then rules.
Figure 15.7 A forward chaining rule interpreter.
Figure 15.8 Generating proof trees.
Figure 15.9 An interpreter for rules with certainties.
Figure 15.11 An interpreter for belief networks.
Figure 15.12 A specification of the belief network of Fig. 15.10 as
expected by the program of Fig. 15.11.
Figure 15.14 Some frames.
CHAPTER 16
Figure 16.1 A simple knowledge base for identifying animals.
Figure 16.3 A knowledge base for identifying faults in an electric network.
Figures 16.6, 16.7, 16.8, 16.9 combined, with small modifications, into file shell.pl:
(an expert system shell)
CHAPTER 17
Figure 17.2 A definition of the planning space for the blocks world.
Figure 17.3 A definition of the planning space for manipulating camera.
Figure 17.5 A simple means-ends planner.
Figure 17.6 A means-ends planner with goal protection.
Figure 17.8 A planner based on goal regression.
Figure 17.9 A state-space definition for means-ends planning based on goal regression.
CHAPTER 18
Figure 18.9 Attribute definitions and examples for learning to recognize
objects from their silhouettes (from Figure 18.8).
Figure 18.11 A program that induces if-then rules.
File learn_tree.pl: Induction of decision trees (program sketched on pages 466-468)
File prune_tree.pl: Solution to Exercise 18.6
CHAPTER 19
Figure 19.1 A definition of the problem of learning predicate has_daughter.
Figure 19.3 A loop-avoiding interpreter for hypotheses.
Figure 19.4 MINIHYPER - a simple ILP program.
Figure 19.5 Problem definition for learning list membership.
Figure 19.7 The HYPER program. The procedure prove/3 is as in Figure 19.3.
Figure 19.8 Learning about odd-length and even-length simultaneously.
Figure 19.9 Learning about a path in a graph.
Figure 19.10 Learning insertion sort.
Figure 19.12 Learning the concept of arch.
CHAPTER 20
Figure 20.3 Qualitative modelling program for simple circuits.
Figure 20.8 A simulation program for qualitative differential equations.
Figure 20.9 A qualitative model of bath tub.
Figure 20.11 A qualitative model of the circuit in Figure 20.10.
Figure 20.14 A qualitative model of the block-spring system.
File energy.pl: An oscillator model with energy constraint (alternative to one in Fig. 20.14).
CHAPTER 21
Figure 17.6 A DCG handling the syntax and meaning of a small subset of natural language.
CHAPTER 22
Figure 22.2 A game tree translated to Prolog.
Figure 22.3 A straightforward implementation of the minimax principle.
Figure 22.5 An implementation of the alpha-beta algorithm.
Figures 22.6, 22.7, 22.10 combined into single file chess.pl.
CHAPTER 23
Figure 23.1 The basic Prolog meta-interpreter.
Figure 23.2 A Prolog meta-interpreter for tracing programs in pure Prolog.
Figure 23.3 Two problem definitions for explanation-based generalization.
Figure 23.4 Explanation-based generalization.
Figure 23.5 A simple interpreter for object-oriented programs.
Figure 23.6 An object-oriented program about geometric figures.
Figure 23.8 An object-oriented program about a robot world.
Figure 23.12 A pattern-directed program to find the greatest
common divisor of a set of numbers.
Figure 23.13 A small interpreter for pattern-directed programs.
Figure 23.15 A pattern-directed program for simple resolution theorem proving.
Figure 23.16 Translating a propositional calculus formula into a set of (asserted) clauses.
没有合适的资源?快使用搜索试试~ 我知道了~
《Prolog Programming for Artificial Intelligence》附书源码
共99个文件
pl:98个
txt:1个
5星 · 超过95%的资源 需积分: 9 168 下载量 99 浏览量
2008-03-02
23:29:36
上传
评论 3
收藏 73KB RAR 举报
温馨提示
《Prolog Programming for Artificial Intelligence》附书源码
资源推荐
资源详情
资源评论
收起资源包目录
《Prolog Programming for Artificial Intelligence》附书源码.rar (99个子文件)
《Prolog Programming for Artificial Intelligence》附书源码
fig23_12.pl 509B
fig14_8.pl 602B
fig23_13.pl 1KB
fig11_10.pl 804B
fig20_8.pl 6KB
fig6_2.pl 1KB
fig7_3.pl 851B
fig19_10.pl 1KB
fig9_13.pl 747B
fig17_3.pl 2KB
fig9_17.pl 483B
frequent.pl 3KB
fig23_6.pl 2KB
leaks_cert.pl 489B
fig19_1.pl 1001B
fig11_7.pl 569B
fig23_15.pl 1KB
fig23_4.pl 1KB
fig4_9.pl 960B
fig23_1.pl 237B
fig4_5.pl 3KB
fig9_7.pl 441B
fig19_7.pl 8KB
fig14_6.pl 792B
fig15_6.pl 514B
fig2_16.pl 713B
fig11_8.pl 389B
fig19_5.pl 614B
fig22_5.pl 2KB
fig14_9.pl 887B
fig23_16.pl 2KB
eight_ida.pl 4KB
energy.pl 691B
fig12_3.pl 3KB
fig10_6.pl 2KB
fig9_10.pl 494B
fig18_11.pl 4KB
fig11_11.pl 755B
fig17_9.pl 926B
fig9_22.pl 1KB
fig15_11.pl 2KB
fig4_11.pl 1KB
fig9_2.pl 503B
fig7_4.pl 621B
prune_tree.pl 2KB
fig4_7.pl 824B
fig7_2.pl 1KB
fig20_11.pl 729B
fig12_9.pl 3KB
fig22_3.pl 1KB
fig15_7.pl 866B
fig16_1.pl 2KB
fig1_8.pl 1KB
fig16_3.pl 2KB
fig23_2.pl 1KB
fig20_3.pl 2KB
chess.pl 13KB
leaks.pl 481B
fig9_23.pl 1KB
fig15_8.pl 430B
fig19_3.pl 2KB
fig9_3.pl 585B
fig23_3.pl 2KB
fig14_4.pl 3KB
fig10_7.pl 570B
fig20_9.pl 788B
fig9_20.pl 438B
fig22_2.pl 689B
fig17_6.pl 1KB
fig9_21.pl 558B
fig2_14.pl 1KB
fig23_8.pl 1KB
fig17_8.pl 2KB
programs.txt 6KB
map.pl 435B
fig12_13.pl 3KB
fig21_6.pl 1KB
fig12_6.pl 4KB
fig14_7.pl 781B
fig13_12.pl 5KB
fig19_8.pl 605B
fig15_14.pl 1KB
fig17_5.pl 2KB
fig20_14.pl 567B
fig17_2.pl 1KB
fig15_12.pl 685B
fig13_8.pl 2KB
fig23_5.pl 901B
shell.pl 11KB
fig14_3.pl 1019B
fig15_9.pl 546B
fig19_4.pl 3KB
fig9_15.pl 874B
fig12_10.pl 2KB
fig10_10.pl 1KB
fig19_9.pl 871B
fig18_9.pl 999B
learn_tree.pl 5KB
fig19_12.pl 2KB
共 99 条
- 1
资源评论
- zzhan0812013-12-09非常好的实例集合
- xiangbolei2013-12-11很好很强大学习中
- 竹林浪子2014-10-22很好,正是我需要的,要是有第二版的就更好了
- 小绿2011-12-05内容源代码蛮多的,不过中间貌似缺了几章。。
- Pirateprinz2015-02-01中间貌似缺了几章。。
morre
- 粉丝: 187
- 资源: 2337
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功