Module-2 Ai
Module-2 Ai
To solve the complex problems come across in artificial intelligence, it needs both
A variety of ways of representing knowledge (facts) have been exploited in AI programs. We must
consider the point that pertains to all types of representation namely dealing with two different
kinds of entities:
✓ Facts: Truths in some relevant world and these are the things we want to represent.
✓ Representations of facts in some chosen formalism and these are the things will be able to
manipulate.
✓ Structuring these entities is done at two levels:
– The knowledge level, at which facts (behaviors and current goals) are described.
– The symbol level, at which representations of objects at the knowledge level are defined in
terms of symbols that can be manipulated by programs.
✓ Mappings between facts and Representations are shown in figure above. Here, focus is on
facts, on representations, and on the two-way mappings that must exist between them and these
links are called representation mappings.
✓ The backward representation mapping goes from representations to facts. Here, also have
mapping functions from English sentences to the representation and back to sentences. Figure
above shows how these three kinds of objects relate to each other.
✓ Figure below shows an expanded view of the starred part of the above Figure. The dotted line
across the top represents the abstract reasoning process that a program is intended to model.
The solid line across the bottom represents the concrete reasoning process that a particular
program performs. This program successfully models the abstract process to the extent that, when
the backward representation mapping is applied to the program’s output, the appropriate final facts
are actually generated.
A good Knowledge Representation enables fast and accurate access to Knowledge and understanding
of the concept/content. A good system for the representation of knowledge in a particular domain
should possess the following four properties:
✓ Representational Adequacy: The ability to represent all of the kinds of knowledge that are
needed in that domain.
✓ Inferential Adequacy: The ability to manipulate the representational structures in such a
way as to derive new structures corresponding to new knowledge inferred from old.
✓ Inferential Efficiency: The ability to incorporate additional information into the knowledge
structure that can be used to focus the attention of the inference mechanisms in the most
promising directions.
✓ Acquisitional Efficiency: Ability to acquire new knowledge using automatic methods /
programs whatever possible rather than reliance on human intervention.
Here it is noted that, to date, no signal system can optimizes all of the above properties.
• Inheritable Knowledge
✓ It prescribes a structure in which new objects can be created which may inherit all or a subset of
attributes from existing objects.
✓ Knowledge is embodied in the design hierarchies found in the functional, physical and process
domains.
✓ Within the hierarchy, elements inherit attributes from their parents, but in many cases not all
attributes of the parent elements be prescribed to the child elements.
✓ Inheritance is a powerful form of inference, but not adequate. The basic Knowledge
representation (KR) needs to be augmented with inference mechanism.
✓ The objects or elements of specific classes inherit attributes and values from more general classes.
The classes are organized in a generalized hierarchy.
✓ To support property inheritance, objects must be organized into classes and classes must be
arranged in a generalization hierarchy. Figure 3 shows some additional baseball knowledge
inserted into a structure that is so arranged.
✓ Boxed nodes represent objects and values of attributes of objects. These values can also be viewed
as objects with attributes and values, and so on.
✓ The arrows on the lines point from an object to its value along the corresponding attribute line.
The structure shown in the Figure 3 is a slot-and-filler structure. It may also be called a semantic
network or a collection of frames.
We can apply this procedure to our example knowledge base to derive answers to the following
queries:
✓ team (Pee-Wee-Reese)=Brooklyn-Dodgers.
This attribute had a value stored explicitly in the knowledge base.
✓ Batting-average (Three-Finger Brown) = 0.106
Since there is no value for batting average stored explicitly for Three Finger Brown, we
follow the instance attribute to Pitcher and extract the value stored there.
✓ height (Pee-Wee-Reese)=6-1
This represents another default inference. Notice here that because we get to it first, the more
specific fact about the height of baseball players .
✓ bats (Three-Finger-Brown)=Right
To get a Value for the attribute bats required going up the isa hierarchy to the class Baseball-
Player. But what we have found there was not a value but a rule for computing a value.
This rule required another value (that for handed) as input. So the entire process must be
begun again recursively to find a value for handed.
• Inferential Knowledge
✓ Inferential Knowledge is a powerful form of inference. Sometimes all the power of traditional
logic is necessary to describe the inferences that are needed.
✓ Knowledge is inferred from objects through relations among objects.
✓ Example: a word alone is a simple syntax, but with the help of other words in phrase, the
reader may infer more from a word. This inference within linguistic is called semantics.
✓ Uses inference mechanism to generate new knowledge from the given knowledge.
✓ Many inference rules / procedures Resolution principle, are used to draw inferences in
predicate logic.
dog (Tommy)
2. All dogs are animals
∀𝗑 dog (𝗑) → animal (𝗑)
3. All animals either live on land or in water
∀𝗑 animal (𝗑) → live (𝗑, land) v live (𝗑, water)
The goal of Knowledge Representation is to facilitate inferencing / to draw conclusions from the
knowledge. We need to know several issues in knowledge representation before discussion of
specific mechanisms that have been used to represent various kinds of real-world knowledge:
• Important Attributes
✓ The attributes of objects that are basic and common occur in almost every problem domain?
If such attributes exist, what are they?
– There are two attributes: Instance and IS-A
– Example: IS-A and Instance attributes are important because they support inheritance.
• Relationships among Attributes
✓ Are there important relationships that exist among object attributes?
✓ There are four such mentioned here:
– Inverses
– Existence in an IS-A hierarchy
– Techniques for reasoning about values
– Single-valued attributes
Inverses
Refer Figure of baseball player: Inheritable Knowledge: we used the attributes instance, isa
and team. Each of these is shown in the figure with a directed arrow, originating at the
object that was being described and terminating at the object representing the value of the
specified attribute. These relationships are Binary relationships.
For example,
The second approach is to use attributes that focus on a single entity but to use them in pairs,
one the inverse of the other. In this approach, we would represent the team information with
two attributes:
o Information about the type of the value. For example, the value of height must be a number
measured in a unit of length.
o Constraints on the value often stated in terms of related entities. For example, the age of
a person cannot be greater than the age of either of that person’s parents.
o Needs Rules for computing the value when it is required. We showed an
example of such a rule in Figure 3 for the bats attribute. These rules are called backward
rules. Such rules have also been called if-needed rules.
o Rules that describe actions that should be taken if a value ever becomes known. These
rules are called forward rules, or sometimes if-added rules.
Single-Valued Attributes
A specific but very useful kind of attribute is one that is guaranteed to take a
unique value. For example a baseball player can, at any one time, have only a single
height and be a member of only one team.
o Introduce an explicit notation for temporal interval (a specific period of time that is used
to address problems related to temporal data). If two different values are ever asserted for
the same temporal interval, signal a contradiction automatically.
o Assume that the only temporal interval that is of interest is now. So if a new value is
asserted, replace the old value.
o Provide no explicit support. Logic-based systems are in this category. But in these systems,
knowledge-base builders can add axioms that state if an attribute has one value then it is
known not to have all other values.
Question bank
1. Define is Artificial Intelligence? Describe Key AI Techniques.
2. Explain the task domains/Applications of Artificial Intelligence.
3. Explain the Physical symbol system hypothesis with reference to AI.
4. Discuss the Turing test with an example.
5. Explain the four types of Production System Characteristics with an example for each.
6. What are the two types of Control Strategies in AI.
7. Discuss the AI Problem characteristics.
8. Explain Steps for Solving a Problem Using AI
9. Discuss Issues in the Design of Search Programs
10. What is Heuristic search and Heuristic Functions in Search.
11. Discuss the Block diagram explaining Representation of Facts.
12. Explain the Inference Knowledge representation Approach with an example.
13. Discuss the Inheritable knowledge representation with an example.
14. Explain the approaches to handle single-valued attribute
15. Explain decomposable problems with an example.
16. Write the four properties of knowledge representation systems.
17. Discuss the issues in knowledge representation.