Knowledge Reasoning and AI-1 (More Group's)
Knowledge Reasoning and AI-1 (More Group's)
KBA are those agents which can combine knowledge with current percepts to Infer hidden
aspects of the current state. KBA is an agent which has knowledge with intelligence.
Knowledge-based agents have the capability of : maintaining an internal state of knowledge,
reason over that knowledge, update their knowledge after observations and take action..
A KBA must be able to do : 1. Represents the state, actions, 2. Incorporate new percepts, 3. An
agent can update the internal representation of the world, 4. An agent can deduce the internal
representation of the world, 5. An agent can deduce appropriate actions.
The knowledge-based agent is composed of two parts:
I. Knowledge base: Knowledge-base is a central component of a knowledge-based agent, it is
also known as KB, It is a collection of sentences.
o These sentences are expressed in a language which is called a knowledge representation
language
o The Knowledge-base of KBA stores facts about the world.
o Knowledge-base is required for updating knowledge for an agent to learn with experiences and
take action as per the knowledge.
II. Inference System: Inference means deriving new sentences from old ones. Inference system
allows us to add a new sentence to the knowledge base.
o A sentence is a proposition about the world
o Inference system applies logical rules to the KB to deduce new information.
o Inference system generates new facts so that an agent can update the KB. An inference system
works mainly in two rules which are given as: 1. Forward chaining, 2. Backward chaining.
OPERATIONS PERFORMED BY KBA:
TELL: This operation tells the knowledge base what it perceives from the environment.
ASK: This operation asks the knowledge base what action it should perform.
Perform: It performs the selected action.
LEVELS OF KBA:
Knowledge Level: Knowledge level is the first level of a knowledge-based agent, and in this
level, we need to specify what the agent knows, and what the agent’s goals are. With these
specifications, we can fix its behavior.
Logical Level: At this level, sentences are encoded into different logics. At the logical level, an
encoding of knowledge into logical sentences occurs.
Implementation Level: This is the physical representation of logic and knowledge. At the
implementation level, agent perform actions as per logic and knowledge level.
Cycle of Knowledge means how flow of knowledge goes in a learning process starting from a
perception of any facts or events to the end as execution.
Knowledge is not limited in the world. So, it should have a well organized way to be learned.
That is the cycle of knowledge. Cycle of knowledge is the way to organizing the gathering
process of knowledge. Every component in the cycle of knowledge should be arrived in order.
TYPES OF KNOWLEDGE:
a) Declarative Knowledge: What is known about the problem.
Also called descriptive knowledge.
Tells us facts: What things are.
Includes: Concepts, facts, objects
b) Procedural Knowledge: Describes how to solve problems. Also known as Imperative
knowledge. Provides direction on how to do something. Can be directly applied to a task
Includes: Rules, Strategies, procedures
c) Meta Knowledge: Describe knowledge about another knowledge.
Used to pick other knowledge that is best suited for solving problems
d) Heuristics Knowledge: It is representing knowledge of some experts in a field or subject.
Describes the thumb rules that guide the reasoning process. Previous experiences, approaches.
e) Structural Knowledge: This type of knowledge helps establish relationships between concepts
or objects and their description, acting as the basic form of knowledge to solve real-world
problems.
Q.8) Wumpus world in brief ?
Performance measure:
+1000 Gold, -1000 Death,
-1 for each action,
and -10 for using an arrow.
Environment: A 4*4 grid of rooms.
The agent initially in room square [1, 1], facing toward the
right, Location of Wumpus and gold are chosen randomly
except the first square [1,1], Each square of the cave can
be a pit with probability 0.2 except the first square.
Actuators: Left turn, Right turn, Move forward, Grab,
Release, Shoot.
Sensors: (Stench, Breeze, Glitter, Bump, Scream)
Squares adjacent to wumpus are smelly
Squares adjacent to pit are breezy Glitter iff gold is in the same square
Bump when agent walks into a wall
When wumpus is killed, it screams
LOGICAL CONNECTIVES:
Sr.no Word Symbol Technical Term Example
1 Not ¬ Negation ¬X
2 And ⋀ Conjunction X∨Y
3 Or ∨ Disjunction X∨Y
4 Implies → Implication (X→Y) if X then
Y
5 If and only if → Biconditional (X →Y)
X: It is hot, Y: It is Humid, Z: It is Raining
1. If it is humid then it is hot 𝑌 → 𝑋
2. It is hot and humid then it is not raining 𝑋 ∧ 𝑌 ¬ 𝑍
TRUTH TABLE:
For negation:
P ¬P
True False
False True
PRECEDENCE OF CONNECTIVES:
LOGICAL EQUIVALENCE:
1. With propositional logic, we cannot represent relations like ALL, some, or none.