Title: Chapter5 Knowledge Reasoning and Inferencing
1Chapter5 Knowledge Reasoning and Inferencing
- ????? 5 ????????????????????????
- Sasalak Tongkaw
2???????????????
- Durkin (1994) ???????? ???????????????
???????????????????????????? ????????
??????????????????????????????????????????
- Deductive
- Inductive
- Abductive
31.Deductive Reasoning
- Rule I an standing in the raingtI will get wet
- Axiom I am standing in the rain
- Conclusion I will get wet
42.Inductive Reasoning
- Axiom1 Monkeys in the National Zoo eat bananas
- Axiom2 Monkeys in the Songkhla Zoo eat bananas
- Conclusion All monkeys eat bananas
53.Abductive Reasoning
- Rule It is raininggt ground is wet
- Axiom ground is wet
- Conclusion Is it raining?
No may be it wet because of pouring water
64.Analogical Reasoning
- Tiger has four legs, Eats meat
- Lives in India and Southeast Asia
- Lion look like tiger
- Conclusion Lion has four legs,Eats meat
- Lives in India and Southeast Asia
75.Common-Sense Reasoning
- ?????????? ???????????????????????????????????????
??????????????????? ??????????? common-sense ????
??????????????????????????????????????????????????
???????????
8Inference techniques
- Modus Ponens
- Hypothethical syllogism
- Modus Tollens
- Resolution
9Modus Ponens
- If X then Y
- X is True
- Conclusion Y is True
X gt Y X Conclusion Y
10Hypothethical Syllogism
- If X then Y
- If Y then Z
- Conclusion If X then Z
X gt Y Y gt Z Conclusion XgtZ
11Modus Tollens
- If A then B
- not B
- Conclusion not A
A gt B B Conclusion A
12Forward Chaining
- given a set of basic facts, we try to derive a
conclusion from these facts - example What can we conjecture about Clyde?
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant (Clyde)
unification find compatible values for
variables
13Forward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
IF elephant( x ) THEN mammal( x )
elephant (Clyde)
14Forward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
IF elephant(Clyde) THEN mammal(Clyde)
elephant (Clyde)
15Forward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
IF mammal( x ) THEN animal( x )
IF elephant(Clyde) THEN mammal(Clyde)
elephant (Clyde)
16Forward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
IF mammal(Clyde) THEN animal(Clyde)
IF elephant(Clyde) THEN mammal(Clyde)
elephant (Clyde)
17Forward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal( x )
IF mammal(Clyde) THEN animal(Clyde)
IF elephant(Clyde) THEN mammal(Clyde)
elephant (Clyde)
18Forward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal(Clyde)
IF mammal(Clyde) THEN animal(Clyde)
IF elephant(Clyde) THEN mammal(Clyde)
elephant (Clyde)
19Backward Chaining
- try to find supportive evidence (i.e. facts) for
a hypothesis - example Is there evidence that Clyde is an
animal?
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant (Clyde)
unification find compatible values for
variables
20Backward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal(Clyde)
IF mammal( x ) THEN animal( x )
21Backward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal(Clyde)
IF mammal(Clyde) THEN animal(Clyde)
22Backward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal(Clyde)
IF mammal(Clyde) THEN animal(Clyde)
IF elephant( x ) THEN mammal( x )
23Backward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal(Clyde)
IF mammal(Clyde) THEN animal(Clyde)
IF elephant(Clyde) THEN mammal(Clyde)
24Backward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal(Clyde)
IF mammal(Clyde) THEN animal(Clyde)
IF elephant(Clyde) THEN mammal(Clyde)
elephant ( x )
25Backward Chaining Example
IF elephant(x) THEN mammal(x) IF mammal(x) THEN
animal(x) elephant(Clyde)
unification find compatible values for variables
animal(Clyde)
IF mammal(Clyde) THEN animal(Clyde)
IF elephant(Clyde) THEN mammal(Clyde)
elephant (Clyde)
26Forward vs. Backward Chaining
27The End of Chapter 5