kindly discuss this assignment here.
Assignment No. 03
Total Marks: 15
Due Date: 26/06/2013
Please read the following instructions carefully before submitting assignment:
To understand and familiarize with Prolog Language.
For any query about the assignment, contact at firstname.lastname@example.org or through MDB.
Suppose you have the following observational data about students of college.
Question # 1 Marks 5
Write the prolog rules for the followings.
If one is studying Artificial Intelligence and Computer Vision then perquisite is Discrete Structure.
Question # 2 Marks 10
Write the prolog queries for the followings. These queries will be executed according to the facts and rules defined for the above given data and perform all steps to write the output of the given queries.
Note: In queries where variables are used along with answer write all the possible matches either they are true or not.
BEST OF LUCK
apply conjunction in ur query.
further, according to me..
for ET ,prerequisite will be Analysis of Algorithm
for CV ,prerequisite will be DS
for Ai , have to select intellectual
there is .
in first rule. for Artificial intelligence, we have to select intellectual, so for Computer Vision's prerequisite will be DS.
give any examples?
like keep student in variable,
If one is studying Encryption Techniques and Computer Vision then Perquisite is Discrete Structure and Analysis of Algorithms.
student(A) :- isa(A,Encryption Techniques, Computer Vision), isa(A, Discrete Structure, Analysis of Algorithms)
thanks yaar and plz tell me is it rite?
a. Is there prerequisite of Discrete Structure for X?
?- perquisite (Discrete Structure, X)
one thing is wrong, space is not allowed in attom names.
yaar aap log kia ker rahi ho or confuce ho raha hn ap koi examples do gy? plz
Imran Faisalabad example book pe ha hum usko discuss kr trahe hn ap wahan se resd karo samjh ajy ga
sny2ksa what is meaning of X there?
in query ..X can only be any variable in which u can save subject name.
because prerequisite can only assign to subjects, not to students
some infos regarding PROLOG>
we can't have variables in Facts. but in Rules and queries can have
variable name starts with capital letter or underscore.
u have to be consistent through out ur program after deciding about object and subject places.