人工智能作业之产生式推理系统

Title:已知有规则:

if 动物有毛发	then	动物是哺乳动物
if 动物有奶	then	动物是哺乳动物
if 动物有羽毛	then	动物是鸟 
if 动物会飞	and	会生蛋	then	动物是鸟
if 动物吃肉	then	动物是食肉动物
if 动物有犀利牙齿	and	有爪	and	眼向前方	then	动物是食肉动物
if 动物是哺乳动物	and	有蹄	then	动物是有蹄类动物
if 动物是哺乳动物	and	反刍	then	动物是有蹄类动物
if 动物是哺乳动物	and	食肉动物	and	有黄褐色 and 有暗斑点 then 动物是豹 
if 动物是哺乳动物	and	食肉动物	and	有黄褐色 and 有黑色条纹 then 动物是虎
if 动物是有蹄类动物  and 有长脖子	and	有长腿	and	有暗斑点 then 动物是长颈鹿
if 动物是有蹄类动物 and	有黑色条纹 then 动物是斑马
if 动物是鸟	and不会飞 and	有长脖子	and	有长腿 and有黑白二色 then 动物是鸵鸟
if 动物是鸟 and不会飞 and	会游泳 and有黑白二色 then  动物是企鹅
if 动物是鸟 and善飞 then 动物是信天翁 

现在假设推理开始前综合数据库中存放有如下事实:
有毛发,反刍动物,有黑色条纹
回答:该动物是什么?并写出解路径。

答案:Zebra

参考链接们:
(1)人工智能——基于产生式的动物识别系统(JAVA)
https://blog.csdn.net/x453987707/article/details/52727936

(2)人工智能之产生式系统(JAVA)
https://blog.csdn.net/wangchinlung/article/details/72630959

(3)基于产生式表示的动物识别系统(C)
https://blog.csdn.net/tiantangrenjian/article/details/6897722

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值