Professional Documents
Culture Documents
KNOWLEDGE
REPRESENTATION
Prepared by: Dr. Ram Paul Hathwal
Dept of CSE, ASET, AUUP
Outlines
Department of Computer
Science and Engineering
AI Techniques
Types of Knowledge
Procedural v/s Declarative Knowledge
Knowledge Representation Issues
Semantic Networks
FRAMES
Scripts
Department of Computer
AI Techniques Science and Engineering
Knowledge-based approaches
Machine-learning approaches
Department of Computer
Knowledge Base Science and Engineering
All can utilize deep learning based on whether they are using
more than one neural network layers.
Department of Computer
Types of Knowledge Science and Engineering
Knowledge
Declarative Procedural
Declarative knowledge deals with factoid questions (what is the capital of India?
Who won the Wimbledon in 2005? etc.)
Procedural knowledge deals with “How”
Procedural knowledge can be embedded in declarative knowledge
Department of Computer
Procedural v/s Declarative Knowledge Science and Engineering
7
Department of Computer
Procedural v/s Declarative Knowledge Science and Engineering
The difference between the declarative and the procedural views of knowledge
lies in where control information resides. Consider the example
man(Marcus)
man (Ceaser)
Person(Cleopatra)
Vx : man(x) person(x)
Now we want to extract from this knowledge base the ans to the question :
Ǝy : person (y)
Marcus, Ceaser and Cleopatra can be the answers
8
Department of Computer
Procedural v/s Declarative Knowledge Science and Engineering
As there is more than one value that satisfies the predicate, but only one value is
needed, the answer depends on the order in which the assertions are examined
during the search of a response.
If we view the assertions as declarative, then we cannot depict how they will be
examined. If we view them as procedural, then they do.
Let us view these assertions as a non deterministic program whose output is
simply not defined, now this means that there is no difference between Procedural
& Declarative Statements. But most of the machines don’t do so, they hold on to
what ever method they have, either sequential or in parallel. The focus is on
working on the control model.
9
Department of Computer
Procedural v/s Declarative Knowledge Science and Engineering
Example
man(Marcus)
man (Ceaser)
Vx : man(x) person(x)
Person(Cleopatra)
If we view this as declarative then there is no difference with the previous statement.
But viewed procedurally, and using the control model, we used to got Cleopatra as
the answer, now the answer is marcus.
The answer can vary by changing the way the interpreter works.
The distinction between the two forms is often very Fuzzy. Rather then trying to
prove which technique is better, what we should do is to figure out what the ways in
which rule formalisms and interpreters can be combined to solve problems. 10
A Declarative and Department of Computer
Procedural Representation Science and Engineering
11
144
Department of Computer
Knowledge Representation Schemes Science and Engineering
1. Propositional calculus
2. Predicate calculus
3. Semantic net
4. Frames
It becomes clear that particular knowledge representation models allow for more
specific more powerful problem solving mechanisms that operate on them.
Examine specific techniques that can be used for representing & manipulating
knowledge within programs.
Representation & Mapping
Facts :- truths in some relevant world
These are the things we want to represent.
Representations of facts in some chosen formalism.
Things we are actually manipulating. Structuring these entities is as two levels.
The knowledge level, at which facts concluding each agents behavior & current
goals are described.
Semantic Networks Department of Computer
Science and Engineering
is a is a
Scooter Two - wheeler Motor – bike
is a
has has
Brakes Moving – vehicles Engine
has has
Electrical system Fuel - system
Mammal
is a
Has part
Person Nose
FRAMES :- means of representing common sense knowledge. Knowledge is organized into small packets
called “Frames”. All frames of a given situation constitute the system.
A frame can be defined as a structure that has slots for various objects & a collection of frames consist of
expectation for a given situation.
Frame are used to represent two types of knowledge viz. declarative/factual and procedural, declarative &
procedural Frames: -
A frame that merely contains description about objects is call a declarative type/factual situational frame.
Name : Computer Centre
Name of the frame
A/c Stationary
cupboard Slots in the frame
Computer Dumb
terminals
Printer
Department of Computer
Frames Science and Engineering
Frames which have procedural knowledge embedded in it are called action procedure
frames. The action frame has the following slots.
Actor slot which holds information @ who is performing the activity.
Source Slot hold information from where the action has to begin.
Destination slot holds information about the place where action has to end.
Task slot: This generates the necessary sub frames required to perform the operation.
Name : Cleaning the ict of carburetor
Actor
Expert
Object
Source Destination
Scooter Scooter
Task 1 Task 2 Task 3
Remove Carburetor Clean Fix Carburetor
Nozzle
Scripts Department of Computer
Science and Engineering
Thanks!
7/5/22 20