Module 2
Module 2
• The third representation does, when combined with the single additional facts
that each domino must cover exactly one white square and one black square.
• The puzzle is impossible to complete.
• A domino placed on the chessboard will always cover one white square and
one black square.
• If the two white corners are removed from the board then 30 white squares
and 32 black squares remain to be covered by dominoes, so this is impossible.
• If the two black corners are removed instead, then 32 white squares and 30
black squares remain, so it is again impossible.
• The solution is number of squares must be equal for positive solution.
• In 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.
• If no good mapping can be defined for a problem, then no matter how good the
program to solve the problem is, it will not be able to produce answers that
correspond to real answers to the problem.
Using Knowledge
Let us consider to what applications and how knowledge may be used.
• Learning: acquiring knowledge. This is more than simply adding new facts to a
knowledge base.
➢New data may have to be classified prior to storage for easy retrieval, etc..
Interaction and inference with existing facts to avoid redundancy and replication in
the knowledge and also so that facts can be updated.
• Retrieval: The representation scheme used can have a critical effect on the
efficiency of the method. Humans are very good at it.
• If things like Is Miles Davis a Jazz Musician? or Can Jazz Musicians play their
instruments well? are asked then the answer is readily obtained from the data
structures and procedures.
• However a question like “Can Miles Davis play his instrument well?” requires
reasoning.
• The above are all related. For example, it is fairly obvious that learning and
reasoning involve retrieval etc.
Approaches to Knowledge Representation
A good Knowledge representation enables fast and accurate access to Knowledge and understanding of
content. The goal of Knowledge Representation (KR) is to facilitate conclusions from knowledge.
• Representational Adequacy: the ability to represent all kinds of knowledge that are needed in that
domain;
• Inferential Adequacy: the ability to manipulate the knowledge represented to produce new
• Inferential Efficiency: the ability to incorporate into the knowledge structure additional information
that can be used to focus the attention of the inference mechanisms in the most promising directions.
• Acquisitional Efficiency: the ability to acquire new information easily. The
simplest case involves direct insertion, by a person of new knowledge into the
database. Ideally, the program itself would be able to control knowledge
acquisition.
No single system that optimizes all of the capabilities for all kinds of knowledge
has yet been found. As a result, multiple techniques for knowledge representation
exist.
Knowledge Representation Schemes
• There are four types of Knowledge Representation:
Example: a word alone is 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.
• This representation gives little opportunity for inference, but it can be used as
the knowledge basis for inference engines.
procedure for finding heaviest player is provided, then these facts will enable that procedure to compute an
answer.
• We can ask things like who "bats - left" and "throws - right".
Inheritable Knowledge
• Here the knowledge elements inherit attributes from their parents.
• 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.
• The inheritance is a powerful form of inference, but not adequate. The basic KR
needs to be augmented with inference mechanism.
• The KR in hierarchical structure, shown below, is called “semantic network” or a
collection of “frames” or “slot-and-filler structure”.
• The structure shows property inheritance and way for insertion of additional
knowledge.
• This new information does not require further data gathering from source, but
does require analysis of the given information to generate new knowledge.
• Example: - given a set of relations and values, one may infer other values or
relations - a predicate logic (a mathematical deduction) is used to infer from a
set of attributes. - inference through predicate logic uses a set of logical
operations to relate individual data. - the symbols used for the logic operations
are:
Procedural Knowledge
• Procedural knowledge can be represented in programs in many ways. The
most common way is simply as for doing something.
• The machine uses the knowledge when it executes the code to perform a
task. Procedural Knowledge is the knowledge encoded in some procedures.
• Production rules, particularly ones that are augmented with information on how
they are to be used, are more procedural than are the other representation
methods.
• But making a clean distinction between declarative and procedural knowledge
is difficult.
• Approach:
• Let each hypothesis be a vector of six constraints, specifying the values of the six
attributes Sky, AirTemp, Humidity, Wind, Water, and Forecast.
For each attribute, the hypothesis will either - Indicate by a “?” that any value is
acceptable for this attribute, - Specify a “single required value” (e.g., Warm) for
the attribute, or - Indicate by a "∅" that no value is acceptable
• ➔ If some instance x satisfies all the constraints of hypothesis h, then h classifies
x as a positive example (h(x) = 1).
• ➔ The hypothesis that PERSON enjoys his favorite sport only on cold days with
high humidity is represented by the expression (?, Cold, High, ?, ?, ?)
• Any hypothesis found to approximate the target function well over a sufficiently
large set of training examples will also approximate the target function well over
other unobserved examples.
VERSION SPACES AND THE CANDIDATE-
ELIMINATION ALGORITHM
Predicate Logic
• Predicate logic is used to represent Knowledge. Predicate logic will be met in
Knowledge Representation Schemes and reasoning methods.
• For example man(x) and man (Himalayas) are contradictory since man(x) and
man(Himalayas ) can be unified.
• It is important that if two instances of the same variable occur, then they must
be given identical substitutions
Resolution Graph
Representing Knowledge using Rule
1. Declarative representation
• The declarative representation is one in which the knowledge is specified but
how to use to which that knowledge is to be put is not given.