2 Replies - 493 Views - Last Post: 19 April 2013 - 12:06 PM Rate Topic: -----

#1 Kunj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 24-February 09

Prolog disjunction and conjunction

Posted 18 April 2013 - 01:52 PM

Hi,

I am stuck up with an prolog query and I am lost at it.

Define a rule which models graudation, make sure that it is easy to change.

A student can only graduate if he has taken the required courses
Every student Must take 1114 and 1124
A student can take either 2134 or 394
After that a student must take two electives.

Electives are:
991
992
993
494
495

Any help or guide would be appreciated
Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Prolog disjunction and conjunction

#2 #define  Icon User is online

  • Duke of Err
  • member icon

Reputation: 1330
  • View blog
  • Posts: 4,561
  • Joined: 19-February 09

Re: Prolog disjunction and conjunction

Posted 18 April 2013 - 08:55 PM

Are you to use lists or are you using a list of facts?

eg

studies(fred, 1114).
studies(fred, 1124).
studies(fred, 2134).
studies(fred,  993).

Was This Post Helpful? 0
  • +
  • -

#3 Kunj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 24-February 09

Re: Prolog disjunction and conjunction

Posted 19 April 2013 - 12:06 PM

Thank for help.
Its done
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1