Recap

Improving Backtracking

  • General-purpose ideas to improve speed
  • Filtering: Forward Checking, Constraint Propagation, K-Consistency
  • Ordering:
    • Which variable assigned next? MRV, Degree
    • Which order values tried? LCV
  • Structure:
    • Independent Subproblems

Consistency of a Single Arc

  • is consistent if for every x in the tail, there exists some y that can be assigned without violating constraint.

Logic and Reasoning

Knowledge Base

  • Knowledge Base (KB): Set of sentences in formal language
  • “Tell” the agent what it needs to know.
  • The agent can then “ask” itself what to do.
  • Answers should follow from the KB
  • “For all objects that exists in the world, if the object is a bird, then the object can fly.”
  • Penguins can’t fly! Be careful when making KBs.

Entailment

  • Models are formally structured possible worlds with respect to which truth can be evaulated.
  • A sentence is true in model :
    • is a model of
    • satisfies
  • Entailment: iff M(KB) \subseteq M(a)$
  • = set of ALL models of !

Inference

Procedure / Algorithm to derive conclusions
  • : Sentence can be derived from by procedure
  • Soundness: is sound if whenever , it is also true that
  • Completeness: is sound if whenever , it is also true that

Propositional Logic

Syntax

  • Atomic Sentences:
    • Propositional symbols : A proposition that can be true or false.
  • Complex Sentences:
    • If is a sentence, is a sentence (negation)
    • are sentences, is a sentence. (conjunction)
    • (disjunction)
    • (exclusive disjunction, XOR)
    • (implication)
    • (biconditional)

Semantics

  • Each model specifies true/false for each proposition symbol.