SlideShare a Scribd company logo
Knowledge-Based Systems
Chapter 17.
Page 2===
Outline
 Confronting the Real World
 Reasoning Using Horn Clauses
 Maintenance in Dynamic Knowledge Bases
 Rule-Based Expert Systems
 Rule Learning
Page 3===
17.1 Confronting the Real World
 Knowledge-based systems
–Programs that reason over extensive knowledge bases.
–Do the methods scale up sufficiently well for practical
applications?
 Three major theoretical problems of logical
reasoning systems
–Soundness
• To be confident that an inferred conclusion is true
–Completeness
• To be confident that inference will eventually produce any true
conclusion
–Tractability
• To be confident that inference is feasible
Page 4===
17.1 Confronting the Real World
Predicate calculus
–Resolution refutation is sound and complete, but
semi-decidable.
• Semi-decidablility makes the predicate calculus inherently
intractable.
• Even on problems for which resolution refutation
terminates, the procedure is NP-hard.
• This fact has led many to despair of using formal, logical
methods for large-scale reasoning problems.
Page 5===
17.1 Confronting the Real World
To make reasoning more efficient
–We could use procedures that might occasionally
prove an untrue formula.
–We could use procedures that might not be
guaranteed to find proofs of true formulas.
–We could use a language that is less expressive
than the full predicate calculus.
• Reasoning is typically more efficient with Horn clauses.
Page 6===
17.2 Reasoning Using Horn Clauses
 Horn Clauses
–Clauses that have at most one positive literal.
–Rule:
• There is at least one negative literal and a single positive
literal.
• The literal h is called the head of the clause.
• The ordered list of literals, b1 ,„, bn, is called body.
–Fact:
• There may be no negative literals in the clause.
–Goal:
• There may be no positive literal in the clause.
–Horn clauses form the basis of the programming language
PROLOG.
nbbh  ,...,: 1

:h
nbb  ,...,: 1

Page 7===
Inference over PROLOG Clauses (1/2)
 Resolution Operation
–A goal can resolve with a fact by unifying the fact with one
of the literals in the goal.
• The resolvent is a new goal consisting of a list of all of the
substitution instances of the other literals in the original
goal.
–A goal can resolve with a rule by unifying the head of the
rule with one of the literals in the goal.
• The resolvent is a new goal formed by appending the list of
substitution instances of all of the literals in the body of the
rule to the front of the list of substitution instances of all of
the other (nonresolved-upon) literals in the goal.
Page 8===
Inference over PROLOG Clauses (2/2)
PROLOG programs
–The clauses are usually ordered in the following
way:
goal,
facts,
rules.
–Proof of a goal clause succeeds when the new goal
produced by a resolution is empty.
–Depth-first, backtracking search procedure
• A goal clause fails if the interpreter has tried all
resolutions for one of the goal literals and none results
in new goals that can be proved.
• The interpreter backtracks to the previous goal clause and
Page 9===
Example of an AND/OR Tree (1)
1. :- MOVES
2. BAT_OK :-
3. LIFTABLE :-
4. MOVES :- BAT_OK, LIFTABLE
–Body nodes are called AND
nodes because they must all
be proved.
–If there had been
alternative resolutions
possible, the search for a
proof tree could have
generated additional nodes,
called OR nodes.
Page 10===
Example of an AND/OR Tree (2)
1. :- Above(A,C)
2. On(A,B) :-
3. On(B,C) :-
4. Above(x,y) :- On(x,y)
5. Above(x,y) :- On(x,z), Above(z,y)
–Consistency requires
that the same term be
substituted for the
variable throughout the
proof tree.
Page 11===
Forward Chaining
Forward chaining system (e.g., OPS5)
–Reasoning proceeds forward, beginning with facts,
chaining through rules, and finally establishing
the goal.
• A rule is applicable if each of the literals in its
antecedent can be unified with a corresponding fact.
• When more than one rule is applicable, some sort of
external conflict resolution scheme is used to decide which
rule will be applied.
–Model of aspects of human cognitive processing
• Facts: working of short-term memory
• Rules: long-term memory
Page 12===
Maintenance in Dynamic Knowledge Bases
Knowledge base of propositional calculus
atoms
–The atoms are called premisses instead of facts.
–The rules are not restricted to being Horn rules.
–A spreadline reasoning system
• Any cell that has a formula in it gets its value
immediately calculated from the values of components.
• If the values of any components of a formula happen to
change, the value of that formula is automatically changed.
Page 13===
Maintenance in Dynamic Knowledge Bases
Truth maintenance systems (TMSs)
–Dynamic knowledge base: the spreadline is extended
to contain any number of premisses and rules.
• The formulas entered in the values of rule cells are called
justifications.
–The values of certain premiss cells can be omitted.
• When a cell has a value of 1 or 0, it is called IN;
otherwise, out.
• Allowing values of cells to be OUT permits an interesting
generalization of rule types (e.g, U if R is True and S is
Out).
Page 14===
–TMSs should be thought of as knowledge base maintenance systems
that perform automatic updates when the truth values of certain
atoms are changed.
• The use of IN’s and OUT’s permits an elementary sort of
“nonmonotonic” or defeasible inference not sanctioned by ordinary
reasoning systems.
–Cycles among the rules present some difficulties.
• One is mutual justification.
Maintenance in Dynamic Knowledge Bases
Page 15===
Maintenance in Dynamic Knowledge Bases
 Assumption-based truth maintenance systems (ATMSs)
–The spreadline is used in a backward direction.
–We start with a particular cell’s formula and ask which
premiss values will make the formula in that cell True.
• Other formulas called the background theory are considered together.
–Labels of the cells
• The values of the cells are taken to be formulas-expressed in DNF
form in terms of the premiss atoms.
–ATMSs can be used for a variety of purposes.
• One is to perform diagnosis.
Page 16===
Maintenance in Dynamic Knowledge Bases
–Conversion of a TMS to an ATMS

More Related Content

What's hot

Reasoning in AI
Reasoning in AIReasoning in AI
Reasoning in AI
Gunjan Chhabra
 
Unit 2(knowledge)
Unit 2(knowledge)Unit 2(knowledge)
Unit 2(knowledge)
Ashish Nayak
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
DataminingTools Inc
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
The Integral Worm
 
Basics of Machine Learning
Basics of Machine LearningBasics of Machine Learning
Basics of Machine Learningbutest
 
Chapter 5 (final)
Chapter 5 (final)Chapter 5 (final)
Chapter 5 (final)
Nateshwar Kamlesh
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial Intelligence
Experfy
 
Machine Learning Applications in NLP.ppt
Machine Learning Applications in NLP.pptMachine Learning Applications in NLP.ppt
Machine Learning Applications in NLP.pptbutest
 
Chaptr 7 (final)
Chaptr 7 (final)Chaptr 7 (final)
Chaptr 7 (final)
Nateshwar Kamlesh
 
Truth management system
Truth  management systemTruth  management system
Truth management system
Mohammad Kamrul Hasan
 
Dealing with inconsistency
Dealing with inconsistencyDealing with inconsistency
Dealing with inconsistency
Rajat Sharma
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
Ramla Sheikh
 
Introduction to Machine Learning.
Introduction to Machine Learning.Introduction to Machine Learning.
Introduction to Machine Learning.butest
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401butest
 
Chapter 5 of 1
Chapter 5 of 1Chapter 5 of 1
Chapter 5 of 1
Melaku Bayih Demessie
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.pptbutest
 
Learning in AI
Learning in AILearning in AI
Learning in AI
Minakshi Atre
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.pptbutest
 

What's hot (20)

Reasoning in AI
Reasoning in AIReasoning in AI
Reasoning in AI
 
Unit 2(knowledge)
Unit 2(knowledge)Unit 2(knowledge)
Unit 2(knowledge)
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
 
Basics of Machine Learning
Basics of Machine LearningBasics of Machine Learning
Basics of Machine Learning
 
Chapter 5 (final)
Chapter 5 (final)Chapter 5 (final)
Chapter 5 (final)
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial Intelligence
 
Machine Learning Applications in NLP.ppt
Machine Learning Applications in NLP.pptMachine Learning Applications in NLP.ppt
Machine Learning Applications in NLP.ppt
 
Chaptr 7 (final)
Chaptr 7 (final)Chaptr 7 (final)
Chaptr 7 (final)
 
Truth management system
Truth  management systemTruth  management system
Truth management system
 
Dealing with inconsistency
Dealing with inconsistencyDealing with inconsistency
Dealing with inconsistency
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Introduction to Machine Learning.
Introduction to Machine Learning.Introduction to Machine Learning.
Introduction to Machine Learning.
 
Learning
LearningLearning
Learning
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401
 
Chapter 5 of 1
Chapter 5 of 1Chapter 5 of 1
Chapter 5 of 1
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
 
Lesson 19
Lesson 19Lesson 19
Lesson 19
 
Learning in AI
Learning in AILearning in AI
Learning in AI
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.ppt
 

Viewers also liked

Knowledge based systems
Knowledge based systemsKnowledge based systems
Knowledge based systems
Yowan Rdotexe
 
Knowledge-based Systems
Knowledge-based SystemsKnowledge-based Systems
Knowledge-based Systems
saimohang
 
KBS Lecture Notes
KBS Lecture NotesKBS Lecture Notes
KBS Lecture Notesbutest
 
Developing Knowledge-Based Systems
Developing Knowledge-Based SystemsDeveloping Knowledge-Based Systems
Developing Knowledge-Based Systems
Ashique Rasool
 
Knowledge based systems -- introduction
Knowledge based systems -- introductionKnowledge based systems -- introduction
Knowledge based systems -- introductionjkmaster
 
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Priti Srinivas Sajja
 
Decision Support and Knowledge Based Systems
Decision Support and Knowledge Based SystemsDecision Support and Knowledge Based Systems
Decision Support and Knowledge Based SystemsJivan Nepali
 
Chapter 4 - Knowledge Management
Chapter 4 - Knowledge ManagementChapter 4 - Knowledge Management
Chapter 4 - Knowledge Management
Ashique Rasool
 
Predicate calculus
Predicate calculusPredicate calculus
Predicate calculus
Rajendran
 
KNOWLEDGE BASE SYSTEMS
KNOWLEDGE  BASE SYSTEMSKNOWLEDGE  BASE SYSTEMS
KNOWLEDGE BASE SYSTEMS
Vikas Jagtap
 
Lecture 12 Heuristic Searches
Lecture 12 Heuristic SearchesLecture 12 Heuristic Searches
Lecture 12 Heuristic Searches
Hema Kashyap
 
Ch 8 Power Point
Ch 8 Power PointCh 8 Power Point
Ch 8 Power Point
Marina
 
artificial intelligence
artificial intelligenceartificial intelligence
artificial intelligence
R A Akerkar
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
Muhammad Ahad
 
Role of ict in project management by annrose mwangi
Role of ict in project management by annrose mwangiRole of ict in project management by annrose mwangi
Role of ict in project management by annrose mwangi
annrose mwangi
 
Knowledgemanagementpresentation 124215857849-phpapp02
Knowledgemanagementpresentation 124215857849-phpapp02Knowledgemanagementpresentation 124215857849-phpapp02
Knowledgemanagementpresentation 124215857849-phpapp02
Zinia Khan
 

Viewers also liked (20)

Knowledge based systems
Knowledge based systemsKnowledge based systems
Knowledge based systems
 
Knowledge-based Systems
Knowledge-based SystemsKnowledge-based Systems
Knowledge-based Systems
 
KBS Lecture Notes
KBS Lecture NotesKBS Lecture Notes
KBS Lecture Notes
 
Developing Knowledge-Based Systems
Developing Knowledge-Based SystemsDeveloping Knowledge-Based Systems
Developing Knowledge-Based Systems
 
Knowledge based systems -- introduction
Knowledge based systems -- introductionKnowledge based systems -- introduction
Knowledge based systems -- introduction
 
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
 
Decision Support and Knowledge Based Systems
Decision Support and Knowledge Based SystemsDecision Support and Knowledge Based Systems
Decision Support and Knowledge Based Systems
 
Chapter 4 - Knowledge Management
Chapter 4 - Knowledge ManagementChapter 4 - Knowledge Management
Chapter 4 - Knowledge Management
 
15 predicate
15 predicate15 predicate
15 predicate
 
Ai 02
Ai 02Ai 02
Ai 02
 
Predicate calculus
Predicate calculusPredicate calculus
Predicate calculus
 
KNOWLEDGE BASE SYSTEMS
KNOWLEDGE  BASE SYSTEMSKNOWLEDGE  BASE SYSTEMS
KNOWLEDGE BASE SYSTEMS
 
Lecture 12 Heuristic Searches
Lecture 12 Heuristic SearchesLecture 12 Heuristic Searches
Lecture 12 Heuristic Searches
 
Ch 8 Power Point
Ch 8 Power PointCh 8 Power Point
Ch 8 Power Point
 
artificial intelligence
artificial intelligenceartificial intelligence
artificial intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Role of ict in project management by annrose mwangi
Role of ict in project management by annrose mwangiRole of ict in project management by annrose mwangi
Role of ict in project management by annrose mwangi
 
Problem space
Problem spaceProblem space
Problem space
 
Chapter04
Chapter04Chapter04
Chapter04
 
Knowledgemanagementpresentation 124215857849-phpapp02
Knowledgemanagementpresentation 124215857849-phpapp02Knowledgemanagementpresentation 124215857849-phpapp02
Knowledgemanagementpresentation 124215857849-phpapp02
 

Similar to 17 1 knowledge-based system

10 logic+programming+with+prolog
10 logic+programming+with+prolog10 logic+programming+with+prolog
10 logic+programming+with+prolog
baran19901990
 
Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
Sagacious IT Solution
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
Tianlu Wang
 
07 rules-and-cases
07 rules-and-cases07 rules-and-cases
07 rules-and-cases
Ahmad sohail Kakar
 
AI IMPORTANT QUESTION
AI IMPORTANT QUESTIONAI IMPORTANT QUESTION
AI IMPORTANT QUESTION
FAREED UR RAHMAN .
 
Artificial Intelligence data related to ai
Artificial Intelligence data related to aiArtificial Intelligence data related to ai
Artificial Intelligence data related to ai
chougulesup79
 
Why sat solvers have become so efficient in the last 10 15 years?
Why sat solvers have become so efficient in the last 10 15 years?Why sat solvers have become so efficient in the last 10 15 years?
Why sat solvers have become so efficient in the last 10 15 years?Riyad Parvez
 
Assignment oprations research luv
Assignment oprations research luvAssignment oprations research luv
Assignment oprations research luvAshok Sharma
 
Target-Based Sentiment Anaysis as a Sequence-Tagging Task
Target-Based Sentiment Anaysis as a Sequence-Tagging TaskTarget-Based Sentiment Anaysis as a Sequence-Tagging Task
Target-Based Sentiment Anaysis as a Sequence-Tagging Task
jcscholtes
 
artficial intelligence
artficial intelligenceartficial intelligence
artficial intelligence
Phanindra Mortha
 
PPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptx
RaviKiranVarma4
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
Harini Balamurugan
 
Useing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with TensorflowUseing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with Tensorflow
Yi-Fan Liou
 
lec06_Classification_NaiveBayes_RuleBased.pptx
lec06_Classification_NaiveBayes_RuleBased.pptxlec06_Classification_NaiveBayes_RuleBased.pptx
lec06_Classification_NaiveBayes_RuleBased.pptx
Mmine1
 
CI_GA_module2_ABC_updatedG.ppt .
CI_GA_module2_ABC_updatedG.ppt           .CI_GA_module2_ABC_updatedG.ppt           .
CI_GA_module2_ABC_updatedG.ppt .
Athar739197
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Mahesh Tibrewal
 
B.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastB.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blast
Rai University
 
B.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastB.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastRai University
 

Similar to 17 1 knowledge-based system (20)

10 logic+programming+with+prolog
10 logic+programming+with+prolog10 logic+programming+with+prolog
10 logic+programming+with+prolog
 
Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
07 rules-and-cases
07 rules-and-cases07 rules-and-cases
07 rules-and-cases
 
AI IMPORTANT QUESTION
AI IMPORTANT QUESTIONAI IMPORTANT QUESTION
AI IMPORTANT QUESTION
 
Artificial Intelligence data related to ai
Artificial Intelligence data related to aiArtificial Intelligence data related to ai
Artificial Intelligence data related to ai
 
Why sat solvers have become so efficient in the last 10 15 years?
Why sat solvers have become so efficient in the last 10 15 years?Why sat solvers have become so efficient in the last 10 15 years?
Why sat solvers have become so efficient in the last 10 15 years?
 
Assignment oprations research luv
Assignment oprations research luvAssignment oprations research luv
Assignment oprations research luv
 
Target-Based Sentiment Anaysis as a Sequence-Tagging Task
Target-Based Sentiment Anaysis as a Sequence-Tagging TaskTarget-Based Sentiment Anaysis as a Sequence-Tagging Task
Target-Based Sentiment Anaysis as a Sequence-Tagging Task
 
artficial intelligence
artficial intelligenceartficial intelligence
artficial intelligence
 
PPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-3.pptx
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
 
Useing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with TensorflowUseing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with Tensorflow
 
lec06_Classification_NaiveBayes_RuleBased.pptx
lec06_Classification_NaiveBayes_RuleBased.pptxlec06_Classification_NaiveBayes_RuleBased.pptx
lec06_Classification_NaiveBayes_RuleBased.pptx
 
CI_GA_module2_ABC_updatedG.ppt .
CI_GA_module2_ABC_updatedG.ppt           .CI_GA_module2_ABC_updatedG.ppt           .
CI_GA_module2_ABC_updatedG.ppt .
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
B.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastB.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blast
 
B.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastB.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blast
 
Bioinformatics t4-alignments v2014
Bioinformatics t4-alignments v2014Bioinformatics t4-alignments v2014
Bioinformatics t4-alignments v2014
 
G
GG
G
 

More from Tianlu Wang

14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
Tianlu Wang
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
Tianlu Wang
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
Tianlu Wang
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
Tianlu Wang
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
Tianlu Wang
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
Tianlu Wang
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
Tianlu Wang
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
Tianlu Wang
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
Tianlu Wang
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
Tianlu Wang
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
Tianlu Wang
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
Tianlu Wang
 
07 plan agent
07 plan agent07 plan agent
07 plan agent
Tianlu Wang
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
Tianlu Wang
 
05 state machine
05 state machine05 state machine
05 state machine
Tianlu Wang
 

More from Tianlu Wang (20)

L7 er2
L7 er2L7 er2
L7 er2
 
L8 design1
L8 design1L8 design1
L8 design1
 
L9 design2
L9 design2L9 design2
L9 design2
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
 
22 planning
22 planning22 planning
22 planning
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 
07 plan agent
07 plan agent07 plan agent
07 plan agent
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
 
05 state machine
05 state machine05 state machine
05 state machine
 

Recently uploaded

Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)
SuryaKalyan3
 
Sundabet | Slot gacor dan terpercaya mudah menang
Sundabet | Slot gacor dan terpercaya mudah menangSundabet | Slot gacor dan terpercaya mudah menang
Sundabet | Slot gacor dan terpercaya mudah menang
Sundabet | Situs Slot gacor dan terpercaya
 
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
taqyed
 
ART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERSART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERS
Sandhya J.Nair
 
Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)
SuryaKalyan3
 
Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)
CristianMestre
 
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
beduwt
 
ashokathegreat project class 12 presentation
ashokathegreat project class 12 presentationashokathegreat project class 12 presentation
ashokathegreat project class 12 presentation
aditiyad2020
 
一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单
zvaywau
 
Codes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new newCodes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new new
ZackSpencer3
 
一比一原版(GU毕业证)格里菲斯大学毕业证成绩单
一比一原版(GU毕业证)格里菲斯大学毕业证成绩单一比一原版(GU毕业证)格里菲斯大学毕业证成绩单
一比一原版(GU毕业证)格里菲斯大学毕业证成绩单
zvaywau
 
acting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaaacting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaa
angelicafronda7
 
2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...
luforfor
 
The Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance LindallThe Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance Lindall
BBaez1
 
The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎
The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎
The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎
iraqartsandculture
 
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives ProjectthGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives Project
Marc Dusseiller Dusjagr
 
CLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, BesCLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, Bes
aditiyad2020
 
IrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptxIrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptx
Aine Greaney Ellrott
 
Caffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire WilsonCaffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire Wilson
ClaireWilson398082
 

Recently uploaded (20)

Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)
 
Sundabet | Slot gacor dan terpercaya mudah menang
Sundabet | Slot gacor dan terpercaya mudah menangSundabet | Slot gacor dan terpercaya mudah menang
Sundabet | Slot gacor dan terpercaya mudah menang
 
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
 
ART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERSART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERS
 
Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)
 
Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)
 
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
 
ashokathegreat project class 12 presentation
ashokathegreat project class 12 presentationashokathegreat project class 12 presentation
ashokathegreat project class 12 presentation
 
一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单
 
Codes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new newCodes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new new
 
一比一原版(GU毕业证)格里菲斯大学毕业证成绩单
一比一原版(GU毕业证)格里菲斯大学毕业证成绩单一比一原版(GU毕业证)格里菲斯大学毕业证成绩单
一比一原版(GU毕业证)格里菲斯大学毕业证成绩单
 
acting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaaacting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaa
 
2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...
 
The Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance LindallThe Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance Lindall
 
The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎
The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎
The Last Polymath: Muntadher Saleh‎‎‎‎‎‎‎‎‎‎‎‎
 
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives ProjectthGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives Project
 
CLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, BesCLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, Bes
 
IrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptxIrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptx
 
European Cybersecurity Skills Framework Role Profiles.pdf
European Cybersecurity Skills Framework Role Profiles.pdfEuropean Cybersecurity Skills Framework Role Profiles.pdf
European Cybersecurity Skills Framework Role Profiles.pdf
 
Caffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire WilsonCaffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire Wilson
 

17 1 knowledge-based system

  • 2. Page 2=== Outline  Confronting the Real World  Reasoning Using Horn Clauses  Maintenance in Dynamic Knowledge Bases  Rule-Based Expert Systems  Rule Learning
  • 3. Page 3=== 17.1 Confronting the Real World  Knowledge-based systems –Programs that reason over extensive knowledge bases. –Do the methods scale up sufficiently well for practical applications?  Three major theoretical problems of logical reasoning systems –Soundness • To be confident that an inferred conclusion is true –Completeness • To be confident that inference will eventually produce any true conclusion –Tractability • To be confident that inference is feasible
  • 4. Page 4=== 17.1 Confronting the Real World Predicate calculus –Resolution refutation is sound and complete, but semi-decidable. • Semi-decidablility makes the predicate calculus inherently intractable. • Even on problems for which resolution refutation terminates, the procedure is NP-hard. • This fact has led many to despair of using formal, logical methods for large-scale reasoning problems.
  • 5. Page 5=== 17.1 Confronting the Real World To make reasoning more efficient –We could use procedures that might occasionally prove an untrue formula. –We could use procedures that might not be guaranteed to find proofs of true formulas. –We could use a language that is less expressive than the full predicate calculus. • Reasoning is typically more efficient with Horn clauses.
  • 6. Page 6=== 17.2 Reasoning Using Horn Clauses  Horn Clauses –Clauses that have at most one positive literal. –Rule: • There is at least one negative literal and a single positive literal. • The literal h is called the head of the clause. • The ordered list of literals, b1 ,„, bn, is called body. –Fact: • There may be no negative literals in the clause. –Goal: • There may be no positive literal in the clause. –Horn clauses form the basis of the programming language PROLOG. nbbh  ,...,: 1  :h nbb  ,...,: 1 
  • 7. Page 7=== Inference over PROLOG Clauses (1/2)  Resolution Operation –A goal can resolve with a fact by unifying the fact with one of the literals in the goal. • The resolvent is a new goal consisting of a list of all of the substitution instances of the other literals in the original goal. –A goal can resolve with a rule by unifying the head of the rule with one of the literals in the goal. • The resolvent is a new goal formed by appending the list of substitution instances of all of the literals in the body of the rule to the front of the list of substitution instances of all of the other (nonresolved-upon) literals in the goal.
  • 8. Page 8=== Inference over PROLOG Clauses (2/2) PROLOG programs –The clauses are usually ordered in the following way: goal, facts, rules. –Proof of a goal clause succeeds when the new goal produced by a resolution is empty. –Depth-first, backtracking search procedure • A goal clause fails if the interpreter has tried all resolutions for one of the goal literals and none results in new goals that can be proved. • The interpreter backtracks to the previous goal clause and
  • 9. Page 9=== Example of an AND/OR Tree (1) 1. :- MOVES 2. BAT_OK :- 3. LIFTABLE :- 4. MOVES :- BAT_OK, LIFTABLE –Body nodes are called AND nodes because they must all be proved. –If there had been alternative resolutions possible, the search for a proof tree could have generated additional nodes, called OR nodes.
  • 10. Page 10=== Example of an AND/OR Tree (2) 1. :- Above(A,C) 2. On(A,B) :- 3. On(B,C) :- 4. Above(x,y) :- On(x,y) 5. Above(x,y) :- On(x,z), Above(z,y) –Consistency requires that the same term be substituted for the variable throughout the proof tree.
  • 11. Page 11=== Forward Chaining Forward chaining system (e.g., OPS5) –Reasoning proceeds forward, beginning with facts, chaining through rules, and finally establishing the goal. • A rule is applicable if each of the literals in its antecedent can be unified with a corresponding fact. • When more than one rule is applicable, some sort of external conflict resolution scheme is used to decide which rule will be applied. –Model of aspects of human cognitive processing • Facts: working of short-term memory • Rules: long-term memory
  • 12. Page 12=== Maintenance in Dynamic Knowledge Bases Knowledge base of propositional calculus atoms –The atoms are called premisses instead of facts. –The rules are not restricted to being Horn rules. –A spreadline reasoning system • Any cell that has a formula in it gets its value immediately calculated from the values of components. • If the values of any components of a formula happen to change, the value of that formula is automatically changed.
  • 13. Page 13=== Maintenance in Dynamic Knowledge Bases Truth maintenance systems (TMSs) –Dynamic knowledge base: the spreadline is extended to contain any number of premisses and rules. • The formulas entered in the values of rule cells are called justifications. –The values of certain premiss cells can be omitted. • When a cell has a value of 1 or 0, it is called IN; otherwise, out. • Allowing values of cells to be OUT permits an interesting generalization of rule types (e.g, U if R is True and S is Out).
  • 14. Page 14=== –TMSs should be thought of as knowledge base maintenance systems that perform automatic updates when the truth values of certain atoms are changed. • The use of IN’s and OUT’s permits an elementary sort of “nonmonotonic” or defeasible inference not sanctioned by ordinary reasoning systems. –Cycles among the rules present some difficulties. • One is mutual justification. Maintenance in Dynamic Knowledge Bases
  • 15. Page 15=== Maintenance in Dynamic Knowledge Bases  Assumption-based truth maintenance systems (ATMSs) –The spreadline is used in a backward direction. –We start with a particular cell’s formula and ask which premiss values will make the formula in that cell True. • Other formulas called the background theory are considered together. –Labels of the cells • The values of the cells are taken to be formulas-expressed in DNF form in terms of the premiss atoms. –ATMSs can be used for a variety of purposes. • One is to perform diagnosis.
  • 16. Page 16=== Maintenance in Dynamic Knowledge Bases –Conversion of a TMS to an ATMS