Re: Heuristic backtrack in Prolog?
- From: "rupertlssmith@xxxxxxxxxxxxxx" <rupertlssmith@xxxxxxxxxxxxxx>
- Date: Tue, 19 Jun 2007 08:56:48 -0000
On Jun 11, 3:42 pm, "Neng-Fa Zhou" <n...@xxxxxxx> wrote:
Please take a look at PRISM (http://sato-www.cs.titech.ac.jp/prism/), which
is an extension of Prolog with support of probabilistic reasoning and
learning. You can not only do probabilistic parsing using given probability
distributions, but also learning to estimate probability distributions from
given data. I am sure your life will be much easier if you use PRISM instead
of Scheme.
Cheers,
Neng-Fa
Neng-Fa,
Could you please give a brief example of how to do this in PRISM? I
had a look at it, and tried out the 'viterbig' predicate to unify with
the most likely goal. However, this does not back track onto the
second most likely, third most... I think Panu was after a greedy
search that follows the most likely first rather than a probabilistic
search that throws a dice on each search node based on the
probabilities of each branch.
Panu,
There is an example here:
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/5_1.html
That shows how to implement an A* heuristic search in prolog. Prolog
only provides depth first search, so you have to explicitly adapt that
mechanism with a program to explore different orderings, roughly
speaking by storing the alternatives in a list ordered by the
heuristics. So its not too hard to write a greedy search that follows
the highest probability first, using a similar mechansim to this
example. You could calculate the probabilities yourself in standard
prolog, or use PRISM to do the probability calculations for you.
Rupert
.
- References:
- Heuristic backtrack in Prolog?
- From: Panu Kalliokoski
- Re: Heuristic backtrack in Prolog?
- From: Neng-Fa Zhou
- Heuristic backtrack in Prolog?
- Prev by Date: Re: Prolog module system
- Next by Date: Re: Prolog module system
- Previous by thread: Re: Heuristic backtrack in Prolog?
- Next by thread: swi cgi hexadecimal code
- Index(es):
Relevant Pages
|
|