AI Notes
AI Notes
17/11/2024 1:26 am
Knowledge and Reasoning
Knowledge and Reasoning:
humans are very good at acquiring new information by
combining raw knowledge, experience with reasoning.
AI-slogan: “Knowledge is power” (or “Data is power”?)
Examples:
Medical diagnosis --- physician diagnosing a patient
infers what disease, based on the knowledge he/she
acquired as a student, textbooks, prior cases
Common sense knowledge / reasoning ---
common everyday assumptions / inferences
e.g., “lecture starts at four” infer pm not am;
when traveling, I assume there is some way to get from the
airport to the hotel.
Logical agents:
Agents with some representation of the complex knowledge about
the world / its environment, and uses inference to derive new
information from that knowledge combined with new inputs (e.g.
via perception).
Key issues:
1- Representation of knowledge
What form? Meaning / semantics?
2- Reasoning and inference processes
Efficiency.
Knowledge-base Agents
• Key issues:
• Representation of knowledge knowledge base
• Reasoning processes inference/reasoning
Both tasks may involve inference – i.e. how to derive new sentences from old
sentences
Logical agents – inference must obey the fundamental requirement that when
one asks a question to the knowledge base, the answer should follow from
what has been told to the knowledge base previously. (In other words the
inference process should not “make things” up…)
Please read section7.2 to understand “The Wumpus world”
A simple knowledge-based agent
Boolean percept
feature values:
<0, 0, 0, 0, 0>
None, none, none, none, none
P?
A/B P?
V
@ T = 1 What follows?
Where next? Pit(2,2) or Pit(3,1)
T=3
4
3 W
S P? S
2 P
1 P? P
1 2 3 4
Models(KB) Models(P_in_(3,1))
• 3 Boolean choices ⇒
• 8 possible interpretations
• (enumerate all the models or
• “possible worlds” wrt Pitt location)
Is KB consistent with all
8 possible worlds? Worlds
that violate KB
(are inconsistent
with what we
know)
Models of α2
Models(KB) Models( )
Example: More formal
P?
A/B P?
V
None, none, none, none, none None, breeze, none, none, none
Stench, Breeze, Glitter, Bump, Scream A – agent
V – visited
B - breeze
Define “OK”: