a reader of PBCS hesitating to use SudoRules wrote:How many rules are there in SudoRules ?
I hadn't counted before the question. But it's easy to do it. After activating all the rules in the config file (with no limit on chain lengths), type (rules). You'll get a list of the rule names (one per line) plus a last line giving the number of rules: +11,500.
However, this number doesn't mean much (except that all the rules can be loaded together without creating any incompatibilities):
- this is the number of CLIPS rules, not the number of logical/conceptual rules; each of the last ones may use several CLIPS rules for its implementation (e.g. an activation rule, a tracking rule, a detection rule, an elimination rule);
- for most of the types of chains, there are rules up to length 36 (which has never been useful - the largest known whip length is 31);
- it includes the 4*(630-38) rules for 3-digit impossible patterns;
- it includes the 4*(408) rules for deadly patterns on 12 or fewer cells;
- it includes rules that no one would want to use together (e.g. rules simulating the T&E(3) procedure plus rules for g-braids[36]).
Finally, in anticipation of the next questions:
- no, I haven't written manually 11,500 rules; for most of them, I've first written a rule generator (which makes their testing drastically simpler);
- some rules occupy a few lines, some one or two pages (e.g. rules for impossible or deadly patterns).
- if the question was related to the "hesitation", the number of rules is irrelevant; rules are not "activated" and don't interfere with the resolution process before their "level" is needed (they don't slow the solution);
what may be relevant for you is whether or not you're interested in the approach; SudoRules allows you to select exactly the rules you want to use. Unless you're trying exceptional puzzles, you won't meet any problem. Whenever potential problems may arise with some rules (generally, memory overflow, such as with deadly patterns on many cells), this is signalled in the config file.
.