SlideShare a Scribd company logo
1 of 33
Download to read offline
Knowledge Representation
Knowledge Representation
• An artificial intelligence system is capable
of not only storing and manipulating data,
but also of acquiring, representing, and
manipulating knowledge.
Knowledge Representation
In automated AI systems, key issues:
• Knowledge acquisition:
The transformation of potential problem-
solving expertise from some knowledge source
to a program.
• Knowledge representation:
As a set of sentences of first order logic
symbolic encoding of propositions
• Knowledge reasoning:
Deducing logical consequences
manipulation of symbols encoding propositions
to produce representations of new
propositions.
Knowledge Representation
• Knowledge representation concerns the
mismatch between human and computer
'memory’.
• We call these representations knowledge
bases, and the operations on these
knowledge bases, inference engine
What to Represent?
• Facts: truths about the real world and what
we represent.
• Representation of the facts:
Which we manipulate. We define the
representation in terms of symbols that
can be manipulated by programs.
Knowledge Representation
Four major representation types
• Logical Representations(First order logic)
• Semantic Networks
• Production Rules
• Frames
Outline
• Why FOL?
• Syntax and semantics of FOL
First-order logic
• Whereas propositional logic assumes the
world contains facts,
• first-order logic (like natural language)
assumes the world contains
– Objects: people, houses, numbers, colors,
baseball games, wars, …
– Relations: has brother of, bigger than,…
– Functions: has father, plus, angle in cosine …
Example
• “One plus two equals three”
– Objects: One, Two, Three
– Relation: equals
– Function: plus
• “Evil King John ruled England in 1200”
– Objects: John, England, 1200
– Relation: ruled
– Properties: evil, King
First-order logic
• In proposition logic every expression is a
sentence which represent a fact
• FOL also has sentences, but it also has
• Terms which represents objects
Syntax of FOL: Basic elements
• Constants KingJohn, A, B, 2...
– An interpretation must specify which object in
the world is referred to by each constant.
– Each constant symbol names exactly one
object
– But not all the objects need to have names
– Some have several names. For example, the
symbol john in one particular interpretation
might refers to evil King John, King of
England from 1199 to 1216 and younger
brother of Richard the Lionheart.
Syntax of FOL: Basic elements
• Predicates Brother, >,...
– An interpretation specifies that a predicate symbol
refers to a particular relation in the model
– For example, the Brother symbol might refer to the
relation of brotherhood
– In a given model, the relation is defined by the set of
tuples of objects that satisfy it
– For example, in the model containing two objects
John and Richard, relation of brotherhood is defined
by set of tuples
{(John, Richard), (Richard, John)}
Syntax of FOL: Basic elements
• Functions Sqrt, LeftLegOf,...
– Functional relation are those in which any given object is related
to one other object by the relation
– For example, angle has only one number that is its cosine or any
person has only one person that is his or her father
– Unlike predicate symbols which are used to state that relations
hold among certain objects, functional symbols are used to refer
to particular objects without using their names
• Variables x, y, a, b,...
• Connectives , , , , 
• Equality =
• Quantifiers , 
Syntax of FOL
•  Nor
•  implies
•  and
•  or
•  if and only if
Universal and Existential
• Universal quantification – (x)P(x) means
that P holds for all values of x in the
domain associated with that variable –
E.g., (x) dolphin(x) # mammal(x)
• Existential quantification – (x)P(x) means
that P holds for some value of x in the
domain associated with that variable –
E.g., ( x) mammal(x) ! lays-eggs(x) –
Permits one to make a statement about
some object without naming it/
FOL
• It is raining.
RAINING
• It is sunny.
SUNNY
• It is windy.
WINDY
• If it is raining, then it is not sunny.
RAINING   SUNNY
Examples
Examples
Atomic sentences
Atomic sentence = predicate (term1,...,termn)
or term1 = term2
Term = function (term1,...,termn)
or constant or variable
• E.g., Brother(KingJohn,RichardTheLionheart)
• > (Length(LeftLegOf(Richard)),
Length(LeftLegOf(KingJohn)))
Complex sentences
• Complex sentences are made from atomic
sentences using connectives
•
S, S1  S2, S1  S2, S1  S2, S1  S2,
E.g. Sibling(KingJohn,Richard) 
Sibling(Richard,KingJohn)
>(2,1)  ≤ (1,2)
>(2,1)   >(1,2)
Truth in first-order logic
• Sentences are true with respect to a model and an interpretation
• Model contains objects (domain elements) and relations among
them
•
• Interpretation specifies referents for
constant symbols → objects
predicate symbols → relations
function symbols → functional relations
• An atomic sentence predicate(term1,...,termn) is true
iff the objects referred to by term1,...,termn
are in the relation referred to by predicate
Models for FOL: Example
Truth table of Implication
Universal quantification
<variables> <sentence>
Everyone at NUS is smart:
x At(x,NUS)  Smart(x)
x P is true in a model m iff P is true with x being each
possible object in the model
Roughly speaking, equivalent to the conjunction of
instantiations of P
At(KingJohn,NUS)  Smart(KingJohn)
 At(Richard,NUS)  Smart(Richard)
 At(NUS,NUS)  Smart(NUS)
 ...
A common mistake to avoid
• Typically,  is the main connective with 
• Common mistake: using  as the main
connective with :
x At(x,NUS)  Smart(x)
means “Everyone is at NUS and everyone is smart”
Existential quantification
• <variables> <sentence>
• Someone at NUS is smart:
• x At(x,NUS)  Smart(x)
• x P is true in a model m iff P is true with x being some
possible object in the model
• Roughly speaking, equivalent to the disjunction of
instantiations of P
At(KingJohn,NUS)  Smart(KingJohn)
 At(Richard,NUS)  Smart(Richard)
 At(NUS,NUS)  Smart(NUS)
 ...
Another common mistake to
avoid
• Typically,  is the main connective with 
• Common mistake: using  as the main
connective with :
x At(x,NUS)  Smart(x)
is true if there is anyone who is not at NUS!
Equality
• term1 = term2 is true under a given interpretation
if and only if term1 and term2 refer to the same
object
• E.g., definition of Sibling in terms of Parent:
x,y Sibling(x,y)  [(x = y)  m,f  (m = f) 
Parent(m,x)  Parent(f,x)  Parent(m,y)  Parent(f,y)]
Using FOL
The kinship domain:
• Brothers are siblings
x,y Brother(x,y)  Sibling(x,y)
• One's mother is one's female parent
m,c Mother(c) = m  (Female(m)  Parent(m,c))
• “Sibling” is symmetric
x,y Sibling(x,y)  Sibling(y,x)
Interacting with FOL KBs
Substituting Values of Variables:
• Given a sentence S and a substitution σ,
• Sσ denotes the result of plugging σ into S; e.g.,
– S = Smarter(x,y)
– σ = {x/Hillary,y/Bill}
– Sσ = Smarter(Hillary,Bill)
GOLDEN PEARL 4
• LOG TAREEF K BHOOKY HOTY HAIN.
KHUSH AMAD SE BACHTY HOY LOGON
KI DIL KHOL K TAREEF KAREN.
• JO IS ASOOL PE AMAL KARY GA
DUNIYA US K SATH HO GE JO SATH
NAHI DY SKTA USY TANHA CHOR DIA
JAY GA.

More Related Content

Similar to Knowledge Representation in AI: Logical Formulations and Applications

Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logicparsa rafiq
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
First Order Logic
First Order LogicFirst Order Logic
First Order LogicMianMubeen3
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptNobitaNobi489694
 
knowledge representation.pptx
knowledge representation.pptxknowledge representation.pptx
knowledge representation.pptxSwatiHans10
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAsst.prof M.Gokilavani
 
GDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSCSSN
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)surbhi jha
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)Nitesh Singh
 
Constructive Description Logics 2006
Constructive Description Logics 2006Constructive Description Logics 2006
Constructive Description Logics 2006Valeria de Paiva
 
Jarrar: ORM in Description Logic
Jarrar: ORM in Description Logic  Jarrar: ORM in Description Logic
Jarrar: ORM in Description Logic Mustafa Jarrar
 
DATA641 Lecture 3 - Word meaning.pptx
DATA641 Lecture 3 - Word meaning.pptxDATA641 Lecture 3 - Word meaning.pptx
DATA641 Lecture 3 - Word meaning.pptxDrPraveenPawar
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfARMANVERMA7
 
Frstorder 9 sldes read
Frstorder 9 sldes readFrstorder 9 sldes read
Frstorder 9 sldes readYasir Khan
 
Theory of first order logic
Theory of first order logicTheory of first order logic
Theory of first order logicDevaddd
 

Similar to Knowledge Representation in AI: Logical Formulations and Applications (20)

IKL survey
IKL surveyIKL survey
IKL survey
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logic
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
01bkb04p.ppt
01bkb04p.ppt01bkb04p.ppt
01bkb04p.ppt
 
First Order Logic
First Order LogicFirst Order Logic
First Order Logic
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
 
knowledge representation.pptx
knowledge representation.pptxknowledge representation.pptx
knowledge representation.pptx
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
 
GDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision Making
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
 
Knowledge Extraction
Knowledge ExtractionKnowledge Extraction
Knowledge Extraction
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
AI_Session 21 First order logic.pptx
AI_Session 21 First order logic.pptxAI_Session 21 First order logic.pptx
AI_Session 21 First order logic.pptx
 
Constructive Description Logics 2006
Constructive Description Logics 2006Constructive Description Logics 2006
Constructive Description Logics 2006
 
Jarrar: ORM in Description Logic
Jarrar: ORM in Description Logic  Jarrar: ORM in Description Logic
Jarrar: ORM in Description Logic
 
DATA641 Lecture 3 - Word meaning.pptx
DATA641 Lecture 3 - Word meaning.pptxDATA641 Lecture 3 - Word meaning.pptx
DATA641 Lecture 3 - Word meaning.pptx
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdf
 
Frstorder 9 sldes read
Frstorder 9 sldes readFrstorder 9 sldes read
Frstorder 9 sldes read
 
Theory of first order logic
Theory of first order logicTheory of first order logic
Theory of first order logic
 
BT02.pptx
BT02.pptxBT02.pptx
BT02.pptx
 

More from ZainabShahzad9

Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdfMicrosoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdfZainabShahzad9
 
Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)ZainabShahzad9
 
111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docx111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docxZainabShahzad9
 
Project Presentation.pptx
Project Presentation.pptxProject Presentation.pptx
Project Presentation.pptxZainabShahzad9
 

More from ZainabShahzad9 (10)

Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdfMicrosoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
 
Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)
 
Lec-1.pdf
Lec-1.pdfLec-1.pdf
Lec-1.pdf
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
Presentation2-2.pptx
Presentation2-2.pptxPresentation2-2.pptx
Presentation2-2.pptx
 
Lesson 20.ppt
Lesson 20.pptLesson 20.ppt
Lesson 20.ppt
 
OS 7.pptx
OS 7.pptxOS 7.pptx
OS 7.pptx
 
OS 6.pptx
OS 6.pptxOS 6.pptx
OS 6.pptx
 
111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docx111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docx
 
Project Presentation.pptx
Project Presentation.pptxProject Presentation.pptx
Project Presentation.pptx
 

Recently uploaded

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 

Recently uploaded (20)

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 

Knowledge Representation in AI: Logical Formulations and Applications

  • 2. Knowledge Representation • An artificial intelligence system is capable of not only storing and manipulating data, but also of acquiring, representing, and manipulating knowledge.
  • 3. Knowledge Representation In automated AI systems, key issues: • Knowledge acquisition: The transformation of potential problem- solving expertise from some knowledge source to a program. • Knowledge representation: As a set of sentences of first order logic symbolic encoding of propositions
  • 4. • Knowledge reasoning: Deducing logical consequences manipulation of symbols encoding propositions to produce representations of new propositions.
  • 5. Knowledge Representation • Knowledge representation concerns the mismatch between human and computer 'memory’. • We call these representations knowledge bases, and the operations on these knowledge bases, inference engine
  • 6. What to Represent? • Facts: truths about the real world and what we represent. • Representation of the facts: Which we manipulate. We define the representation in terms of symbols that can be manipulated by programs.
  • 7. Knowledge Representation Four major representation types • Logical Representations(First order logic) • Semantic Networks • Production Rules • Frames
  • 8. Outline • Why FOL? • Syntax and semantics of FOL
  • 9. First-order logic • Whereas propositional logic assumes the world contains facts, • first-order logic (like natural language) assumes the world contains – Objects: people, houses, numbers, colors, baseball games, wars, … – Relations: has brother of, bigger than,… – Functions: has father, plus, angle in cosine …
  • 10. Example • “One plus two equals three” – Objects: One, Two, Three – Relation: equals – Function: plus • “Evil King John ruled England in 1200” – Objects: John, England, 1200 – Relation: ruled – Properties: evil, King
  • 11. First-order logic • In proposition logic every expression is a sentence which represent a fact • FOL also has sentences, but it also has • Terms which represents objects
  • 12. Syntax of FOL: Basic elements • Constants KingJohn, A, B, 2... – An interpretation must specify which object in the world is referred to by each constant. – Each constant symbol names exactly one object – But not all the objects need to have names – Some have several names. For example, the symbol john in one particular interpretation might refers to evil King John, King of England from 1199 to 1216 and younger brother of Richard the Lionheart.
  • 13. Syntax of FOL: Basic elements • Predicates Brother, >,... – An interpretation specifies that a predicate symbol refers to a particular relation in the model – For example, the Brother symbol might refer to the relation of brotherhood – In a given model, the relation is defined by the set of tuples of objects that satisfy it – For example, in the model containing two objects John and Richard, relation of brotherhood is defined by set of tuples {(John, Richard), (Richard, John)}
  • 14. Syntax of FOL: Basic elements • Functions Sqrt, LeftLegOf,... – Functional relation are those in which any given object is related to one other object by the relation – For example, angle has only one number that is its cosine or any person has only one person that is his or her father – Unlike predicate symbols which are used to state that relations hold among certain objects, functional symbols are used to refer to particular objects without using their names • Variables x, y, a, b,... • Connectives , , , ,  • Equality = • Quantifiers , 
  • 15. Syntax of FOL •  Nor •  implies •  and •  or •  if and only if
  • 16. Universal and Existential • Universal quantification – (x)P(x) means that P holds for all values of x in the domain associated with that variable – E.g., (x) dolphin(x) # mammal(x) • Existential quantification – (x)P(x) means that P holds for some value of x in the domain associated with that variable – E.g., ( x) mammal(x) ! lays-eggs(x) – Permits one to make a statement about some object without naming it/
  • 17. FOL • It is raining. RAINING • It is sunny. SUNNY • It is windy. WINDY • If it is raining, then it is not sunny. RAINING   SUNNY
  • 18.
  • 21. Atomic sentences Atomic sentence = predicate (term1,...,termn) or term1 = term2 Term = function (term1,...,termn) or constant or variable • E.g., Brother(KingJohn,RichardTheLionheart) • > (Length(LeftLegOf(Richard)), Length(LeftLegOf(KingJohn)))
  • 22. Complex sentences • Complex sentences are made from atomic sentences using connectives • S, S1  S2, S1  S2, S1  S2, S1  S2, E.g. Sibling(KingJohn,Richard)  Sibling(Richard,KingJohn) >(2,1)  ≤ (1,2) >(2,1)   >(1,2)
  • 23. Truth in first-order logic • Sentences are true with respect to a model and an interpretation • Model contains objects (domain elements) and relations among them • • Interpretation specifies referents for constant symbols → objects predicate symbols → relations function symbols → functional relations • An atomic sentence predicate(term1,...,termn) is true iff the objects referred to by term1,...,termn are in the relation referred to by predicate
  • 24. Models for FOL: Example
  • 25. Truth table of Implication
  • 26. Universal quantification <variables> <sentence> Everyone at NUS is smart: x At(x,NUS)  Smart(x) x P is true in a model m iff P is true with x being each possible object in the model Roughly speaking, equivalent to the conjunction of instantiations of P At(KingJohn,NUS)  Smart(KingJohn)  At(Richard,NUS)  Smart(Richard)  At(NUS,NUS)  Smart(NUS)  ...
  • 27. A common mistake to avoid • Typically,  is the main connective with  • Common mistake: using  as the main connective with : x At(x,NUS)  Smart(x) means “Everyone is at NUS and everyone is smart”
  • 28. Existential quantification • <variables> <sentence> • Someone at NUS is smart: • x At(x,NUS)  Smart(x) • x P is true in a model m iff P is true with x being some possible object in the model • Roughly speaking, equivalent to the disjunction of instantiations of P At(KingJohn,NUS)  Smart(KingJohn)  At(Richard,NUS)  Smart(Richard)  At(NUS,NUS)  Smart(NUS)  ...
  • 29. Another common mistake to avoid • Typically,  is the main connective with  • Common mistake: using  as the main connective with : x At(x,NUS)  Smart(x) is true if there is anyone who is not at NUS!
  • 30. Equality • term1 = term2 is true under a given interpretation if and only if term1 and term2 refer to the same object • E.g., definition of Sibling in terms of Parent: x,y Sibling(x,y)  [(x = y)  m,f  (m = f)  Parent(m,x)  Parent(f,x)  Parent(m,y)  Parent(f,y)]
  • 31. Using FOL The kinship domain: • Brothers are siblings x,y Brother(x,y)  Sibling(x,y) • One's mother is one's female parent m,c Mother(c) = m  (Female(m)  Parent(m,c)) • “Sibling” is symmetric x,y Sibling(x,y)  Sibling(y,x)
  • 32. Interacting with FOL KBs Substituting Values of Variables: • Given a sentence S and a substitution σ, • Sσ denotes the result of plugging σ into S; e.g., – S = Smarter(x,y) – σ = {x/Hillary,y/Bill} – Sσ = Smarter(Hillary,Bill)
  • 33. GOLDEN PEARL 4 • LOG TAREEF K BHOOKY HOTY HAIN. KHUSH AMAD SE BACHTY HOY LOGON KI DIL KHOL K TAREEF KAREN. • JO IS ASOOL PE AMAL KARY GA DUNIYA US K SATH HO GE JO SATH NAHI DY SKTA USY TANHA CHOR DIA JAY GA.