Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!spool.mu.edu!torn!news!spicer
From: spicer@server.uwindsor.ca (Spicer Andrew)
Subject: Should I use prolog?  How?
Message-ID: <Cyt85t.Grr@uwindsor.ca>
Summary: Optimizing with prolog?
Sender: news@uwindsor.ca (Usenet)
Organization: University of Windsor, Ontario, Canada
Date: Sat, 5 Nov 1994 19:44:16 GMT
Lines: 21

I am trying to solve a particular problem using artificial
intelligence.  It can be modeled as follows:

Say you have a pile of blocks.  You can pick up a block if
it is not covered by another.  For each block you pick up
you get a (known) score.  This can be positive or negative.

The goal is to determine which blocks to pick up and in which
order to maximize your score.

Defining the blocks and their scores, and which is on which is
easy.  But I am not sure how to find an optimal solution using
Prolog.  Should I use something else, or do you have anu suggestions
on how to do it using Prolog?

Thank you,
Andrew




