Re: simple london underground query system
- From: A.L. <alewando@xxxxxxxxxxxx>
- Date: Wed, 09 Aug 2006 09:45:06 -0500
On 9 Aug 2006 07:22:21 -0700, "sheddy" <andysheard@xxxxxxxxxxxxxx>
wrote:
Thanks again
But how do i set it up so i can find out the time between stations?
Thats the part im really stuck on.
I know how to get the time between two station that are next to each
other. How do i accumulate a time though if the stations more than one
stop away?
Sheddy
Hm.... It seems simple: A->B->C then time(A, C) = time(A, B) +
time(B, C)
You have to cumulate time when you do graph traversal or you can
calculate time when you find the path.
I am not going to write program to show you how to do this. There is
enough free materials about Prolog available on the Internet. You
can start from here
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/contents.html
You can see also here
http://www.informatik.uni-freiburg.de/~ml/teaching/ws02/lll/lll2_small.pdf
Have fun with your homework!
A.L.
.
- References:
- simple london underground query system
- From: sheddy
- Re: simple london underground query system
- From: Joachim Schimpf
- Re: simple london underground query system
- From: A . L .
- Re: simple london underground query system
- From: sheddy
- simple london underground query system
- Prev by Date: Re: simple london underground query system
- Next by Date: Re: When to use facts instead of rules?
- Previous by thread: Re: simple london underground query system
- Next by thread: strange clp(q) printing of constraint store
- Index(es):
Relevant Pages
|