SlideShare a Scribd company logo
Unit 7: Production System
Presented By : Tekendra Nath Yogi
Tekendranath@gmail.com
College Of Applied Business And Technology
Contd…
• Outline:
– 7.1 Strong Methods vs Weak Methods
– 7.2 Advantages of Production Systems
– 7.3 Production Systems and inference methods
• 7.3.1 Conflict resolution strategies
• 7.3.2 Forward chaining
• 7.3.3 Backward chaining
22/5/2019 By: Tekendra Nath Yogi
Production Systems
• The production System is a model of computation that has proved
particularly important in AI, Both for implementing search
algorithms and for modeling human problem solving.
• A production system provides pattern-directed control of a problem
solving process and consists of:
– a set of production rules,
– a working memory, and
– a recognize- act control cycle.
32/5/2019 By: Tekendra Nath Yogi
Contd…
• A schematic drawing of a production system is as shown in figure below:
Fig: A production system
• Control loops until working memory pattern no longer matches the
condition of any productions.
42/5/2019 By: Tekendra Nath Yogi
Contd…
• The set of production rules:
– These are often simply called productions. A production is a condition-
action pair and defines a single chunk of problem-solving knowledge.
• The condition part of the rule is a pattern that determines when that
rule may be applied to a problem instance.
• The action part defines the associated problem-solving step.
– E.g., If it is raining then open the umbrella.
52/5/2019 By: Tekendra Nath Yogi
Contd…
• Working memory:
– Working memory contains a description of the current state of the
world(facts/ data) in a reasoning process.
– This description is a pattern that is matched against the condition part
of a production to select appropriate problem solving actions.
– When the condition part of a rule is matched by the contents of working
memory, the action associated with that condition may then be
performed.
– The actions of production rules are specifically designed to alter the
contents of working memory.
62/5/2019 By: Tekendra Nath Yogi
Contd…
• The recognize- act cycle: The control structure for a production system is
simple:
– Working memory is initialized with the beginning problem description as a set of
patterns in working memory.
– These patterns are matched against the conditions of the production rules, this
produces a subset of the production rules, called the conflict set, whose conditions
match the patterns in working memory.
– One of the productions in the conflict set is then selected(conflict resolution) and the
production is fired.
– To fire a rule, its action is performed, changing the contents of working memory.
– After the selected production rule is fired, the control cycle repeats with the
modified working memory.
– This process terminates when the contents of working memory do not match any
rule conditions.
72/5/2019 By: Tekendra Nath Yogi
Contd…
• Example of production system execution:
– Problem: sorting a string composed of the letters a, b, and c.
– Working memory: cbaca
– Production set:
– In this example, a production is enabled if its condition matches a
portion of the string in working memory.
– When a rule is fired, the substring that matched the rule condition is
replaced by the string on the right hand side of the rule.
82/5/2019 By: Tekendra Nath Yogi
Contd…
Fig : Trace of simple production system
Fig : Trace of simple production system
92/5/2019 By: Tekendra Nath Yogi
Advantages of Production Systems for AI
• The production system offers a general framework for implementing
search.
• Because of its simplicity, modifiability, and flexibility in applying problem
solving knowledge, the production system has proved to be an important
tool for the construction of expert systems and other AI applications.
• The major advantages of production systems for artificial intelligence
include:
– Separation of knowledge and control
– A natural mapping onto state space search.
– Modularity of production rules.
– Pattern directed control.
– Opportunities for heuristic control of search
– Tracing and explanation.
– Language independence.
– A plausible model of human problem solving
102/5/2019 By: Tekendra Nath Yogi
Contd…
• Separation of knowledge and Control:
– The production system is an elegant model of separation of knowledge
and control in a computer program.
– Control is provided by the recognize-act cycle of the production system
loop, and the problem –solving knowledge is encoded in the rules
themselves.
– The advantages of this separation include ease of modifying the rule
base without requiring a change in the code for program control and ,
conversely, the ability to alter the code for program control without
changing the set of production rules.
112/5/2019 By: Tekendra Nath Yogi
Contd…
• A Natural mapping onto state space search:
– The components of a production system map naturally into the
constructs of state space search. The successive states of working
memory form the nodes of a state space graph.
– The production rules are the set of possible transitions between states,
with conflict resolution implementing the selection of a branch in the
state space. These rules simplify the implementation, debugging, and
documentation of search algorithms
122/5/2019 By: Tekendra Nath Yogi
Contd…
• Modularity of production rules:
– An important aspect of the production system model is the lack of any
syntactic interactions between production rules. Rules may only effect
the firing of other rules by changing the pattern in working memory.
– This syntactic independence supports the incremental development of
expert systems by successively adding, deleting, or changing the
knowledge (rules) of the system.
132/5/2019 By: Tekendra Nath Yogi
Contd…
• Pattern directed control:
– The problems addressed by AI programs require particular flexibility in
program execution.
– This goal is served by the fact that the rules in a production system may
fire in any sequence.
– The descriptions of a problem that make up the current state of the
world determine the conflict set and, consequently, the particular search
path and solution.
142/5/2019 By: Tekendra Nath Yogi
Contd…
• Tracing and Explanation:
– The modularity of rules and the iterative nature of their execution make
it easier to trace execution of a production system.
– Because each rule corresponds to a single chunk of problem-solving
knowledge, the rule content should provide a meaningful explanation
of the system’s current state and action
152/5/2019 By: Tekendra Nath Yogi
Contd…
• Language Independence:
– The production system control model is independent of the
representation chosen for rules and working memory, as long as that
representation supports pattern matching.
162/5/2019 By: Tekendra Nath Yogi
Contd…
• A Plausible Model of human problem solving:
– Modeling human problem solving was among the first uses of
production systems.
– E.g.,
• IF the ‘traffic light’ is green
• THEN the action is go
• IF the ‘traffic light’ is red
• THEN the action is stop
172/5/2019 By: Tekendra Nath Yogi
Disadvantages of Production Systems
• There are three main shortcomings:
• Opaque relations between rules.
• Ineffective search strategy.
• Inability to learn.
182/5/2019 By: Tekendra Nath Yogi
Contd…
• Opaque relations between rules:
– Although the individual production rules tend to be relatively simple
and self-documented, their logical interactions within the large set of
rules may be opaque.
– productions systems make it difficult to observe how individual rules
serve the overall strategy.
192/5/2019 By: Tekendra Nath Yogi
Contd…
• Ineffective search strategy:
– The rule interpreter applies an exhaustive search through all the
production rules during each cycle.
– Production systems with a large set of rules (over 100 rules) can be
slow, and thus large rule-based systems can be unsuitable for real-time
applications.
202/5/2019 By: Tekendra Nath Yogi
Contd…
• Inability to learn:
– In general, rule-based systems do not have an ability to learn from the
experience.
– Unlike a human, who knows when to ‘break the rules’, a production
system cannot automatically modify its knowledge base, or adjust
existing rules or add new ones.
– The knowledge engineer is still responsible for revising and
maintaining the system.
212/5/2019 By: Tekendra Nath Yogi
Conflict Resolution
• The set of rules that have their conditions satisfied by working memory
elements forms a conflict set.
• A conflict is said to occur if more than one rules are found to fire in one
cycle.
• In such a scenario, the control structure must determine which rule to fire
from this conflict set of active rules.
• This process of selection is called as conflict resolution so, conflict
resolution normally selects a single rule to fire.
• There are three conflict resolution mechanism:
– Refraction
– Recency and
– specificity
222/5/2019 By: Tekendra Nath Yogi
Contd…
• Refraction:
– Refraction specifies that once a rule has fired, it may not fire again until
the working memory elements that match its conditions have been
modified.
– This discourage looping.
232/5/2019 By: Tekendra Nath Yogi
Contd…
• Recency:
– The recency strategy prefers rules whose conditions match with the
patterns most recently added to working memory.
– This focuses the search on a single line of reasoning.
242/5/2019 By: Tekendra Nath Yogi
Contd…
• Specificity:
– This strategy assumes that a more specific problem-solving rule is
preferable to a general rule.
– A rule is more specific than another if it has more conditions,
– This implies that it will match fewer potential working memory
patterns.
252/5/2019 By: Tekendra Nath Yogi
Production Systems and inference systems
• In a production system, the domain knowledge is represented by a set of
IF-THEN production rules and data is represented by a set of facts about
the current situation.
• The rule interpreter compares each rule stored in the rule base with facts
contained in the working memory.
• When the IF (condition) part of the rule matches a fact, the rule is fired and
its THEN (action) part is executed.
• The fired rule may change the set of facts in the working memory by
adding a new fact.
• The matching of the rule’s IF parts to the facts produces inference chains.
The inference chain indicates how a production system applies the rules to
reach a conclusion.
262/5/2019 By: Tekendra Nath Yogi
Contd…
• There are two principal ways in which rules are executed.
– Forward chaining: Forward chaining starts from the start state(Known
facts or data) and proceeds towards the goal state (conclusion) and
– Backward chaining: On the other hand backward chaining starts from
the goal state and proceeds towards start state.
272/5/2019 By: Tekendra Nath Yogi
Contd…
• Forward chaining:
– Sometimes called the data driven approach.
– Working from the facts(data) to conclusion(goal).
– To chain forward, match data in working memory against 'conditions' of rules
in the rule-base. When one of them fires, this is liable to produce more data.
So the cycle continues.
– Forward chaining is the best choice if:
• All the facts are provided with the problem statement; or:
• There are many possible goals, and a smaller number of patterns of data;
or There isn't any sensible way to guess what the goal is at the beginning
of the consultation.
282/5/2019 By: Tekendra Nath Yogi
Contd…
• Forward Chaining example:
– Initial content of working memory(Known fact) is Start
– Production Rule set:
– Problem : Prove If p and q true Then goal is true
i.e., prove
292/5/2019 By: Tekendra Nath Yogi
Contd…
• The following table shows the sequence of rules firing and the stages of
working memory in the execution . Execution halts when a goal is reached.
A Trace of execution is shown in the following table:
• Conflict resolution strategy used here is: choose rule that has fired least
recently( or not at all.
302/5/2019 By: Tekendra Nath Yogi
Contd…
312/5/2019 By: Tekendra Nath Yogi
Contd…
• Backward chaining:
– It is also known as goal driven search. A goal driven search begins with a
goal and works backward to establish its truth.
– To implement this in a production system, the goal is placed in working
memory and matched against the ACTIONS of the production rules. These
ACTIONS are matched just as the CONDTIONs of the productions were
matched in the data- driven reasoning.
– When the ACTION of a rule is matched, the CONDTIONs are added to
working memory and become the new sub-goals of the search.
– The new sub-goals are then matched to the ACTIONs of other production
rules. This process continues until a fact given in the problem’s initial
description is found.
– The search stops when the CONDITONs of all the productions fired in this
backward fashion are found to be true.
– These CONDITIONs and the chain of rule firings leading to the original
goal form a proof of its truth through successive inferences.
322/5/2019 By: Tekendra Nath Yogi
Contd…
• Backward chaining Example:
– Initial content of working memory is goal
– initially given fact is start
– Production Rule set:
– Problem : Prove If p and q true Then goal is true
i.e., prove
332/5/2019 By: Tekendra Nath Yogi
Contd…
342/5/2019 By: Tekendra Nath Yogi
Contd…
352/5/2019 By: Tekendra Nath Yogi
Contd…
• Backward chaining is the best choice if:
– The goal is given in the problem statement, or can sensibly be guessed at
the beginning of the consultation; or
– The system has been built so that it sometimes asks for pieces of data rather
than expecting all the facts to be presented to it.
– e.g. "please now do the gram test on the patient's blood, and tell me the
result“.
– This is because (especially in the medical domain) the test may be
expensive, or unpleasant, or dangerous for the human participant so one
would want to avoid doing such a test unless there was a good reason for it.
• If it is important that the system should seem to behave like a human
expert, backward chaining is the best choice.
36Presented By: Tekendra Nath Yogi
Homework
• What is AI? Differentiate between strong AI and Weak AI.
• What is weak methods and strong methods? Differentiate between weak
methods and weak methods.
• What is productions and production systems? Explain different advantages
and disadvantages of production systems.
• What is production system? Explain its different architectural components.
• Why conflict resolution is required in production systems? Explain
different conflict resolution strategy used in the production systems.
• How inferencing is done in production system? Differentiate between
forward chaining and backward chaining.
2/5/2019 By: Tekendra Nath Yogi 37
Thank You !
38By: Tekendra Nath Yogi2/5/2019

More Related Content

What's hot

Unit 2 ai
Unit 2 aiUnit 2 ai
Unit 2 ai
Jeevan Chapagain
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Lecture 06 production system
Lecture 06 production systemLecture 06 production system
Lecture 06 production system
Hema Kashyap
 
Rule based system
Rule based systemRule based system
Rule based system
Dr. C.V. Suresh Babu
 
ProLog (Artificial Intelligence) Introduction
ProLog (Artificial Intelligence) IntroductionProLog (Artificial Intelligence) Introduction
ProLog (Artificial Intelligence) Introduction
wahab khan
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
Dattatray Gandhmal
 
Planning in Artificial Intelligence
Planning in Artificial IntelligencePlanning in Artificial Intelligence
Planning in Artificial Intelligence
kitsenthilkumarcse
 
Unit8: Uncertainty in AI
Unit8: Uncertainty in AIUnit8: Uncertainty in AI
Unit8: Uncertainty in AI
Tekendra Nath Yogi
 
Forward Backward Chaining
Forward Backward ChainingForward Backward Chaining
Forward Backward Chaining
QAU ISLAMABAD,PAKISTAN
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
grinu
 
Informed search
Informed searchInformed search
Informed search
Amit Kumar Rathi
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AI
Megha Sharma
 
blackboard architecture
blackboard architectureblackboard architecture
blackboard architecture
Nguyễn Ngân
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
Hanif Ullah (Gold Medalist)
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
Amar Jukuntla
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
DataminingTools Inc
 
Reinforcement learning
Reinforcement learningReinforcement learning
Reinforcement learning
Ding Li
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
kitsenthilkumarcse
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
vikas dhakane
 
AI_Session 10 Local search in continious space.pptx
AI_Session 10 Local search in continious space.pptxAI_Session 10 Local search in continious space.pptx
AI_Session 10 Local search in continious space.pptx
Asst.prof M.Gokilavani
 

What's hot (20)

Unit 2 ai
Unit 2 aiUnit 2 ai
Unit 2 ai
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Lecture 06 production system
Lecture 06 production systemLecture 06 production system
Lecture 06 production system
 
Rule based system
Rule based systemRule based system
Rule based system
 
ProLog (Artificial Intelligence) Introduction
ProLog (Artificial Intelligence) IntroductionProLog (Artificial Intelligence) Introduction
ProLog (Artificial Intelligence) Introduction
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
Planning in Artificial Intelligence
Planning in Artificial IntelligencePlanning in Artificial Intelligence
Planning in Artificial Intelligence
 
Unit8: Uncertainty in AI
Unit8: Uncertainty in AIUnit8: Uncertainty in AI
Unit8: Uncertainty in AI
 
Forward Backward Chaining
Forward Backward ChainingForward Backward Chaining
Forward Backward Chaining
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
Informed search
Informed searchInformed search
Informed search
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AI
 
blackboard architecture
blackboard architectureblackboard architecture
blackboard architecture
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Reinforcement learning
Reinforcement learningReinforcement learning
Reinforcement learning
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
 
AI_Session 10 Local search in continious space.pptx
AI_Session 10 Local search in continious space.pptxAI_Session 10 Local search in continious space.pptx
AI_Session 10 Local search in continious space.pptx
 

Similar to Unit7: Production System

Unit9:Expert System
Unit9:Expert SystemUnit9:Expert System
Unit9:Expert System
Tekendra Nath Yogi
 
Designing Data Products
Designing Data ProductsDesigning Data Products
Designing Data Products
Vassilis Protonotarios
 
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
PingCAP
 
Requirement engineering in S/W Engineering
Requirement engineering in S/W EngineeringRequirement engineering in S/W Engineering
Requirement engineering in S/W Engineering
Mikel Raj
 
RTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.pptRTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.ppt
Shashikanth
 
Structure system analysis and design method -SSADM
Structure system analysis and design method -SSADMStructure system analysis and design method -SSADM
Structure system analysis and design method -SSADM
FLYMAN TECHNOLOGY LIMITED
 
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
IRJET Journal
 
computer Unit 8
computer Unit 8computer Unit 8
computer Unit 8
Aqeel Rehman
 
Lecture_three_Requirements_analysis.pptx
Lecture_three_Requirements_analysis.pptxLecture_three_Requirements_analysis.pptx
Lecture_three_Requirements_analysis.pptx
GracePeter10
 
Software Testing Introduction
Software Testing IntroductionSoftware Testing Introduction
Software Testing Introduction
ArunKumar5524
 
SQR_CSG_VI4x.pdf
SQR_CSG_VI4x.pdfSQR_CSG_VI4x.pdf
SQR_CSG_VI4x.pdf
Pourchet Jean Claude
 
Cmsc411(Pascuappt Report)
Cmsc411(Pascuappt Report)Cmsc411(Pascuappt Report)
Cmsc411(Pascuappt Report)
Mannilou Pascua
 
Requirement Analysis & Specification sharbani bhattacharya
Requirement Analysis & Specification sharbani bhattacharyaRequirement Analysis & Specification sharbani bhattacharya
Requirement Analysis & Specification sharbani bhattacharya
Sharbani Bhattacharya
 
Software Engineering unit 3
Software Engineering unit 3Software Engineering unit 3
Software Engineering unit 3
Abhimanyu Mishra
 
software requirement
software requirement software requirement
software requirement
nimmik4u
 
Unit-1 Foundations for systems Development.pptx
Unit-1 Foundations for systems Development.pptxUnit-1 Foundations for systems Development.pptx
Unit-1 Foundations for systems Development.pptx
Puskar Bhandari
 
Structured systems analysis and design methodology
Structured systems analysis and design methodologyStructured systems analysis and design methodology
Structured systems analysis and design methodology
Vatsana Technologies Pte Ltd
 
W4 lecture 7&8 - requirements gathering
W4 lecture 7&8 - requirements gatheringW4 lecture 7&8 - requirements gathering
W4 lecture 7&8 - requirements gathering
Fareeha Iftikhar
 
online movie ticket booking system
online movie ticket booking systemonline movie ticket booking system
online movie ticket booking system
Sikandar Pandit
 
918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx
918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx
918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx
blondellchancy
 

Similar to Unit7: Production System (20)

Unit9:Expert System
Unit9:Expert SystemUnit9:Expert System
Unit9:Expert System
 
Designing Data Products
Designing Data ProductsDesigning Data Products
Designing Data Products
 
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
 
Requirement engineering in S/W Engineering
Requirement engineering in S/W EngineeringRequirement engineering in S/W Engineering
Requirement engineering in S/W Engineering
 
RTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.pptRTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.ppt
 
Structure system analysis and design method -SSADM
Structure system analysis and design method -SSADMStructure system analysis and design method -SSADM
Structure system analysis and design method -SSADM
 
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
 
computer Unit 8
computer Unit 8computer Unit 8
computer Unit 8
 
Lecture_three_Requirements_analysis.pptx
Lecture_three_Requirements_analysis.pptxLecture_three_Requirements_analysis.pptx
Lecture_three_Requirements_analysis.pptx
 
Software Testing Introduction
Software Testing IntroductionSoftware Testing Introduction
Software Testing Introduction
 
SQR_CSG_VI4x.pdf
SQR_CSG_VI4x.pdfSQR_CSG_VI4x.pdf
SQR_CSG_VI4x.pdf
 
Cmsc411(Pascuappt Report)
Cmsc411(Pascuappt Report)Cmsc411(Pascuappt Report)
Cmsc411(Pascuappt Report)
 
Requirement Analysis & Specification sharbani bhattacharya
Requirement Analysis & Specification sharbani bhattacharyaRequirement Analysis & Specification sharbani bhattacharya
Requirement Analysis & Specification sharbani bhattacharya
 
Software Engineering unit 3
Software Engineering unit 3Software Engineering unit 3
Software Engineering unit 3
 
software requirement
software requirement software requirement
software requirement
 
Unit-1 Foundations for systems Development.pptx
Unit-1 Foundations for systems Development.pptxUnit-1 Foundations for systems Development.pptx
Unit-1 Foundations for systems Development.pptx
 
Structured systems analysis and design methodology
Structured systems analysis and design methodologyStructured systems analysis and design methodology
Structured systems analysis and design methodology
 
W4 lecture 7&8 - requirements gathering
W4 lecture 7&8 - requirements gatheringW4 lecture 7&8 - requirements gathering
W4 lecture 7&8 - requirements gathering
 
online movie ticket booking system
online movie ticket booking systemonline movie ticket booking system
online movie ticket booking system
 
918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx
918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx
918191ISMM1-UC 752SYSTEMS ANALYSISFall 2019 –.docx
 

More from Tekendra Nath Yogi

Unit5: Learning
Unit5: LearningUnit5: Learning
Unit5: Learning
Tekendra Nath Yogi
 
Unit4: Knowledge Representation
Unit4: Knowledge RepresentationUnit4: Knowledge Representation
Unit4: Knowledge Representation
Tekendra Nath Yogi
 
Unit2: Agents and Environment
Unit2: Agents and EnvironmentUnit2: Agents and Environment
Unit2: Agents and Environment
Tekendra Nath Yogi
 
Unit1: Introduction to AI
Unit1: Introduction to AIUnit1: Introduction to AI
Unit1: Introduction to AI
Tekendra Nath Yogi
 
Unit 6: Application of AI
Unit 6: Application of AIUnit 6: Application of AI
Unit 6: Application of AI
Tekendra Nath Yogi
 
Unit10
Unit10Unit10
Unit9
Unit9Unit9
Unit8
Unit8Unit8
Unit7
Unit7Unit7
BIM Data Mining Unit5 by Tekendra Nath Yogi
 BIM Data Mining Unit5 by Tekendra Nath Yogi BIM Data Mining Unit5 by Tekendra Nath Yogi
BIM Data Mining Unit5 by Tekendra Nath Yogi
Tekendra Nath Yogi
 
BIM Data Mining Unit4 by Tekendra Nath Yogi
 BIM Data Mining Unit4 by Tekendra Nath Yogi BIM Data Mining Unit4 by Tekendra Nath Yogi
BIM Data Mining Unit4 by Tekendra Nath Yogi
Tekendra Nath Yogi
 
BIM Data Mining Unit3 by Tekendra Nath Yogi
 BIM Data Mining Unit3 by Tekendra Nath Yogi BIM Data Mining Unit3 by Tekendra Nath Yogi
BIM Data Mining Unit3 by Tekendra Nath Yogi
Tekendra Nath Yogi
 
BIM Data Mining Unit2 by Tekendra Nath Yogi
 BIM Data Mining Unit2 by Tekendra Nath Yogi BIM Data Mining Unit2 by Tekendra Nath Yogi
BIM Data Mining Unit2 by Tekendra Nath Yogi
Tekendra Nath Yogi
 
BIM Data Mining Unit1 by Tekendra Nath Yogi
 BIM Data Mining Unit1 by Tekendra Nath Yogi BIM Data Mining Unit1 by Tekendra Nath Yogi
BIM Data Mining Unit1 by Tekendra Nath Yogi
Tekendra Nath Yogi
 
Unit6
Unit6Unit6
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath YogiB. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
Tekendra Nath Yogi
 

More from Tekendra Nath Yogi (20)

Unit5: Learning
Unit5: LearningUnit5: Learning
Unit5: Learning
 
Unit4: Knowledge Representation
Unit4: Knowledge RepresentationUnit4: Knowledge Representation
Unit4: Knowledge Representation
 
Unit2: Agents and Environment
Unit2: Agents and EnvironmentUnit2: Agents and Environment
Unit2: Agents and Environment
 
Unit1: Introduction to AI
Unit1: Introduction to AIUnit1: Introduction to AI
Unit1: Introduction to AI
 
Unit 6: Application of AI
Unit 6: Application of AIUnit 6: Application of AI
Unit 6: Application of AI
 
Unit10
Unit10Unit10
Unit10
 
Unit9
Unit9Unit9
Unit9
 
Unit8
Unit8Unit8
Unit8
 
Unit7
Unit7Unit7
Unit7
 
BIM Data Mining Unit5 by Tekendra Nath Yogi
 BIM Data Mining Unit5 by Tekendra Nath Yogi BIM Data Mining Unit5 by Tekendra Nath Yogi
BIM Data Mining Unit5 by Tekendra Nath Yogi
 
BIM Data Mining Unit4 by Tekendra Nath Yogi
 BIM Data Mining Unit4 by Tekendra Nath Yogi BIM Data Mining Unit4 by Tekendra Nath Yogi
BIM Data Mining Unit4 by Tekendra Nath Yogi
 
BIM Data Mining Unit3 by Tekendra Nath Yogi
 BIM Data Mining Unit3 by Tekendra Nath Yogi BIM Data Mining Unit3 by Tekendra Nath Yogi
BIM Data Mining Unit3 by Tekendra Nath Yogi
 
BIM Data Mining Unit2 by Tekendra Nath Yogi
 BIM Data Mining Unit2 by Tekendra Nath Yogi BIM Data Mining Unit2 by Tekendra Nath Yogi
BIM Data Mining Unit2 by Tekendra Nath Yogi
 
BIM Data Mining Unit1 by Tekendra Nath Yogi
 BIM Data Mining Unit1 by Tekendra Nath Yogi BIM Data Mining Unit1 by Tekendra Nath Yogi
BIM Data Mining Unit1 by Tekendra Nath Yogi
 
Unit6
Unit6Unit6
Unit6
 
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath YogiB. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
 

Recently uploaded

Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
yqqaatn0
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
terusbelajar5
 
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdfTopic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
TinyAnderson
 
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero WaterSharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Texas Alliance of Groundwater Districts
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
David Osipyan
 
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills MN
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
Gokturk Mehmet Dilci
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
Hitesh Sikarwar
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
Leonel Morgado
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
HongcNguyn6
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
KrushnaDarade1
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
Vandana Devesh Sharma
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
Abdul Wali Khan University Mardan,kP,Pakistan
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 

Recently uploaded (20)

Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
 
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdfTopic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
 
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero WaterSharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
 
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 

Unit7: Production System

  • 1. Unit 7: Production System Presented By : Tekendra Nath Yogi Tekendranath@gmail.com College Of Applied Business And Technology
  • 2. Contd… • Outline: – 7.1 Strong Methods vs Weak Methods – 7.2 Advantages of Production Systems – 7.3 Production Systems and inference methods • 7.3.1 Conflict resolution strategies • 7.3.2 Forward chaining • 7.3.3 Backward chaining 22/5/2019 By: Tekendra Nath Yogi
  • 3. Production Systems • The production System is a model of computation that has proved particularly important in AI, Both for implementing search algorithms and for modeling human problem solving. • A production system provides pattern-directed control of a problem solving process and consists of: – a set of production rules, – a working memory, and – a recognize- act control cycle. 32/5/2019 By: Tekendra Nath Yogi
  • 4. Contd… • A schematic drawing of a production system is as shown in figure below: Fig: A production system • Control loops until working memory pattern no longer matches the condition of any productions. 42/5/2019 By: Tekendra Nath Yogi
  • 5. Contd… • The set of production rules: – These are often simply called productions. A production is a condition- action pair and defines a single chunk of problem-solving knowledge. • The condition part of the rule is a pattern that determines when that rule may be applied to a problem instance. • The action part defines the associated problem-solving step. – E.g., If it is raining then open the umbrella. 52/5/2019 By: Tekendra Nath Yogi
  • 6. Contd… • Working memory: – Working memory contains a description of the current state of the world(facts/ data) in a reasoning process. – This description is a pattern that is matched against the condition part of a production to select appropriate problem solving actions. – When the condition part of a rule is matched by the contents of working memory, the action associated with that condition may then be performed. – The actions of production rules are specifically designed to alter the contents of working memory. 62/5/2019 By: Tekendra Nath Yogi
  • 7. Contd… • The recognize- act cycle: The control structure for a production system is simple: – Working memory is initialized with the beginning problem description as a set of patterns in working memory. – These patterns are matched against the conditions of the production rules, this produces a subset of the production rules, called the conflict set, whose conditions match the patterns in working memory. – One of the productions in the conflict set is then selected(conflict resolution) and the production is fired. – To fire a rule, its action is performed, changing the contents of working memory. – After the selected production rule is fired, the control cycle repeats with the modified working memory. – This process terminates when the contents of working memory do not match any rule conditions. 72/5/2019 By: Tekendra Nath Yogi
  • 8. Contd… • Example of production system execution: – Problem: sorting a string composed of the letters a, b, and c. – Working memory: cbaca – Production set: – In this example, a production is enabled if its condition matches a portion of the string in working memory. – When a rule is fired, the substring that matched the rule condition is replaced by the string on the right hand side of the rule. 82/5/2019 By: Tekendra Nath Yogi
  • 9. Contd… Fig : Trace of simple production system Fig : Trace of simple production system 92/5/2019 By: Tekendra Nath Yogi
  • 10. Advantages of Production Systems for AI • The production system offers a general framework for implementing search. • Because of its simplicity, modifiability, and flexibility in applying problem solving knowledge, the production system has proved to be an important tool for the construction of expert systems and other AI applications. • The major advantages of production systems for artificial intelligence include: – Separation of knowledge and control – A natural mapping onto state space search. – Modularity of production rules. – Pattern directed control. – Opportunities for heuristic control of search – Tracing and explanation. – Language independence. – A plausible model of human problem solving 102/5/2019 By: Tekendra Nath Yogi
  • 11. Contd… • Separation of knowledge and Control: – The production system is an elegant model of separation of knowledge and control in a computer program. – Control is provided by the recognize-act cycle of the production system loop, and the problem –solving knowledge is encoded in the rules themselves. – The advantages of this separation include ease of modifying the rule base without requiring a change in the code for program control and , conversely, the ability to alter the code for program control without changing the set of production rules. 112/5/2019 By: Tekendra Nath Yogi
  • 12. Contd… • A Natural mapping onto state space search: – The components of a production system map naturally into the constructs of state space search. The successive states of working memory form the nodes of a state space graph. – The production rules are the set of possible transitions between states, with conflict resolution implementing the selection of a branch in the state space. These rules simplify the implementation, debugging, and documentation of search algorithms 122/5/2019 By: Tekendra Nath Yogi
  • 13. Contd… • Modularity of production rules: – An important aspect of the production system model is the lack of any syntactic interactions between production rules. Rules may only effect the firing of other rules by changing the pattern in working memory. – This syntactic independence supports the incremental development of expert systems by successively adding, deleting, or changing the knowledge (rules) of the system. 132/5/2019 By: Tekendra Nath Yogi
  • 14. Contd… • Pattern directed control: – The problems addressed by AI programs require particular flexibility in program execution. – This goal is served by the fact that the rules in a production system may fire in any sequence. – The descriptions of a problem that make up the current state of the world determine the conflict set and, consequently, the particular search path and solution. 142/5/2019 By: Tekendra Nath Yogi
  • 15. Contd… • Tracing and Explanation: – The modularity of rules and the iterative nature of their execution make it easier to trace execution of a production system. – Because each rule corresponds to a single chunk of problem-solving knowledge, the rule content should provide a meaningful explanation of the system’s current state and action 152/5/2019 By: Tekendra Nath Yogi
  • 16. Contd… • Language Independence: – The production system control model is independent of the representation chosen for rules and working memory, as long as that representation supports pattern matching. 162/5/2019 By: Tekendra Nath Yogi
  • 17. Contd… • A Plausible Model of human problem solving: – Modeling human problem solving was among the first uses of production systems. – E.g., • IF the ‘traffic light’ is green • THEN the action is go • IF the ‘traffic light’ is red • THEN the action is stop 172/5/2019 By: Tekendra Nath Yogi
  • 18. Disadvantages of Production Systems • There are three main shortcomings: • Opaque relations between rules. • Ineffective search strategy. • Inability to learn. 182/5/2019 By: Tekendra Nath Yogi
  • 19. Contd… • Opaque relations between rules: – Although the individual production rules tend to be relatively simple and self-documented, their logical interactions within the large set of rules may be opaque. – productions systems make it difficult to observe how individual rules serve the overall strategy. 192/5/2019 By: Tekendra Nath Yogi
  • 20. Contd… • Ineffective search strategy: – The rule interpreter applies an exhaustive search through all the production rules during each cycle. – Production systems with a large set of rules (over 100 rules) can be slow, and thus large rule-based systems can be unsuitable for real-time applications. 202/5/2019 By: Tekendra Nath Yogi
  • 21. Contd… • Inability to learn: – In general, rule-based systems do not have an ability to learn from the experience. – Unlike a human, who knows when to ‘break the rules’, a production system cannot automatically modify its knowledge base, or adjust existing rules or add new ones. – The knowledge engineer is still responsible for revising and maintaining the system. 212/5/2019 By: Tekendra Nath Yogi
  • 22. Conflict Resolution • The set of rules that have their conditions satisfied by working memory elements forms a conflict set. • A conflict is said to occur if more than one rules are found to fire in one cycle. • In such a scenario, the control structure must determine which rule to fire from this conflict set of active rules. • This process of selection is called as conflict resolution so, conflict resolution normally selects a single rule to fire. • There are three conflict resolution mechanism: – Refraction – Recency and – specificity 222/5/2019 By: Tekendra Nath Yogi
  • 23. Contd… • Refraction: – Refraction specifies that once a rule has fired, it may not fire again until the working memory elements that match its conditions have been modified. – This discourage looping. 232/5/2019 By: Tekendra Nath Yogi
  • 24. Contd… • Recency: – The recency strategy prefers rules whose conditions match with the patterns most recently added to working memory. – This focuses the search on a single line of reasoning. 242/5/2019 By: Tekendra Nath Yogi
  • 25. Contd… • Specificity: – This strategy assumes that a more specific problem-solving rule is preferable to a general rule. – A rule is more specific than another if it has more conditions, – This implies that it will match fewer potential working memory patterns. 252/5/2019 By: Tekendra Nath Yogi
  • 26. Production Systems and inference systems • In a production system, the domain knowledge is represented by a set of IF-THEN production rules and data is represented by a set of facts about the current situation. • The rule interpreter compares each rule stored in the rule base with facts contained in the working memory. • When the IF (condition) part of the rule matches a fact, the rule is fired and its THEN (action) part is executed. • The fired rule may change the set of facts in the working memory by adding a new fact. • The matching of the rule’s IF parts to the facts produces inference chains. The inference chain indicates how a production system applies the rules to reach a conclusion. 262/5/2019 By: Tekendra Nath Yogi
  • 27. Contd… • There are two principal ways in which rules are executed. – Forward chaining: Forward chaining starts from the start state(Known facts or data) and proceeds towards the goal state (conclusion) and – Backward chaining: On the other hand backward chaining starts from the goal state and proceeds towards start state. 272/5/2019 By: Tekendra Nath Yogi
  • 28. Contd… • Forward chaining: – Sometimes called the data driven approach. – Working from the facts(data) to conclusion(goal). – To chain forward, match data in working memory against 'conditions' of rules in the rule-base. When one of them fires, this is liable to produce more data. So the cycle continues. – Forward chaining is the best choice if: • All the facts are provided with the problem statement; or: • There are many possible goals, and a smaller number of patterns of data; or There isn't any sensible way to guess what the goal is at the beginning of the consultation. 282/5/2019 By: Tekendra Nath Yogi
  • 29. Contd… • Forward Chaining example: – Initial content of working memory(Known fact) is Start – Production Rule set: – Problem : Prove If p and q true Then goal is true i.e., prove 292/5/2019 By: Tekendra Nath Yogi
  • 30. Contd… • The following table shows the sequence of rules firing and the stages of working memory in the execution . Execution halts when a goal is reached. A Trace of execution is shown in the following table: • Conflict resolution strategy used here is: choose rule that has fired least recently( or not at all. 302/5/2019 By: Tekendra Nath Yogi
  • 32. Contd… • Backward chaining: – It is also known as goal driven search. A goal driven search begins with a goal and works backward to establish its truth. – To implement this in a production system, the goal is placed in working memory and matched against the ACTIONS of the production rules. These ACTIONS are matched just as the CONDTIONs of the productions were matched in the data- driven reasoning. – When the ACTION of a rule is matched, the CONDTIONs are added to working memory and become the new sub-goals of the search. – The new sub-goals are then matched to the ACTIONs of other production rules. This process continues until a fact given in the problem’s initial description is found. – The search stops when the CONDITONs of all the productions fired in this backward fashion are found to be true. – These CONDITIONs and the chain of rule firings leading to the original goal form a proof of its truth through successive inferences. 322/5/2019 By: Tekendra Nath Yogi
  • 33. Contd… • Backward chaining Example: – Initial content of working memory is goal – initially given fact is start – Production Rule set: – Problem : Prove If p and q true Then goal is true i.e., prove 332/5/2019 By: Tekendra Nath Yogi
  • 36. Contd… • Backward chaining is the best choice if: – The goal is given in the problem statement, or can sensibly be guessed at the beginning of the consultation; or – The system has been built so that it sometimes asks for pieces of data rather than expecting all the facts to be presented to it. – e.g. "please now do the gram test on the patient's blood, and tell me the result“. – This is because (especially in the medical domain) the test may be expensive, or unpleasant, or dangerous for the human participant so one would want to avoid doing such a test unless there was a good reason for it. • If it is important that the system should seem to behave like a human expert, backward chaining is the best choice. 36Presented By: Tekendra Nath Yogi
  • 37. Homework • What is AI? Differentiate between strong AI and Weak AI. • What is weak methods and strong methods? Differentiate between weak methods and weak methods. • What is productions and production systems? Explain different advantages and disadvantages of production systems. • What is production system? Explain its different architectural components. • Why conflict resolution is required in production systems? Explain different conflict resolution strategy used in the production systems. • How inferencing is done in production system? Differentiate between forward chaining and backward chaining. 2/5/2019 By: Tekendra Nath Yogi 37
  • 38. Thank You ! 38By: Tekendra Nath Yogi2/5/2019