We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

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. 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.

 

  1.                                                        I.      If one is studying Encryption Techniques and Computer Vision then Perquisite is Discrete Structure and Analysis of Algorithms.

 

  1.                                                     II.      If one is studying only Encryption Techniques then prerequisite is Analysis of Algorithms.

 

  1.                                                  III.      If one is studying Encryption Techniques and Artificial Intelligence then one is expert in Efficient Security Algorithms.

 

  1.                                                  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.

 

  1. a.      Is there prerequisite of Discrete Structure for X?
  2. b.      Is there prerequisite of Discrete Structure and Analysis of Algorithms for Y?
  3. c.       Is there prerequisite of Analysis of Algorithms for Z?
  4. d.      Is Sobia Studying Artificial Intelligence?
  5. e.       Are Abdullah and Imran Studying Encryption Techniques?
  6. 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

 

 

+ Click Here To Join also Our facebook study Group.

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?


See Your Saved Posts Timeline

Views: 2408

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

Attachments:

Replies to This Discussion

no one is there?

Hello Frndz

kya es bar kisi ny cs508 nhi rkha

wa hello,

i have.

:(

rkha h bt nhi ho rhi asimnt solv :'(

yaar kesi ny b nahi ki kia assignment?

Dear koi hay

i thinl in  handouts it is same as an exampl one is given about facts,rules and queres in table format

see the page no 93 and try to solve it as it is

i am also trying to solve it

Attachments:

Innocent plz give me any idea if you have solved this assignment 

yar koi idea he de do kerna kia hai es ka?

i am trying to solve it...according to my point give u some idea ...as u see in handouts a table is given

"a dog is a  mammal"

then its PROLOG fact is given as it is

isa(dog,mammal).

RSS

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

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service