Download presentation
Presentation is loading. Please wait.
1
CS621: Artificial Intelligence
Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 31– Predicate Calculus and Knowledge Representation contd; Himalayan Club example
2
Predicate Calculus: well known examples
Man is mortal : rule ∀x[man(x) → mortal(x)] shakespeare is a man man(shakespeare) To infer shakespeare is mortal mortal(shakespeare)
3
Forward Chaining/ Inferencing
man(x) → mortal(x) Dropping the quantifier, implicitly Universal quantification assumed man(shakespeare) Goal mortal(shakespeare) Found in one step x = shakespeare, unification
4
Backward Chaining/ Inferencing
man(x) → mortal(x) Goal mortal(shakespeare) x = shakespeare Travel back over and hit the fact asserted man(shakespeare)
5
Inferencing Inferencing Forward Chaining Forward Chaining
Backward Chaining Goal Driven Fact Driven Goal Must Be Known Focused Search
6
AND-OR Graphs P(x) → Q(x) AND R(x) P(x) → M(x) P(X) OR M(X) AND Q(X)
7
AND-OR Graphs Whole rule base can be represented as an AND-OR graph
AO* Search: A* like search on AND-OR graphs
8
Strategy Deciding Forward Chaining/Backward Chaining is decided from:
AO Graph and, OR Fan-Out and, Fan-In of Goal Node
9
Hilbert's Logical Axioms
P(x) → (Q(x) → P(x)) [P(x) → (Q(x) → R(x))] → [(P(x) → Q(x)) → (P(x) → Q(x))] ~(~P(x)) → P(x)
10
Resolution - Refutation
man(x) → mortal(x) Convert to clausal form ~man(shakespeare) mortal(x) Clauses in the knowledge base man(shakespeare) mortal(shakespeare)
11
Resolution – Refutation contd
Negate the goal ~man(shakespeare) Get a pair of resolvents
12
Resolution Tree
13
Search in resolution Heuristics for Resolution Search
Goal Supported Strategy Always start with the negated goal Set of support strategy Always one of the resolvents is the most recently produced resolute
14
Inferencing in Predicate Calculus
Forward chaining Given P, , to infer Q P, match L.H.S of Assert Q from R.H.S Backward chaining Q, Match R.H.S of assert P Check if P exists Resolution – Refutation Negate goal Convert all pieces of knowledge into clausal form (disjunction of literals) See if contradiction indicated by null clause can be derived
15
P converted to Draw the resolution tree (actually an inverted tree). Every node is a clausal form and branches are intermediate inference steps.
16
Terminology Pair of clauses being resolved is called the Resolvents. The resulting clause is called the Resolute. Choosing the correct pair of resolvents is a matter of search.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.