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