1 / 30

ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM]

RESOLUTION AND ITS ALGORITHMS. ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM]. Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information Technology Institute of Applied Computer Systems Department of Systems Theory and Design

vivi
Télécharger la présentation

ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM]

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RESOLUTIONAND ITS ALGORITHMS ARTIFICIAL INTELLIGENCE[INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information Technology Institute of Applied Computer Systems Department of Systems Theory and Design E-mail: Janis.Grundspenkis@rtu.lv

  2. Resolution and Its Algorithms RESOLUTION The resolution principle describes a way of finding contradictions in a knowledge base of clauses with minimum use of substitutions. Resolution refutation proves a theorem (a goal) by negating the statement to be proved and adding this negated goal to the set of axioms that are known to be true.

  3. Resolution and Its Algorithms RESOLUTION (continued) The resolution rule of inference is used to show that it leads to a contradiction. As it is shown that the negated goal is inconsistent with the given set of axioms, it follows that the original goal must be consistent.

  4. Resolution and Its Algorithms • RESOLUTION (continued) • Resolution refutation algorithm • Put the premises or axioms into clause form. • Add the negation of the goal (what is to be proved) in clause form to the set of axioms. In other words, assume that the negation of the goal is true. • Resolve these clauses together, producing new clauses that logically follow from them.

  5. Resolution and Its Algorithms • RESOLUTION (continued) • Resolution refutation algorithm • Produce a contradiction by generating the empty clause. • The substitutions used to produce the empty clause are those under which the opposite of the negated goal is true. • Conclude that the negated goal is false because it causes contradiction. • Conclude that the goal is true.

  6. Resolution and Its Algorithms RESOLUTION (continued) Resolution is a sound inference rule. Resolution is not complete but it is refutation complete, i.e., the empty clauses can always be generated whenever a contradiction in the set of clauses exists. The most common form of resolution is binary resolution applied to two clauses. Resolution is more general than Modus Ponens.

  7. Resolution and Its Algorithms RESOLUTION (continued) The resolution proof procedure requires all statements in the knowledge base to be converted to a standard form called clause form. Clause form represents the logical knowledge base as a set of disjunctions of literals. A literal is an atomic expression or the negation of an atomic expression.

  8. Resolution and Its Algorithms • RESOLUTION (continued) • The form the knowledge base takes is referred to as a conjunction of disjuncts. • It is a conjunction because all the clauses in the knowledge base are assumed to be true at the same time. • It is a disjunction in that each of the individual clauses is expressed with disjunction as the connective.

  9. Resolution and Its Algorithms RESOLUTION (continued) Algorithm for reducing any set of predicate calculus statements to clause form must be used. Algorithm consists of a sequence of transformations. A set of clauses is inconsistent if and only if the original set of expressions is inconsistent.

  10. Resolution and Its Algorithms RESOLUTION (continued) The clause form may not be strictly equivalent to the original set of predicate calculus expressions in that certain interpretations may be lost. This occurs because skolemization restricts the possible substitutions for existentially quantified variables.

  11. Resolution and Its Algorithms • RESOLUTION (continued) • Reduction algorithm • Eliminate the implication  using the equivalence • A  B  AB

  12. Resolution and Its Algorithms • RESOLUTION (continued) • Reduction algorithm • Reduce the scope of negation using the following equivalences • (A)  A • (X)p(X)  (X)p(X) • (X)p(X)  (X)p(X) • (AB)  AB • (AB)  AB

  13. Resolution and Its Algorithms • RESOLUTION (continued) • Reduction algorithm • Standardize by renaming all variables so that variables bound by different quantifiers have unique names using the equivalence • ((X)p(X)(X)q(X))  ((X)p(X)(Y)q(Y))

  14. Resolution and Its Algorithms • RESOLUTION (continued) • Reduction algorithm • Move all quantifiers to the left without changing their order. • After this state the clause is in prenex normal form, because all the quantifiers are in front as in a prefix and the expression or matrix follows after.

  15. Resolution and Its Algorithms • RESOLUTION (continued) • Reduction algorithm • Eliminateallexistential quantifiers by skolemization. • Dropalluniversal quantifiers.

  16. Resolution and Its Algorithms • RESOLUTION (continued) • Reduction algorithm • Convert the expression to the conjunct of disjuncts form using associative and distributive laws • A(BC)  (AB)C • A(BC)  (AB)C • A(BC)  (AB)(AC)

  17. Resolution and Its Algorithms • RESOLUTION (continued) • Reduction algorithm • Call each conjunct a separate clause. • Standardize the variables apart by giving the variable in each clause generated by step 8different names, and using the equivalence • (X)(p(X)q(X)  (X)p(X)(Y)q(Y)

  18. Resolution and Its Algorithms RESOLUTION (continued) Reduction algorithm The importance of this final step becomes apparent only when unification steps of resolution are presented. The most general unification may be found to make two predicates within two clauses equivalent, and then this substitution is made across all the variables of the same name within each clause. Thus, if some variables share names with others, these may be renamed by the unification process (needlessly) with a subsequent (possible) loss of generality in the solution.

  19. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • (X)([p(X)  t(X)]  [q(X,V)  (Y)((Z)[q(Y,Z)]  r(X,Y))])  (X)(s(X)) • Eliminate the  • (X)([p(X)  t(X)] [q(X,V)  (Y)((Z)[q(Y,Z)]  r(X,Y))])  (X)(s(X))

  20. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Reduce the scope of negation • (X)([p(X)  t(X)]  [q(X,V)  (Y)((Z)[q(Y,Z)]  r(X,Y))])  (X)(s(X))

  21. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Standardize by renaming all variables • (X)([p(X)  t(X)]  [q(X,V)  (Y)((Z)[q(Y,Z)]  r(X,Y))])  (W)(s(W))

  22. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Move all quantifiers to the left without changing their order • (X)(Y)(Z)(W)([p(X)  t(X)]  [q(X,V)  (q(Y,Z)  r(X,Y))])  s(W)

  23. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Skolemization • (X)(Z)(W)([p(X)  t(X)]  [q(X,V)  (q(f(X),Z)  r(X,f(X)))])  s(W)

  24. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Drop all universal quantifiers • [p(X)  t(X)]  [q(X,V)  (q(f(X),Z)  r(X,f(X)))]  s(W)

  25. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Convert the expression to the conjunct of disjuncts form • [p(X)  t(X)  q(X,V)  s(W)]  [p(X)  t(X)  q(f(X),Z)  r(X,f(X))  s(W)]

  26. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Call each conjunct a separate clause • p(X)  t(X)  q(X,V)  s(W) • p(X)  t(X)  q(f(X),Z)  r(X,f(X))  s(W)

  27. Resolution and Its Algorithms • RESOLUTION (continued) • Application of reduction algorithm • Standardize the variables apart • p(X)  t(X)  q(X,V)  s(W) • p(T)  t(T)  q(f(T),Z)  r(T,f(T))  s(U)

  28. Resolution and Its Algorithms • RESOLUTION (continued) • Strategies and simplification strategies for resolution • In resolution proof procedure no order of clause combination is defined. • When there are N clauses there are N2 ways of combining them at just the first level (exponential growth).

  29. Resolution and Its Algorithms • RESOLUTION (continued) • Strategies and simplification strategies for resolution • Search heuristics are used, for instance, • The unit preference strategy requires that one of the resolvents always be a unit clause. Thus, units are used for resolving whenever they are available.

  30. Resolution and Its Algorithms • RESOLUTION (continued) • Strategies and simplification strategies for resolution • The linear input form strategy is a direct use of the negated goal and the original axioms. Thus, the negated goal is resolved with one of the axioms to get a new clause. This result is then resolved with one of the axioms to get another new clause, and so on. This process continues until the empty clause is produced.

More Related