- Semester
- Area Elective
- Type
- Technical Elective
- Credit
- 3
- ECTS
- 5
- Language
- İngilizce
- Contact hours
- Lecture 3 · Practice 0 · Lab 0
On this page
Course Objective
The objective of this course is to teach different logic programming concepts via programming practices realized by using different logic programming languages. The students will be able to compare how different logic programming concepts are handled in different type of languages. The students get a chance to apply their knowledge by completing homework assignments written in example logic programming languages.
Course Content
Lisp programming: symbolic expressions, elementary functions, Lambda notation, forms, functions, list structures, Prolog programming: facts, rules, relationships; data structures; backtracking; input/output; built-in predicates.
Prerequisites
None
Delivery and Teaching Methods
- Face to face
- Lecture
Learning Outcomes and Contribution to Programme Outcomes
- 1Gain necessary knowledge for LISP/Prolog programming.
- 2Discuss main constructs of logic programming languages.
- 3Comprehend the basic differences between logic programming and imperative, functional, and object-oriented languages.
- 4Identify practical/suitable usage areas for logic programming.
Weekly Topics
| Week | Topic |
|---|---|
| 1 | Logical Agents |
| 2 | First-Order Logic |
| 3 | Inference in First-Order Logic |
| 4 | Inference in First-Order Logic |
| 5 | Clauses, Predicates, Satisfying Goals, Operators and Arithmetic (In Prolog) |
| 6 | Input Outputs /Loops /Preventing Backtracking (In Prolog) |
| 7 | List Processing String Processing (In Prolog) |
| 8 | Syntax, Semantics, Functions, Variables (in LISP) |
| 9 | Syntax, Semantics, Functions, Variables (in LISP) |
| 10 | Control Structures, Macros (in LISP) |
| 11 | Numbers, Characters, Strings, Collections, File I/O (in LISP) |
| 12 | Object Reorientation (Generic functions, Classes) (in LISP) |
| 13 | Object Reorientation (Generic functions, Classes) (in LISP) |
| 14 | Practical Applications (in LISP) |
Assessment
| Method | Number | Weight |
|---|---|---|
| Midtermexam | 1 | %25 |
| Homework | 2 | %15 |
| Project | 1 | %30 |
| Finalexam | 1 | %30 |
| Total | %100 | |
ECTS Workload
| Activity | Number | Duration (hours) | Total |
|---|---|---|---|
| Out-of-Class Study Time | 16 | 2 | 32 |
| Projects | 1 | 10 | 10 |
| Final Exam Preparation | 1 | 15 | 15 |
| Lecture Hours (Including exam week: 16 x lecture hours) | 16 | 3 | 48 |
| Assignments | 2 | 5 | 10 |
| Midterm Exam Preparation | 1 | 10 | 10 |
| Total workload (hours) | 125 | ||
| ECTS equivalent (workload / 30) | 4.2 | ||
Resources
- Textbook Seibel, P., “Practical Common LISP”, 2005, Springer.
- Other M.Bramer, “Logic Programming with Prolog”, 2005, Springer, ISBN: 1-85233-938-1.
- Other L.Sterling, E.Shapiro, “The Art of Prolog: Advanced Programming Techniques”, (MIT Press Series in Logic Programming),
- Other http://www.atilim.edu.tr/~hurevren/COMPE462/Sebesta_Ch16.ppt
- Other http://common-lisp.net/
- Other Artificial Intelligence : A Modern Approach (Second Edition)., Stuart Russell and Peter Norvig, Prentice-Hall, 2003, ISBN: 0-13-790395.