Escolar Documentos
Profissional Documentos
Cultura Documentos
REPRESENTATION OF KNOWLEDGE
Game playing - Knowledge representation, Knowledge representation using Predicate logic,
Introduction to predicate calculus, Resolution, Use of predicate calculus, Knowledge
representation using other logic-Structured representation of knowledge.
GAME PLAYING:
GAME PLAYING AND AI
Games are well-defined problems that are generally interpreted as requiring intelligence to play
well. Introduces uncertainty since opponents moves can not be determined in advance.
Search spaces can be very large. For chess: -Branching factor: 35 -Depth: 50 moves each player
-Search tree: 35100 nodes (~1040 legal positions)
Despite this, human players do quite well without doing much explicit search. They seem to rely
on remembering many patterns.
Good test domain for search methods and development of pruning methods that ignore portions
of the search tree that do not affect the outcome.
GAME PLAYING PROBLEM
Instance of the general search problem.
States where the game has ended are called terminal states.
A utility (payoff) function determines the value of terminal states, e.g. win=+1, draw=0, lose=1.
In two-player games, assume one is called MAX (tries to maximize utility) and one is called
MIN (tries to minimize utility).
In the search tree, first layer is move by MAX, next layer by MIN, and alternate to terminal
states.
Each layer in the search is called a ply.
SAMPLE GAME TREE (TIC-TAC-TOE)
MINIMAX ALGORITHM
MINIMAX COMPUTATION
Determining Cutoff
Search to a uniform depth (ply) d.
Use iterative deepening to continue search to deeper levels until time runs out (anytime
algorithm).
Could end in states that are very dynamic (not quiesent) in which evaluation could
change quickly, as in (d) below.
Alpha-Beta Pruning
Frequently, large parts of the search space are irrelevant to the nal decision and can be
pruned.
No need to explore options that are already denitely worse than the current best option.
Rules
Frames
SemanticNet
Problem solving requires large amount of knowledge and some mechanism for
manipulating that knowledge.
The Knowledge and the Representation are distinct entities, play a central but
distinguishable roles in intelligent system.
Knowledge is a description of the world;
it determines a system's competence by what it knows.
Representation is the way knowledge is encoded;
it defines the system's performance in doing something.
In simple words:
need to know about things we want to represent, and
need some means by which things we can manipulate.
Knowledge Representation Schemes
There are four types of Knowledge representation:
Relational, Inheritable, Inferential, and Declarative/Procedural.
Relational Knowledge:
provides a framework to compare two objects based on equivalent attributes.
any instance in which two different objects are compared is a relational type
of knowledge.
Inheritable Knowledge
is obtained from associated objects.
it prescribes a structure in which new objects are created which may inherit all
or a subset of attributes from existing objects.
Inferential Knowledge
is inferred from objects through relations among objects.
e.g.,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 with in linguistic is
called semantics.
Declarative Knowledge
a statement in which knowledge is specified, but the use to which that
knowledge is to be put is not given.
e.g. laws, people's name; these are facts which can stand alone, not dependent
on other knowledge;
Procedural Knowledge
are presentation in which the control information, to use the knowledge, is
embedded in the knowledge itself.
e.g. computer programs, directions, and recipes; these indicate specific use or
implementation;
Issues in Knowledge Representation
The
fundamental
goal of Knowledge
Representation
facilitate inference (conclusions) from knowledge.
is
to
The issues that arise while using KR techniques are many. Some of these are
explained below.
Important Attributes:
Any attribute of objects so basic that they occur in almost every problem domain?
Relationship among attributes:
Any important relationship that exists among object attributes?
Choosing Granularity:
At what level of detail should the knowledge be represented?
Set of objects:
How sets of objects be represented?
Finding Right structure:
Given a large amount of knowledge stored, how can relevant parts be accessed?
Logic defines ways of putting symbols together so that user can define
legal sentences in the language that represent TRUE facts.
Sentences- either TRUE or false but not both are called propositions.
PREDICATE LOGIC
Predicate logic satisfies the requirements of a language.
is Judy
and
likes(john, apples)
likes(john, fruit_of(apple_tree))
X. likes(X, apples)
RESOLUTION
Resolution is a procedure used in proving that arguments which are expressible in
predicate logic are correct.
Resolution
is
contradiction.
procedure
that
Resolution is so far only defined for Propositional Logic. The strategy is that
the Resolution techniques of Propositional logic be adopted in Predicate Logic.
Types of rules:
Three types of rules are mostly used in the Rule-based production systems.
Knowledge Declarative Rules:
These rules state all the facts and relationships about a problem.
Example:
IF inflation rate declines
THEN the price of gold goes down.
These rules are a part of the knowledge base.
Inference Procedural Rules
These rules advise on how to solve a problem, while certain facts
are known.
Example:
IF the data needed is not in the system THEN request it from the user.
These rules are part of the inference engine.
Meta rules
These are rules for making rules. Meta-rules reason about which rule should be
considered for firing.
Example:
IF
the rules which dont mention the current goal in their premise,
AND there are rules which do mention the current goal in their premise,
THEN the former rule should be used in preference to the latter.
Meta-rules
direct
reasoning
rather
than
actually
performing reasoning.
Meta rules specify which rules should be considered and in which order they
should be invoked.
Programmer need only specify rules and facts since a search engine is built directly in to
the language.
Disadvantages of LP:
Advantages of PROLOG:
A cut can be inserted into a rule to specify a point that may not be backtracked over.
Disadvantages of PROLOG:
PROLOG code can be written that uses search strategies other than depth.
Implicit representations are simpler and slightly more efficient in computing and
memory. Explicit representations allows a system to reason about relations. This is yet another
example of the power of representing program as data.
Frame: A Structured Representation to provide context for focusing visual interpretation of
scenes. Frames provide visual context to guide scene interpretation. A Frame tells the program
what to look for and where to look for it.
SCRIPTS
A script is a data structure used to represent a sequence of events. Scripts are used for
interpreting stories. Popular examples have been script driven systems that can interpret and
extract facts from Newspaper Stories.
Scripts have been used to
1) Interpret, understand and reason about stories,
2) Understand and reason about observed events
3) Reason about observed actions
4) Plan actions to accomplish tasks.
A script is composed of
1) A scene
2) Props (objects manipulated in the script)
3) The actors (agents that can change the state of the world).
4) Events
5) Acts: A set of actions by the actors.
SEMANTIC NETS
Semantic nets are networks of words with rich sets of relations. Because words are
related in a network and not a strict hierarch, a semantic net leads to circular definitions if used
to "define" words.
Fundamental problems with structures.
Some Fundamental Problem with all schema systems.
1) Knowledge acquisition: Learning a schema system is long, tedious, and ad hoc process.
2) Context Recognition (The Frame problem): Many problems are easily solved when the
context is known. Recognizing the correct context can be very difficult.
Solution to both of these can be obtained from probabilistic techniques for learning
and recognition.