Unification and Resolution - Artificial Intelligence - Lecture Slides, Slides of Artificial Intelligence

Some concept of Artificial Intelligence are Agents and Problem Solving, Autonomy, Programs, Classical and Modern Planning, First-Order Logic, Resolution Theorem Proving, Search Strategies, Structure Learning. Main points of this lecture are: Unification and Resolution, Propositional, First-Order Logic, Logical Agents, Propositional Logic, Normal Forms, Sequent Rules, Problem Solving, Predicates and Terms, Quantifiers

Typology: Slides

2012/2013

Uploaded on 04/29/2013

shantii
shantii 🇮🇳

4.4

(14)

97 documents

1 / 16

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lecture 18 of 41
Unification and Resolution
(Continued)
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Unification and Resolution - Artificial Intelligence - Lecture Slides and more Slides Artificial Intelligence in PDF only on Docsity!

Lecture 18 of 41

Unification and Resolution

(Continued)

Lecture Outline

  • Today’s Reading

  • Last Week’s Reading: Chapter 9, R&N
  • Previously: Propositional and First-Order Logic
    • Two weeks ago
      • Logical agents: KR, inference, problem solving
      • Propositional logic: normal forms, sequent rules
      • Predicates and terms
      • First-order logic (FOL): quantifiers
    • Last week
      • FOL agents; frame problem; situation calculus, successor-state axioms
      • FOL KBs and forward search using sequent rules (sound but incomplete set)
  • Today: Backward Inference
    • Resolution refutation (sound and complete proof procedure)
    • Computability (decidability) issues

Offline Exercise:

Read-and-Explain Pairs

  • For Class Participation (PS3, MP4)
  • With Your Term Project Partner or Assigned Partner(s)
  • Read: Chapter 9 (esp. 9.2, 9.5), Chapter 10 R&N 2e
  • By Fri 08 Oct 2004, Fri 15 Oct 2004

Review:

Logic Programming (Prolog) Examples

  • See: Section 9.7 Sidebar, p. 288 R&N
  • Duals (Why?)
  • Complexity Classes
  • Understand: Reduction to Ld , LH

Decidability Revisited

SAT

VALID

L

L

SAT
VALID

L

L

Unification Procedure:

General Idea

  • Most General Unifier (Least-Commitment Substitution)
  • See: Examples (p. 271 R&N, Nilsson and Genesereth)

Logic Programming – Tricks of The Trade [1]:

Dealing with Equality

  • Problem
    • How to find appropriate inference rules for sentences with =?
    • Unification OK without it, but…
    • A = B doesn’t force P ( A ) and P ( B ) to unify
  • Solutions
    • Demodulation
      • Generate substitution from equality term
      • Additional sequent rule: p. 284 R&N
    • Paramodulation
      • More powerful
      • Generate substitution from WFF containing equality constraint
      • e.g., ( x = y )P(x)
      • Sequent rule sketch: p. 284 R&N

Example [3]

Demodulation and Paramodulation

Logic Programming – Tricks of The Trade [3]:

Indexing Strategies

  • Store and Fetch
    • Idea: store knowledge base in list of conjuncts
    • STORE: constant, i.e., O(1) worst-case running time
    • FETCH: linear, i.e., O( n ) time
  • Table Based
    • Idea: store KB in hash table (key: ground literals)
    • STORE: O(1)
    • FETCH: O(1) expected case
    • Problems
      • Complex WFFs (other than negated atoms)
      • Variables
    • Solution: implicative normal form matching (Figure 10.1, p. 301 R&N)
  • Tree-Based
    • What if there are many clauses for a predicate? (e.g., Brother (012-34-5678, x ))
    • Type of combined indexing: joint primary key – predicate and argument symbols
    • May need background knowledge for semantic query optimization (SQO)

Adapted from slides by S. Russell, UC Berkeley

Logic Programming – Tricks of The Trade [4]:

Compilation

  • Intermediate Languages
    • Abstract machines
      • Warren Abstract Machine (WAM)
      • Java Virtual Machine (JVM)
    • Imperative intermediate representations (IRs)
      • C/C++
      • LISP / Scheme / SML – functional languages with imperative features
  • Use in Genetic Programming (GLP): Later
  • Beyond Scope of CIS 730: Compiling with Continuations (Appel)

Terminology

  • Properties of Knowledge Bases (KBs)
    • Satisfiability and validity
    • Entailment and provability
  • Properties of Proof Systems
    • Soundness and completeness
    • Decidability, semi-decidability, undecidability
  • Resolution
  • Refutation
  • Satisfiability, Validity
  • Unification
    • Occurs check
    • Most General Unifer
  • Prolog: Tricks of The Trade
    • Demodulation, paramodulation
    • Unit resolution, set of support, input / linear resolution, subsumption
    • Indexing (table-based, tree-based)