Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following productions system where Working Memory ( W M ) = { - 2 } Time left 0 . 3 List of Rules:

Consider the following productions system where Working Memory (WM)={-2}
Time left 0.3
List of Rules:
(R1) if x in WM then add x+1 to WM.
(R2) if x in WM and x is odd then add x+4 to WM .
(R3) if x in WM and x is odd and x>0 then add x-3 to WM.
(R4) if 5 in WM then print "Hr".
(R5) if 7 in WM then print "OK'
Conflict Resolution:
(a) Ordering
(O1)R13R23R33R43R5
(O2)R53R43R3=R2=R1
(b) Recency: rules more recently added take priority during conflict
(c) Refractoriness once: A rule that was selected in the previous cycle is excluded
(d) Specificity: rules with more specific antecedents/conditions are favored
We employ RoD in case we have one rule applicable to different data
i.e. if there is one rule R that is applicable to more than one data in WM, then add R to the most recently added data to WM
Cycle No.
Applicable rules
Selected rule
Updated-WM
1.
R1-2
R1
{-2,-1}
2.
R1,R2
R2
{-2,-1,3}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

Identify five strategies to prevent workplace bullying.

Answered: 1 week ago