Knowledge Representation in AI
Knowledge Representation in AI
Representation in AI
What is Knowledge Representation?
Knowledge is
awareness gained by
experiences of facts,
data, and situations.
Types of Knowledge
• Declarative Knowledge – It includes concepts, facts, and objects and expressed
in a declarative sentence.
Year 1996
Page 1152
Frame Representation
• Advantages of frame representation:
• The frame knowledge representation makes the programming
easier by grouping the related data.
• The frame representation is comparably flexible and used by many
applications in AI.
• It is very easy to add slots for new attribute and relations.
• It is easy to include default data and to search for missing values.
• Frame representation is easy to understand and visualize.
• Disadvantages of frame representation:
• In frame system inference mechanism is not be easily processed.
• Inference mechanism cannot be smoothly proceeded by frame
representation.
• Frame representation has a much-generalized approach.
Production Rules
• Production rules system consist of (condition, action) pairs which mean, "If
condition then action". It has mainly three parts:
• The set of production rules
• Working Memory
• The recognize-act-cycle
• In production rules agent checks for the condition and if the condition exists then
production rule fires and corresponding action is carried out. The condition part
of the rule determines which rule may be applied to a problem. And the action
part carries out the associated problem-solving steps. This complete process is
called a recognize-act cycle.
• The working memory contains the description of the current state of problems-
solving and rule can write knowledge to the working memory. This knowledge
match and may fire other rules.
• If there is a new situation (state) generates, then multiple production rules will be
fired together, this is called conflict set. In this situation, the agent needs to select
a rule from these sets, and it is called a conflict resolution.
Production Rules
• Example:
• IF (at bus stop AND bus arrives) THEN action (get into the bus)
• IF (on the bus AND paid AND empty seat) THEN action (sit down).
• IF (on bus AND unpaid) THEN action (pay charges).
• IF (bus arrives at destination) THEN action (get down from the bus).
• 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.
Approaches to Knowledge Representation in AI
• Simple Relational Knowledge
– It is the simplest way of storing facts which uses the
relational method. Here, all the facts about a set of the
object are set out systematically in columns.