Re: New riddle

From: Damion (global_killer_at_web.de)
Date: 10/28/03


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.



Relevant Pages

  • Re: New riddle
    ... Scripsit Ray Reeves: ... Let the first parameter be the index number. ... The main problem here may be to assure that there are 5 houses, ... sensible rearranging of declarations. ...
    (comp.lang.prolog)
  • Re: Help on array variables
    ... >> using an array variable with unknown elements. ... > Private MyArray() As String 'in the declarations section, ... >> Regards, ...
    (microsoft.public.vb.controls)
  • Re: Multiple instances of a form that has a subform
    ... please read the sample code again from the link I posted. ... > You will see that the form variable is declared in the 'Declarations' section ... > therefore it stays in scope after the sub or function executes. ... >> Regards. ...
    (microsoft.public.access.forms)
  • RE: DataGrid
    ... just make sure that their declarations ... "NewBie" wrote: ... >> Regards, ... >> Rakesh Rajan ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Does Vector is not supported by VC++ 6.0??
    ... Most likely you have an error in one of the header files or ... declarations you are including before line 135 that you have omitted, ...
    (comp.lang.cpp)