Re: simple london underground query system



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.
.



Relevant Pages

  • Re: DAB radios
    ... I could only manage to tune about 10 stations when I held onto the ... however, when I stuck the DAB beam on the roof, every ...
    (uk.radio.amateur)
  • Re: simple london underground query system
    ... But how do i set it up so i can find out the time between stations? ... Thats the part im really stuck on. ... How do i accumulate a time though if the stations more than one ...
    (comp.lang.prolog)
  • Re: OT : digital radios
    ... hmmm -- the new Aldi's in Oban were flogging them the other week, ... obviously had not done their homework ... I mourned the loss of the range of radio stations I could receive when I ...
    (uk.business.agriculture)
  • Re: Over the pond
    ... Thats not what I've heard. ... As for new music choices, that'll be a first for US ... an additional 500 stations have upgraded to digital ... HD Radio broadcasting," said iBiquity President/CEO Robert Struble. ...
    (alt.radio.digital)
  • Re: Where is the "Way Out"
    ... lead to another 200 yards of walking in some stations ... Thats why you have an arrow next to the word, ... So the platform signage should say "Exits":) ...
    (uk.transport.london)