General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 9th, 2012, 08:47 AM
ace1426 ace1426 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 1 ace1426 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 29 sec
Reputation Power: 0
Prolog basic help

I have a self taught module that I am struggling with, prolog doesn't seem to be my thing no matter how hard i try, any ideas?

The prolog database is attached:

fileserve . com /file/fSzes5k/prolog.zip


Any help would be great, cheers.

Q1) Write a rule that displays whether a station is on the London Overground or not.

Q2) Write a PROLOG rule that tests if a journey between two adjacent stations exists in the database in either direction.

Q3) Write a rule that displays all of the journeys between two adjacent stations that take a specified journey time.

Q4) Write a rule that displays all of the journeys between two adjacent stations that take less than or equal to a specified journey time.

Q5) Write a rule that determines if a journey between any two specified stations is possible or not on the London Overground. For this question, you must fully test for the possibility that a station exists but cannot be reached - do not just test that the two stations exist on the Overground map!

Q6) Write a rule based on the answer to Q5 that returns/displays how long a journey will take between two stations.

Q7) Write a rule that displays all of the stations that are within reach from a specified station given a time. e.g. what stations are reachable from Richmond in 15 minutes?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Prolog basic help


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap