Rules in zooKeeper f ?x has hair en ?x is a mammal Z2 f x gives milk then ?x is a mammal Z3 f x has feathers hen ?x is a bird Z4 f x flies ?X lays eggs then ?x is a bird Z5 ?x is a mammal ?x eats meat en x is a carnivore 2021/1/27 EIE426-AICV
2021/1/27 EIE426-AICV 11 Rules in ZOOKEEPER Z1 If ?x has hair then ?x is a mammal Z2 If ?x gives milk then ?x is a mammal Z3 If ?x has feathers then ?x is a bird Z4 If ?x flies ?x lays eggs then ?x is a bird Z5 If ?x is a mammal ?x eats meat then ?x is a carnivore
Z6 f ?x is a mammal ?X has pointed teeth ?x has claws ?z has forward-pointing eyes then ?x is a carnivore f ?x is a mammal ?x has hoofs then ?x is an ungulate Z8 f x is a mammal ?x chews cud then ?X is an ungulate Z9 ?x is a carnivore x has tawny color x has dark spots then ?x is a cheetah 2021/1/27 EIE426-AICV
2021/1/27 EIE426-AICV 12 Z6 If ?x is a mammal ?x has pointed teeth ?x has claws ?z has forward-pointing eyes then ?x is a carnivore Z7 If ?x is a mammal ?x has hoofs then ?x is an ungulate Z8 If ?x is a mammal ?x chews cud then ?x is an ungulate Z9 If ?x is a carnivore ?x has tawny color ?x has dark spots then ?x is a cheetah
Z10|f ?x is a carnivore X has tawny color ?x has black strips then ?X is a tiger Z11 ?X is an ungulate ?X has long legs ?x has long neck ?x has tawny color ?X has dark spots the en X is a giraffe Z12 ?X is an ungulate ?x has white color ?x has black stripes then ?x is a zebra 2021/1/27 EIE426-AICV
2021/1/27 EIE426 -AICV 13 Z10 If ?x is a carnivore ?x has tawny color ?x has black strips then ?x is a tiger Z11 If ?x is an ungulate ?x has long legs ?x has long neck ?x has tawny color ?x has dark spots then ?x is a giraffe Z12 If ?x is an ungulate ?x has white color ?x has black stripes then ?x is a zebra
Z13 If x is a bird ?x does not fly X has long legs X has long necl ?x is black and white then ?x is an ostrich Z14仟f ?x is a bird X does not fly X SWIms ?x is black and white then X Is a penguin Z15仟f ?x is a bird ?x is a good flyer then ?x is an albatross 2021/1/27 EIE426-AICV
2021/1/27 EIE426 -AICV 14 Z13 If ?x is a bird ?x does not fly ?x has long legs ?x has long neck ?x is black and white then ?x is an ostrich Z14 If ?x is a bird ?x does not fly ?x swims ?x is black and white then ?x is a penguin Z15 If ?x is a bird ?x is a good flyer then ?x is an albatross
Example 2: A Water Jug Problem-A Reaction System You are given two jugs, a 4-gallon one and a 3- gallon one. Neither has any measuring markers on it. There is a pump that can be used to fill the jugs with water. How can you get exactly 2 gallons of water into 4-gallon jug? This problem can be solved by using a reaction system A reaction system The then patterns specify actions 2021/1/27 EIE426-AICV
2021/1/27 EIE426-AICV 15 Example 2: A Water Jug Problem – A Reaction System You are given two jugs, a 4-gallon one and a 3- gallon one. Neither has any measuring markers on it. There is a pump that can be used to fill the jugs with water. How can you get exactly 2 gallons of water into 4-gallon jug? This problem can be solved by using a reaction system. A reaction system: The then patterns specify actions