Re: Floyd warshall
- From: Cesar Rabak <csrabak@xxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 21:18:16 -0300
andrea escreveu:
I tried with a very small exampleAndrea,
prova(X,Y) :-
dist(X,Y,Z), Z > 2 ->
write('maggiore'); write('minore'),write(Z).
?- prova(0,1).
minore_L136
So in the "else branch" Z is not unified anymore, why?? I dont' find a
suitable explanation..
How can I translate this little piece of code?
You don't expect we forebode the code for your predicate dist/3, do you?
.
- References:
- Re: Floyd warshall
- From: andrea
- Re: Floyd warshall
- From: andrea
- Re: Floyd warshall
- From: andrea
- Re: Floyd warshall
- From: andrea
- Re: Floyd warshall
- Prev by Date: Re: Floyd warshall
- Next by Date: Re: Floyd warshall
- Previous by thread: Re: Floyd warshall
- Next by thread: Re: Floyd warshall
- Index(es):