Logic Programming - Autumn 2011

The aim of this course is to introduce you to the theory and practice of logic programming. We teach it in two parts:

There will be 18 lectures, starting Monday 19th September.

All lectures are in Appleton Tower Lecture Theatre 4.

There will be no lectures in week 5 (17th, 20th October).
However, tutorials will be held as usual in Week 5.

Revision office hours

The course lecturers are available for discussion of course material at the following hours during the revision period.

Meetings outside these hours are also possible by appointment.

Course Text and Supplementary Material

The primary book for the programming side of the course is Learn Prolog Now, by Blackburn, Bos and Striegnitz. The book is strongly recommended, and is available free on-line.

Other useful books on prolog programming are

For the theory lectures, the following background material on propositional and predicate will be useful for students who have not previously encountered propositional and predicate logic.

SICStus Prolog

SICStus Prolog is recommended for use in the course and will be used for the final exam. Any DICE machine (i.e. any Linux machine in an Informatics computer lab) should have SICStus installed; type sicstus at a command prompt to start.

The School also has a site license for student use, in case you would prefer to install and run SICStus on your own computer. Contact Computing Support in person or via this form to arrange this.

Introductory Prolog Programming Notes

To get you quickly informed of the essential aspects of the Prolog programming language, read the Quick Prolog notes. These refer to the Prolog programs: ancestors.pl, dcg.pl, declar_v_proc.pl and mapcolour.pl.

Prolog Programming Lecture Videos

Some lectures from this and previous years were recorded on video so if you want a re-run of those lectures then visit the video site for the full lectures; clips of smaller segments; and instructions on how to view them on the Informatics DICE system.

Course Organisation

Prolog Programming Lecture Slides

Prolog Theory Lecture Slides

Coursework

There will be two, formatively assessed, coursework exercises. These will not be part of the final grade (i.e., they are optional, but strongly recommended). They will be marked and returned to students with feedback. It is strongly recommended that students attempt these exercises in order to reinforce the lectures and tutorial problems.

Tutorials

There are five tutorial groups, and tutorials start Week 3 (October 3). The tutorials schedule is: See tutorial groups and times
Note that full sample tutorial solutions will not be posted. Please ask one of the instructors about any of these if you have questions.

Previous Exams


Home : Teaching : Courses 

Informatics Forum, 10 Crichton Street, Edinburgh, EH8 9AB, Scotland, UK
Tel: +44 131 651 5661, Fax: +44 131 651 1426, E-mail: school-office@inf.ed.ac.uk
Please contact our webadmin with any comments or corrections.
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh