logo       

URGENT: The way between two cities: msg#01620

Subject: URGENT: The way between two cities
I want some help in a project with search without information who resolve the way between two cities.
 
The algorithm must have a list with the way since the original city(executable by the program, coimbra) until destiny city(make a wish to the user).


The relations are:
estrada(viseu,coimbra).
estrada(viseu,guarda).
estrada(coimbra,figueira_da_foz).
estrada(coimbra,leiria).
estrada(coimbra,tomar).
estrada(coimbra,castelo_branco).
estrada(guarda,castelo_branco).
estrada(leiria,nazare).
estrada(leiria,lisboa).
estrada(leiria,santarem).
estrada(leiria,tomar).
estrada(tomar,santarem).
estrada(lisboa,faro).
estrada(lisboa,santarem).
estrada(santarem,beja).
estrada(santarem,portalegre).
estrada(castelo_branco,portalegre).
estrada(beja,faro).
estrada(beja,vila_real_santo_antonio).
estrada(portalegre,vila_real_santo_antonio).
estrada(faro,vila_real_santo_antonio).


Best regards

Sent from the SWI Prolog forum at Nabble.com:
URGENT: The way between two cities
<Prev in Thread] Current Thread [Next in Thread>