Re: Floyd warshall
- From: Cesar Rabak <csrabak@xxxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 15:52:17 -0300
andrea escreveu:
I need to find shortest paths from from every nodes to every nodes of
a graph.
Since this questions is suspiciously similar to someone asking for a homework:
I think Floyd warshall could be alright but I've got no idea of how
could be the implementation in prolog...
Do you know it works so you recognize how to describe it?
Do you know enough Prolog so you can represent the graph in Prolog terms?
Any idea?? Google didn't helped unfortunately...
If you can do what I ask above, you could build a set of predicates to perform the algorithm.
Any other ways to solve this problem?
Yes, a lot. What is exactly your purpose?
.
- Follow-Ups:
- Re: Floyd warshall
- From: andrea
- Re: Floyd warshall
- References:
- Floyd warshall
- From: andrea
- Floyd warshall
- Prev by Date: Re: listing(+Pred, -Atom)
- Next by Date: CFP 8th International Conference on Intelligent Data Engineering and Automated Learning (IDEAL'07)
- Previous by thread: Floyd warshall
- Next by thread: Re: Floyd warshall
- Index(es):