Representation of Knowledge
Representation of Knowledge
Knowledge
Knowledge based Agent
• An intelligent agent needs knowledge about the real world for taking decisions and reasoning to
act efficiently.
• Knowledge-based agents are those agents who have the capability of maintaining an internal
state of knowledge, reason over that knowledge, update their knowledge after observations
and take actions. These agents can represent the world with some formal representation and
act intelligently.
• Why?
• Knowledge-base is required for updating knowledge for an agent to learn with experiences and
take action as per the knowledge.
Inference system
• Inference means deriving new sentences from old. Inference system allows us to add a new
sentence to the knowledge base. A sentence is a proposition about the world.
• Inference system applies logical rules to the KB to deduce new information.
• Inference system generates new facts so that an agent can update the KB.
Operations Performed by KBA
2. Procedural approach
In the procedural approach, we directly encode desired behavior as a program
code. Which means we just need to write a program that already encodes the
desired behavior or agent.
Wumpus world
• cave which has 4/4 rooms connected with passageways
• there are total 16 rooms which are connected with each other
• We have a knowledge-based agent who will go forward in this world
• The cave has a room with a beast which is called Wumpus, who eats anyone who enters the room
• The Wumpus can be shot by the agent, but the agent has a single arrow
• In the Wumpus world, there are some Pits rooms which are bottomless, and if agent falls in Pits,
then he will be stuck there forever
• The exciting thing with this cave is that in one room there is a possibility of finding a heap
of gold
• So the agent goal is to find the gold and climb out the cave without fallen into Pits or eaten
by Wumpus
• The agent will get a reward if he comes out with gold, and he will get a penalty if eaten by
Wumpus or falls in the pit
Wumpus world
Wumpus world
There are also some components which can help the agent to navigate the cave. These
components are given as follows:
• The rooms adjacent to the Wumpus room are smelly, so that it would have some
stench.
• The room adjacent to PITs has a breeze, so if the agent reaches near to PIT, then he
will perceive the breeze.
• There will be glitter in the room if and only if the room has gold.
• The Wumpus can be killed by the agent if the agent is facing to it, and Wumpus will
emit a horrible scream which can be heard anywhere in the cave.
Wumpus world : PEAS Description
The Wumpus world Properties
• Partially observable: The Wumpus world is partially observable because the agent can
only perceive the close environment such as an adjacent room.
• Deterministic: It is deterministic, as the result and outcome of the world are already
known.
• Sequential: The order is important, so it is sequential.
• Static: It is static as Wumpus and Pits are not moving.
• Discrete: The environment is discrete.
• One agent: The environment is a single agent as we have one agent only and Wumpus is
not considered as an agent.
Example