www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS508 Assignment No 03 Solution & Discussion Spring 2013

kindly discuss this assignment here.

 Assignment No. 03 Semester: Spring 2013 Modern Programming Languages  (CS508) Total Marks: 15   Due Date:  26/06/2013 Instructions: Please read the following instructions carefully before submitting assignment:   You will submit your assignment before or on due date on VU-LMS. Assignment should be completed by your own efforts it should not be copied from internet, handouts or books. You should submit your MS Word File via assignment interface at VU-LMS. Assignment sent via Email will not be replied and accepted/graded in any case. If the submitted assignment does not open or file is corrupt, it will not be graded. You will submit solution only in Microsoft Word File.   Objectives:   To understand and familiarize with Prolog Language. For any query about the assignment, contact at cs508@vu.edu.pk or through MDB. Assignment Questions Suppose you have the following observational data about students of college.   Ali studying Artificial Intelligence. Ahmad is studying Artificial Intelligence. Mujahid is studying Artificial Intelligence.   Jawad is studying Artificial Intelligence. Akram is studying Artificial Intelligence.   Mehvish is studying Computer Vision. Sobia is studying Computer Vision.   Mujahid is Studying Computer Vision. Ahmad is Studying Computer Vision. Jawad is studying Computer Vision. Abdullah is studying Computer Vision.   Abdullah is studying Encryption Techniques. Fahad is studying Encryption Techniques. Mehvish is studying Encryption Techniques. Imran is studying Encryption Techniques.   1.      Now being a prolog programmer answer the following questions:   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.                                                          I.      If one is studying Encryption Techniques and Computer Vision then Perquisite is Discrete Structure and Analysis of Algorithms.                                                       II.      If one is studying only Encryption Techniques then prerequisite is Analysis of Algorithms.                                                    III.      If one is studying Encryption Techniques and Artificial Intelligence then one is expert in Efficient Security Algorithms.                                                    IV.      If one is studying only Artificial Intelligence then one is Intellectual.       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.   a.      Is there prerequisite of Discrete Structure for X? b.      Is there prerequisite of Discrete Structure and Analysis of Algorithms for Y? c.       Is there prerequisite of Analysis of Algorithms for Z? d.      Is Sobia Studying Artificial Intelligence? e.       Are Abdullah and Imran Studying Encryption Techniques? f.       Is P studying Computer Vision and Artificial Intelligence?   Note: In queries where variables are used along with answer write all the possible matches either they are true or not. BEST OF LUCK

Views: 2589

Attachments:

### Replies to This Discussion

would u like to solve this for us?

a.    Is there prerequisite of Discrete Structure for X?

sny2ksa solve one point for us ...i am little bit confused other parts i wll do it

according to me.

Is there prerequisite of Discrete Structure for X?

?- isa(X, discrete structure)

X = computer vision

yes

correct the example that i have given to you...and tell me where i apply the conjunction and how??

sny2ksa

 Instructor's Reply: "X" variable which is True for those who have been following the constraint defined in rule you need to define the functions in such a way that you can be able to the names of the students who are legally bound that they have studied specific pre-req course for the constraint defined; here you have very explicit rule defined for whom the the pre-req of discrete structure is required obviously for those students who have been studying AI and Computer Vision. Think deeply and with peace of mind it is all part of assignment. All the best.

1. a.      Is there prerequisite of Discrete Structure for X?

?- prerequisite(Discrete Structure, X)

X= Ali ;           Yes

X= Akram ;    Yes

X= Mehvish ;  Yes

X= Sobia ;       Yes

X= Mujahid;   Yes

X= Ahmad ;    Yes

X= Jawad ;     Yes

X= Abdullah; Yes

M saqib khan ..it seems good,but kindly tell me that, do we have to add NO conditions also??

do u have assign some such variables in Rules too.plz reply me fast.

i am too confused now,

need full solution its urgent time is short.

AOA alls

kisi ki pass solution hai tu kindly upload it plzzzzzzzzzzzzzz

plz upload complt solu time is to short

thainga.... koi nahi dainy wla sub selfish hain :/

chlo fear g mojain marty haen

1

2

## Latest Activity

Aijaz khan updated their profile
2 hours ago
Aijaz khan joined + M.Tariq Malik's group

### CS202 Fundamentals of Front End Development

2 hours ago
Ribqa, Muhammad Rizwan Ansari, Muhammad Imran and 3 more joined Virtual University of Pakistan
2 hours ago
2 hours ago
17 hours ago
Samrina, Malaika Iqbal, Tahir Abbas and 2 more joined Virtual University of Pakistan
yesterday
memon added a discussion to the group MGT610 Business Ethics

### Mgt610 midterm fall 2021 (jan-14-2022)

yesterday
Student, Batool, Suha Khan and 3 more joined Virtual University of Pakistan
Friday

© 2022   Created by + M.Tariq Malik.   Powered by