AI Unit - 2
AI Unit - 2
Introduction
• Advantages:
– Logical representation helps to perform logical
reasoning.
– This representation is the basis for the
programming languages.
• Disadvantages:
– Logical representations have some restrictions
and are challenging to work with.
– This technique may not be very natural, and
inference may not be very efficient.
Semantic Network Representation
• Advantages:
– Semantic networks are a natural representation of
knowledge.
– Also, it conveys meaning in a transparent manner.
– These networks are simple and easy to understand.
• Disadvantages:
– Semantic networks take more computational time at
runtime.
– Also, these are inadequate as they do not have any
equivalent quantifiers.
– These networks are not intelligent and depend on the
creator of the system.
Frame Representation
• Advantages:
– The production rules are expressed in natural
language.
– The production rules are highly modular and can be
easily removed or modified.
• Disadvantages:
– It does not exhibit any learning capabilities and does
not store the result of the problem for future uses.
– During the execution of the program, many rules may
be active. Thus, rule-based production systems are
inefficient.
Representation Requirements
• A good knowledge representation system must have
properties such as:
– Representational Accuracy: It should represent all kinds
of required knowledge.
– Inferential Adequacy: It should be able to manipulate the
representational structures to produce new knowledge
corresponding to the existing structure.
– Inferential Efficiency: The ability to direct the inferential
knowledge mechanism into the most productive
directions by storing appropriate guides.
– Acquisitional efficiency: The ability to acquire new
knowledge easily using automatic methods.
Approaches to Knowledge Representation in AI
• Inheritable Knowledge
– In the inheritable knowledge approach, all data
must be stored into a hierarchy of classes and
should be arranged in a generalized form or a
hierarchal manner.
– Also, this approach contains inheritable
knowledge which shows a relation between
instance and class, and it is called instance
relation.
– In this approach, objects and values are
represented in Boxed nodes.
Approaches to Knowledge Representation in AI
• Inheritable Knowledge
Approaches to Knowledge Representation in AI
• Inferential Knowledge
• The inferential knowledge approach represents
knowledge in the form of formal logic. Thus, it can be
used to derive more facts. Also, it guarantees
correctness.
• Example:
Statement 1: John is a cricketer.
Statement 2: All cricketers are athletes.
Then it can be represented as;
– Cricketer(John)
– ∀x = Cricketer (x) — — — - > Athelete (x)s
Issues in Knowledge Representation
• Choosing Granularity:
– At what level of detail should the knowledge be
represented?
– Regardless of the KR formalism, it is necessary to know:
• At what level should the knowledge be represented
and what are the primitives?
• Should there be a small number or should there be a
large number of low-level primitives or High-level
facts.
• High-level facts may not be adequate for inference
while Low-level primitives may require a lot of storage.
Issues in Knowledge Representation
• Example of Granularity:
Suppose we are interested in following facts:
John spotted Sue.
This could be represented as
Spotted (agent(John),object (Sue))
• Such a representation would make it easy to answer questions such are:
Who spotted Sue?
• Suppose we want to know:
Did John see Sue?
• Given only one fact, we cannot discover that answer.
• We can add other facts, such as
Spotted(x, y) -> saw(x, y)
• We can now infer the answer to the question.
Issues in Knowledge Representation
• Set of objects:
• How should sets of objects be represented?
• There are certain properties of objects that are true as
member of a set but not as individual;
• Example: Consider the assertion made in the sentences:
“there are more sheep than people in Australia”, and
“English speakers can be found all over the world.”
• To describe these facts, the only way is to attach
assertion to the sets representing people, sheep, and
English.
Issues in Knowledge Representation