Article View: comp.lang.prolog
Article #3612Re: Random Clause Selection (was: re:probabilstic or)
From: Jamie Andrews
Date: Thu, 25 Aug 1988 15:20
Date: Thu, 25 Aug 1988 15:20
31 lines
2161 bytes
2161 bytes
>In article <1171@tuhold> thom@tuhold (Thom Fruehwirth) writes:
>>As Jamie Andrews in <628@etive.ed.ac.uk> pointed out, O'Keefe probably
>>intended to have a cut between random_permutation/2 and member/2.
Actually, the point I was making was that
random_permutation/2 would either return 7! results (not good)
or else introduce additional incompleteness into the system
(returns only one of the possible results) which random clause
selection would not. If we accept the incompleteness arising
from allowing cut, though, it wouldn't make much difference that
random_permutation/2 returned only one result, since the effect
of it would be the same as if it were followed by a cut.
In article <308@quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes:
<random(-X) generates *ONE* pseudo-random float uniformly distributed
<between 0.0 and 1.0. You wouldn't expect it to generate another if you
<backtrack into it. Why should random_permutation/2 be any different?
I agree, from a practical point of view. But I would
rather have the whole thing hidden, or the randomization
explained by a hidden seed parameter, or something like that,
just because I'm perversely theoretical. (Trilogy anyone? :-))
BTW, (referring to a previous ok article) I also agree that
having random clause selection might not help very much for some
tasks requiring randomization (such as selecting a random
element of an arbitrary-length list) and that specific solutions
might need to be found for them.
--Jamie.
jha@lfcs.ed.ac.uk
"I always find mathematics so difficult" -- David Hilbert
Technical Details
Message-ID:
<732@etive.ed.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!mcvax!ukc!etive!lfcs!jhaReferences:
<1171@tuhold> <308@quintus.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!mcvax!ukc!etive!lfcs!jha From: jha@lfcs.ed.ac.uk (Jamie Andrews) Newsgroups: comp.lang.prolog Subject: Re: Random Clause Selection (was: re:probabilstic or) Keywords: meta interpreter, random, probabilistic, completeness, loops Message-ID: <732@etive.ed.ac.uk> Date: 25 Aug 88 15:20:10 GMT References: <1171@tuhold> <308@quintus.UUCP> Sender: news@etive.ed.ac.uk Reply-To: jha@lfcs.ed.ac.uk (Jamie Andrews) Organization: Laboratory for the Foundations of Computer Science, Edinburgh U Lines: 31