ensuring sucess upon backtracking
michael.goodrich_at_gmail.com
Date: 03/23/05
- Next message: michael.goodrich_at_gmail.com: "Re: Introducing Perl Programmers to Prolog"
- Previous message: Bart Demoen: "Re: Thinking Recursion"
- Next in thread: student: "Re: ensuring sucess upon backtracking"
- Reply: student: "Re: ensuring sucess upon backtracking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Mar 2005 08:38:13 -0800
Greetings Prolog Community;
I am faced with a curious Prolog problem, and request some help.
I am doing a simulation in which a random variable is generated in a
goal which will prove subsequently to need a different 'randomized'
value since the first one will prove to be unsuitable for various
reasons. I would like to obtain a different random value by
backtracking successfully over the previously encountered rng predicate
in this single clause goal.
Would appreciate guidance on how to achieve this.
Thanx in advance,
-Mike Goodrich
- Next message: michael.goodrich_at_gmail.com: "Re: Introducing Perl Programmers to Prolog"
- Previous message: Bart Demoen: "Re: Thinking Recursion"
- Next in thread: student: "Re: ensuring sucess upon backtracking"
- Reply: student: "Re: ensuring sucess upon backtracking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|