Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.08 KB

PL-Resolution.md

File metadata and controls

19 lines (16 loc) · 1.08 KB

PL-RESOLUTION

AIMA3e

function PL-RESOLUTION(KB, α) returns true or false
inputs: KB, the knowledge base, a sentence in propositional logic
     α, the query, a sentence in propositional logic

clauses ← the set of clauses in the CNF representation of KB ∧ ¬α
new ← { }
loop do
   for each pair of clauses Ci, Cj in clauses do
     resolvents ← PL-RESOLVE(Ci, Cj)
     if resolvents contains the empty clause then return true
     newnewresolvents
   if newclauses then return false
   clausesclausesnew


Figure ?? A simple resolution algorithm for propositional logic. The function PL-RESOLVE returns the set of all possible clauses obtained by resolving its two inputs.