Lecture 7 - Forward Chaining Flashcards

1
Q

What does a production rule interpreter do?

A

Interprets or uses the rules in a production system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two most common types of production rule interpreters?

A

Forward Chainers and Backward Chainers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Production rule interpreters ________ access the rules in a production system

A

systematically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the core components of a production system?

A

Set of production rules - aka rule base

Interpreter - selects and applies rules

Environment - entities that the actions and conditions relate to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the components of the environment of a production system?

A

Dynamic - information that determines which rules fire, modified by the rules - aka working memory

Static - information used to match conditions and determine actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the two steps a forward chaining rule interpreter goes through? (and what is involved in the step)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which step of the match-execute cycle is likely to change the environment of a production system?

A

Execute step

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Until when does the match-execute cycle of an interpreter continue?

A

no rule matches

or

system is stopped by the action of a rule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When a rule is interpreted and executed, the system

a) may

or b) may not

ask the user for input

A

may

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In forward chaining systems, the property called refractoriness means what?

A

The same rule is not allowed to fire twice from matching the same facts (prevents infinite loops)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Conflict Resolution Strategies are needed when

A

Two or more rules match at the same time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are 5 conflict resolution strategies?

A

First Match Found

Random Choice

Specificity

Recency

Assigned Priorities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe the first match found conflict resolution strategy

A

First matching rule is executed regardless of any other matching rules

Rarely used now

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe the random choice conflict resolution strategy

A

Randomly selects a rule to execute from matching rules

Makes behaviour non-deterministic, rarely used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe the Specificity conflict resolution strategy

A

Choose the rule which has the most restrictive condition part

Easy to handle exceptional cases

Widely used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe the recency conflict resolution strategy

A

Choose the rule whose condition was most recently matched

Tends to keep system focused on same part of problem until it has been resolved

Widely used

17
Q

Describe the assigned priorities conflict resolution strategy

A

Programmer assigns each rule a numerical priority. Highest priority rule is chosen

18
Q

What are 3 features of forward chaining

A

Data driven - no explicit goal, behaviour is determined by current situation

Rule selection - Rules chosen are those whose conditions match the current situation

Iterative - repeated execution of the match-execute cycle