Lecture 7 - Forward Chaining Flashcards
What does a production rule interpreter do?
Interprets or uses the rules in a production system
What are the two most common types of production rule interpreters?
Forward Chainers and Backward Chainers
Production rule interpreters ________ access the rules in a production system
systematically
What are the core components of a production system?
Set of production rules - aka rule base
Interpreter - selects and applies rules
Environment - entities that the actions and conditions relate to
What are the components of the environment of a production system?
Dynamic - information that determines which rules fire, modified by the rules - aka working memory
Static - information used to match conditions and determine actions
What are the two steps a forward chaining rule interpreter goes through? (and what is involved in the step)
Match step - scan through the rules to find one whose condition matches the current state
Execute/Firing step - Perform the action of the matched rule
Which step of the match-execute cycle is likely to change the environment of a production system?
Execute step
Until when does the match-execute cycle of an interpreter continue?
no rule matches
or
system is stopped by the action of a rule
When a rule is interpreted and executed, the system
a) may
or b) may not
ask the user for input
may
In forward chaining systems, the property called refractoriness means what?
The same rule is not allowed to fire twice from matching the same facts (prevents infinite loops)
Conflict Resolution Strategies are needed when
Two or more rules match at the same time
What are 5 conflict resolution strategies?
First Match Found
Random Choice
Specificity
Recency
Assigned Priorities
Describe the first match found conflict resolution strategy
First matching rule is executed regardless of any other matching rules
Rarely used now
Describe the random choice conflict resolution strategy
Randomly selects a rule to execute from matching rules
Makes behaviour non-deterministic, rarely used
Describe the Specificity conflict resolution strategy
Choose the rule which has the most restrictive condition part
Easy to handle exceptional cases
Widely used