Re: New riddle
From: Damion (global_killer_at_web.de)
Date: 10/28/03
- Next message: Damion: "Re: New riddle"
- Previous message: Paul Singleton: "Re: Prolog on a web server"
- In reply to: Verena Hug: "Re: New riddle"
- Next in thread: Dale Patterson: "Re: New riddle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 15:32:47 +0100
thx, that sounds good ;)
is it possible to send me ur source code that gives u 16 answers?
or better reply to my email, or en me a new one.
I really could use some help today ;(
best regards, Damion
(german langueage is ok too ;)))
"Verena Hug" <verena_hug@t-online.de> schrieb im Newsbeitrag
news:e6lt61-bv3.ln1@320031539785-0001.dialin.t-online.de...
> Scripsit Ray Reeves:
>
> > Decide on the form of a "feasible functor" ff( ...) that describes the
> > answer you want. Let the first parameter be the index number.
> > Write down a ff for every parameter and what you know about it, putting
> > variables for what you don't know.
> > Unify them all.
>
> The main problem here may be to assure that there are 5 houses, each
> different from the others in each attribute. If the "ff for every
> parameter" e.g. is something like
>
> house(Number, Colour, Goods, Inhabitant, Shoptype)
>
> there must be something more general, that contains all houses, a term or
a
> list, e.g.
>
> HouseList = [house(nr1,_,_,_,_),house(nr2,_,_,_,_), ...
house(nr5,_,_,_,_)]
>
> that can be used for declarations like
>
> contains(HouseList, house(_,blue,_,_,_)), ... for every colour,
> contains(HouseList, house(_,_,wine,_,_)), ... for every article
> ... and so on
>
> contains([X|_], X). contains([_|R], X):- contains(R, X).
>
> Then the restrictions can be "written down":
>
> contains(HouseList, house(nr1,_,_,_,flower)), % rule #1
>
> and so on. If it is _very_ slow, it could be made considerably faster with
> sensible rearranging of declarations. Of course that makes it intricate.
>
> Best regards, Verena
>
> --
> Omnis una manet nox et calcanda semel via leti.
- Next message: Damion: "Re: New riddle"
- Previous message: Paul Singleton: "Re: Prolog on a web server"
- In reply to: Verena Hug: "Re: New riddle"
- Next in thread: Dale Patterson: "Re: New riddle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|