The production of artificial intelligence inference system operation

The Title : known rules:

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 动物是信天翁 

Now suppose that reasoning before the start of a comprehensive database stored in the following facts:
there is hair, ruminants, with black stripes
answer: What animal is this? And write the solution path.

The answer: Zebra

Reference links are:
(1) AI - (JAVA) animal identification system based on production
https://blog.csdn.net/x453987707/article/details/52727936

(2) production of artificial intelligence systems (the JAVA)
https://blog.csdn.net/wangchinlung/article/details/72630959

(3) represented by the animal identification system based on production (C)
https://blog.csdn.net/tiantangrenjian/article/details/6897722

Guess you like

Origin blog.csdn.net/JxufeCarol/article/details/91627673