Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLEASE HELP!!!!!!!!

Status
Not open for further replies.

kwong08

Technical User
Joined
Nov 30, 2002
Messages
1
Location
US
a set of facts of the form:

flight(DepartCity,DepartTime,ArriveCity,ArriveTime,Cost,Airline);

For example
flight(newyork,1300,chicago 1500,275,united)

Rules:
3. connect(DepartCity,ArriveCity) :- ...
indicates that it's possible to get from DepartCity to ArriveCity
via one or more flights

4. traveltime(DepartCity,ArriveCity,X) :-
indicates that it's possible to get from DepartCity to ArriveCity
via one or more flights, with a total travel time of X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top