CS508 Assignment 3: Understanding PROLOG - Feedback and Common Mistakes, Exercises of Programming Languages

Feedback for assignment 3 of the cs508 - modern programming languages course, focusing on prolog. It includes information on the importance of prolog, basic syntax, and backtracking concept. Common mistakes made by students and alternate solutions are also discussed.

Typology: Exercises

2011/2012

Uploaded on 08/01/2012

ambuja
ambuja 🇮🇳

4.4

(5)

92 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PostAssignmentFeedback
Assignment
No.{3}
Course Name (Course Code)
CS508 - Modern
Programming Languages
Marks:
20
Due Date: DD/MM/YYY
06/06/2012
Assignment Solution Step by Step:
In part a) of this scenario based assignment students were required to discuss the
importance of PROLOG programming language especially as the language of choice for
developers in any expert system.by answering this part students were able to get familiar
with declarative nature of PROLOG and how efficiency in terms of output is achieved by
developers while working in this programming paradigms.
In part b) of this assignment students were required to write PROLOG equivalent .by
attempting this part students can get familiar with basic syntax of this language.
In part c) of this assignment some queries were given to students in PROLOG by
using facts and set of rules provided. by answering these queries students can get familiar
with the backtracking concept in PROLOG by using set of facts and rules.
Common
Mistakes &
Explanation:
Mistake 1:
One of the common mistakes that students made was in part b of the
assignment some students left this part un attempted and those who
attempted made mistake in providing correct syntax of PROLOG language.
Mistake 2:
Second most common mistake made by students was in part c especially in
few queries students were unable to correctly answer those set of queries by
the provided set of rules and facts.
docsity.com
pf2

Partial preview of the text

Download CS508 Assignment 3: Understanding PROLOG - Feedback and Common Mistakes and more Exercises Programming Languages in PDF only on Docsity!

Post Assignment Feedback

Assignment No.{3}

Course Name (Course Code)

CS508 - Modern

Programming Languages

Marks: 20

Due Date: DD/MM/YYY 06/06/

Assignment Solution Step by Step:

In part a) of this scenario based assignment students were required to discuss the importance of PROLOG programming language especially as the language of choice for developers in any expert system.by answering this part students were able to get familiar with declarative nature of PROLOG and how efficiency in terms of output is achieved by developers while working in this programming paradigms.

In part b) of this assignment students were required to write PROLOG equivalent .by attempting this part students can get familiar with basic syntax of this language.

In part c) of this assignment some queries were given to students in PROLOG by using facts and set of rules provided. by answering these queries students can get familiar with the backtracking concept in PROLOG by using set of facts and rules.

Common Mistakes & Explanation:

Mistake 1: One of the common mistakes that students made was in part b of the assignment some students left this part un attempted and those who attempted made mistake in providing correct syntax of PROLOG language. Mistake 2: Second most common mistake made by students was in part c especially in few queries students were unable to correctly answer those set of queries by the provided set of rules and facts.

docsity.com

Alternate solutions:

For part b):Few alternate solutions are as under:

  1. Weather is cloudy and rainy. Is(weather, cloudy,rainy)
  2. Dust storm is expected today. Isexpected(dust storm, today)
  3. Mike carries umbrella for John. CarriesUmbrella(Mike, John)
  4. Is there a forecast for rain today? ?- rain(today)
  5. Is the earth round. ?- earth(round)

…………………………………….. weather:- is(cloudy, rainy) DustStorm:- isexpected(today) John(umbrella):- Mike(umbrella) ?-forecast(rain) ?-earth(round)

Concluding Comments

The overall result for assignment No 3 was above average and it fulfilled the purpose of giving some hands on practice with PROLOG working environment. Almost 80% students were correct in their understanding about the concept covered in assignment questions. Few students were unable to attempt it correctly. However efforts of all students are appreciated .Students are also encouraged to ask queries on mdb’s for lecture related concepts. This will not only facilitate them in understanding concepts of this course but will also show their keen interest towards this subject.

docsity.com