手机版

人工智能_(马少平_朱小燕_著)_清华大学出版社_课(21)

发布时间:2021-06-07   来源:未知    
字号:

8、给定下述语句: John likes all kinds of food. Apples are food.

Anything anyone eats and isn't killed by is food. Bill eats peanuts and is still alive. Sue eats everything Bill eats.

(1)用归结法证明"John likes peanuts。" (2)用归结法提取回答"What food does Sue eat?" 答: 该问题用谓词公式描述如下: 已知:

(1)(x){Food(x)→Like(John, x)} (2)Food(Apple) (3)(

x)(

y){[Eat(y, x)∧~Kill(x, y)]→Food(x)}

(4)Eat(Bill, Peanut)∧~Kill(Penut, Bill) (5)(

x){Eat(Bill, x)→Eat(Sue, x)}

目标1:Like(John, Peanut) 目标2:(x)Food(x)∧Eat(Sue, x) 已知条件化子句集: (1)( = (

x){Food(x)→Like(John, x)} x){~Food(x)∨Like(John, x)}

=> {~Food(x)∨Like(John, x)} (2)Food(Apple) (3)( = (

= (

x)(x)(x)(

y){[Eat(y, x)∧~Kill(x, y)]→Food(x)} y){~[Eat(y, x)∧~Kill(x, y)]∨Food(x)} y){~[Eat(y, x)∨Kill(x, y)]∨Food(x)}

=> {~Eat(y, x)∨Kill(x, y)∨Food(x)} (4)Eat(Bill, Peanut)∧~Kill(Penut, Bill) => {Eat(Bill, Peanut), ~Kill(Penut, Bill)} (5)( = (

x){Eat(Bill, x)→Eat(Sue, x)} x){~Eat(Bill, x)∨Eat(Sue, x)}

=> ~Eat(Bill, x)∨Eat(Sue, x) 目标1取反化子句集: ~Like(John, Peanut) 目标2取反化子句集: ~{(x)Food(x)∧Eat(Sue, x)} = (

x)~Food(x)∨~Eat(Sue, x)

=> ~Food(x)∨~Eat(Sue, x)

对于目标1,经变量换名后,得子句集:

{~Food(x1)∨Like(John, x1),Food(Apple),~Eat(y2, x2)∨Kill(x2, y2)∨Food(x2),Eat(Bill, Peanut), ~Kill(Penut, Bill), ~Eat(Bill, x3)∨Eat(Sue, x3), ~Like(John, Peanut)} 归结树如下:

人工智能_(马少平_朱小燕_著)_清华大学出版社_课(21).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
×
二维码
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)