Knowledge and Application Flashcards
Declarative approach
Tell the agent what it needs to know and let it use reasoning to deduce consequences
Knowledge base
Contains facts, rules and general knowledge about the domain in some formal language
Reasoning engine
Produces relevant consequences of the knowledge base
Unary rule-based
Let Ka (assertions) contain:
CompetesInPremierLeague(LiverpoolFC)
CompetesInPremierLeague(EvertonFC)
Kr (rules):
CompetesInPremierLeague(x) -> CompetesInFACup(x)
Atomic assertions follow from K:
CompetesInFACup(Liverpool FC)
FootballCLub(Everton)
class(individual variable) -> individual is part of class
K be knowledge base and A(b) an atomic assertion
K |= A(b)
if whenever K is true, then A(b) is true since Kr allows us to prove this (acts like a bridge).
Ka - {A1(a)}
Kr = {A1(x) -> A2(x), A2(x) -> A3(x)} if x is in a1, then it is in a3
K |= {A1(a), A2(a), A3(a)}
Time Complexity
IndividualName*ClassName
Relation Name
Peter is the son of John
John is the son of Joseph
Relation name R denotes a set of pairs of individual objects, also called binary predicates:
onOf
grandsonOf
sonOf(Peter, John) - R(a,b) is atomic assertion
Propositional Logic
A statement that can be true or false.
Proof
a and q = m therefore I(m) = 1 (1 being true, 0 being false)*
f = q
!p = a
I(p) exists {0,1} -> I is the interpretation
=>
If P is false, then P=>Q is true.
If the first initial value is false.
Satisfiable
Propositional formula is satisfiable if there exists an interpretation under which it is true.
A . !A is a contradiction, because everything in the truth table adds up to false.
2^n interpretations
N propositional atoms creates combinatorial explosion.
Propositional Knowledge Base
Is a finite set of propositional formulas.
∧
And
P=>Q
If P is false, Q is true.