Re: communicate with Prolog engine in Prolog
- From: Simon Strobl <Simon.Strobl@xxxxxxxxx>
- Date: Mon, 10 Dec 2007 06:11:23 -0800 (PST)
for nonterminating predicates you could write a metainterpreter and stop
/pause after finding n variable substutions.
Even when the predicate does not terminate it may be useful to use
something like a metainterpreter.
Suppose users may query a Prolog program through a web interface.
Suppose a query has 530 solutions. Then the web-interface program
should talk to a Prolog engine E and get from E the first, say, 10
solutions. Only if the user wants more solutions, should the interface
program be given the next 10 solutions. It would be absurdly expensive
to calculate all 530 solutions in the first place.
http://stud4.tuwien.ac.at/~e0225855/acomip/acomip.html, another source
http://www.complang.tuwien.ac.at/ulrich/prolog2.pdf(in german)
Thanks for the links. I will probably use such methods.
Simon
.
- Follow-Ups:
- Re: communicate with Prolog engine in Prolog
- From: Martin Riener
- Re: communicate with Prolog engine in Prolog
- From: Simon Strobl
- Re: communicate with Prolog engine in Prolog
- References:
- communicate with Prolog engine in Prolog
- From: Simon Strobl
- Re: communicate with Prolog engine in Prolog
- From: Martin Riener
- communicate with Prolog engine in Prolog
- Prev by Date: Re: communicate with Prolog engine in Prolog
- Next by Date: Re: communicate with Prolog engine in Prolog
- Previous by thread: Re: communicate with Prolog engine in Prolog
- Next by thread: Re: communicate with Prolog engine in Prolog
- Index(es):
Relevant Pages
|
|