From: sajuma@utu.fi
To: Oleg <oleg_inconnu@myrealbox.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Rule based language
Date: Thu, 25 Jul 2002 16:30:25 +0300 (EET DST) [thread overview]
Message-ID: <1027603825.3d3ffd7192c8d@webmail.utu.fi> (raw)
In-Reply-To: <200207250626.CAA03249@dewberry.cc.columbia.edu>
> I did not misunderstand. I use multiplicative AND. All three
> programs give equivalent output when they all finish for all
> cases I looked at.
If you only looked cases like your "test.input",
they are not very reliable, because all the
satisfiable goals are in the dataset at the beginning,
and other goals are not reachable at all.
I guess none of the other goals is actually on the right side
of the rules.
OTOH my pigeons example shows the difference:
./rules < pigeons.prog
Goal x: found
Goal y: found
Goal z: found
./rules.opt < pigeons.prog
Goal x: (big plan found by dfs)
Goal y: not found
Goal z: not found
For some reason you missed my attachment or
you have changed your program after sending
it to the list.
Here is a more simple example that shows the difference:
------------------------------
ruleset: 1 is a => b;
dataset: a;
goals: g is a and b;
------------------------------
The meaning of Rule 1 is that if "a" is in the dataset, then
it is removed from the dataset, and "b" is added to the
dataset.
The meaning of goal "g" is that both "a" and "b" are
in the dataset after some sequence of rule activations.
In this case, additive and multiplicate readings are
different, because it is possible to reach both "a" and "b",
but they cannot coexists.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-07-25 13:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-24 22:31 [Caml-list] Rule based language [was: productivity improvement] sajuma
2002-07-25 6:26 ` Oleg
2002-07-25 13:30 ` sajuma [this message]
2002-07-25 18:16 ` [Caml-list] Rule based language Oleg
2002-07-25 18:29 ` Francois Rouaix
2002-07-27 9:08 ` [Caml-list] productivity improvement (was: Rule based language) Oleg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1027603825.3d3ffd7192c8d@webmail.utu.fi \
--to=sajuma@utu.fi \
--cc=caml-list@inria.fr \
--cc=oleg_inconnu@myrealbox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox