The course presents logic and logic programming for software development. The course presents algorithms over lists and tree, and also search algorithms over graphs. Various more efficient data structures, such as difference structures, are introduced. We show how techniques from functional programming fit in the framework of logic programming and can be expressed in the programming language Prolog. Finally, the course presents some AI applications, such as simple expert systems, and gives a short overview of current methodological trends. In this course students will meet theory and the basic design principles within logic programming while they in later project course, for example in the degree project, can practise the methods.
ID1213 Logic Programming, Basic Course 7.5 credits
This course has been discontinued.
Last planned examination: Spring 2022
Decision to discontinue this course:
No information inserted![](https://kursinfostorageprod.blob.core.windows.net/kursinfo-image-container/Picture_by_MainFieldOfStudy_23_Technology.jpg)
Content and learning outcomes
Course contents
Intended learning outcomes
After passing the course, the student shall be able to
- describe a problem as logical statements, facts and rules
- express algorithms as rules in Prolog
- design and/or choose appropriate data representations in a logic program
- use Prolog's mechanisms to streamline search in execution of a logic program
in order to
- master logic programming as method to develop software.
Literature and preparations
Specific prerequisites
- Completed course ID1018 Programming I or DD1393 Software Engineering, or the equivalent.
- Completed course ID1020 or DD1338 Algorithms and Data Structures, or the equivalent.
- Completed course SF1624 or IX1303 Algebra and Geometry, or the equivalent.
- Completed course SF1610 or IX1500 Discrete Mathematics, or the equivalent.
Recommended prerequisites
Equipment
Literature
Examination and completion
If the course is discontinued, students may request to be examined during the following two academic years.
Grading scale
Examination
- TEN1 - Examination, 7.5 credits, grading scale: A, B, C, D, E, FX, F
Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.
The examiner may apply another examination format when re-examining individual students.
Written examination.
Opportunity to complete the requirements via supplementary examination
Opportunity to raise an approved grade via renewed examination
Examiner
Ethical approach
- All members of a group are responsible for the group's work.
- In any assessment, every student shall honestly disclose any help received and sources used.
- In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.
Further information
Course room in Canvas
Offered by
Main field of study
Education cycle
Add-on studies
A course on Artificial Intelligence. Courses on formal semantics, logical methods in software design, e.g. program analysis or software verification.
A project based on this course can be performed as a thesis project on the 1st cycle level ("kandidat", or "högskoleingenjör") or on the advanced level, 2nd cycle, ("civilingenjör" or "master thesis").
Contact
Supplementary information
The content coincides with ID2213 that is given in english at the same time. ID2213 also contains a project course.
In this course, the EECS code of honor applies, see: http://www.kth.se/en/eecs/utbildning/hederskodex.