Chapter 19 of the current Jess manual (see http://www.jessrules.com/
docs/71/rete.html) talks about the algorithms that Jess uses. As
you'll see, it's not quite right to say that Jess looks at all the
rules to see if they are activated. The first few sections show how
only parts of most rules need be checked, and section 19.4 shows how
multiple rules can be checked at once. It's also not quite true that
we "keep on checking" the rules; Jess does a sort of incremental
checking so that very little ongoing work is done to keep the
activation status of all the rules up to date as working memory changes.
Rule priorities apply to the ordering of rule firing, after rule
activation is determined. Priority doesn't enter into the pattern-
matching phase at all. As you should understand after reading that
chapter, the question really doesn't make sense, as individual rules
are not checked independently.
On Oct 9, 2007, at 1:51 PM, Mrinal Khanvilkar wrote:
Hi,
According to my understanding if i have a large knowledge base,
then all the rules are checked to see if their LHS are satisfied.
Then they are marked as activateed rules.
so if have a priority on a rule (high priority) if it is acitvated
then it will fire first then the other rules. So in short i am
doing an extensive search of all my rules to see if they are been
activated. Is this correct?
Also if the above is not correct, does it mean that the rule having
an higher priority is checked first or the all the rules regardless
of their priorities are checked for activation and priority only
comes into picture when its time to fire them.
One more question, if we are planning to search the rules
extensively, wouldnt it increase the response time of the engine
(time required to fire the first rule). And what if we dont keep on
checking the rules for activation instead just fire them when they
are activated , what kind of significance will it have on the
performance on the engine.
Regards,
Mrinal
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------