Functional and Logical Programming
Code | Completion | Credits | Range | Language |
---|---|---|---|---|
MI-FLP | Z,ZK | 4 | 2P+1C | Czech |
- Garant předmětu:
- Lecturer:
- Tutor:
- Supervisor:
- Department of Theoretical Computer Science
- Synopsis:
-
Students will be acquainted with principles of functional and logic programming. They will be able to write their programs in Lisp and Prolog programming languages.
- Requirements:
-
Basic knowledge of imperative programming.
- Syllabus of lectures:
-
1. Declarative programming languages. Lambda calculus as a formalism for functional programming.
2. Basic data types and functions in Lisp, lists.
3. Variables, type predicates, recursion and iteration in Lisp.
4. Mapping functionals, control statements.
5. Input and output, macros.
6. Structures, vectors, arrays, hash tables.
7. Implementation of Lisp.
8. Predicate logic, Horns clauses and SLD resolutions as an introduction to Prolog.
9. Predicates, clauses, facts, operators in Prolog.
10. Control of the computation in Prolog, lists.
11. Data structures, input, output.
12. Implementation of Prolog.
13. Logic programming and proof trees - relation to attributed grammars.
- Syllabus of tutorials:
-
1. Recursive programming, solving simple problems in an imperative programming language using recursion.
2. Introduction to the use of Lisp programming environment in computer lab.
3. Simple functions for processing lists in Lisp.
4. Assignment of semestral works.
5. Recursive and iterative solutions, efficiency of recursion.
6. Mapping functionals.
7. Arrays, hash tables, input and output.
8. Macros, structures.
9. Consultations on semestral works.
10. Introduction to the use of Prolog programming environment in computer lab.
11. Recursion in Prolog, arithmetic and list predicates.
12. Input and output, control of the computation.
13. Checking semestral works.
- Study Objective:
-
The module deals with functional and logic programming. It explains basic principles and focuses on programming in Lisp and Prolog programming languages. Students learn the principles of implementation of Lisp and Prolog programming languages.
- Study materials:
-
1. Shapiro, S. C. ''Common Lisp: An Interactive Approach''. W. H. Freeman, 1991. ISBN 0716782189.
2. Seibel, P. ''Practical Common Lisp''. Apress, 2005. ISBN 1590592395.
3. Clocksin, W. F., Mellish, C. S. ''Programming in Prolog (5th Edition)''. Springer, 2003. ISBN 3540006788.
- Note:
- Further information:
- https://courses.fit.cvut.cz/MI-FLP/
- No time-table has been prepared for this course
- The course is a part of the following study plans:
-
- Master branch Knowledge Engineering, in Czech, 2016-2017 (elective course)
- Master branch Computer Security, in Czech, 2016-2019 (elective course)
- Master branch Computer Systems and Networks, in Czech, 2016-2019 (elective course)
- Master branch Design and Programming of Embedded Systems, in Czech, 2016-2019 (elective course)
- Master branch Web and Software Engineering, spec. Info. Systems and Management, in Czech, 2016-2019 (elective course)
- Master branch Web and Software Engineering, spec. Software Engineering, in Czech, 2016-2019 (elective course)
- Master branch Web and Software Engineering, spec. Web Engineering, in Czech, 2016-2019 (elective course)
- Master program Informatics, unspecified branch, in Czech, version 2016-2019 (VO)
- Master branch System Programming, spec. System Programming, in Czech, 2016-2019 (compulsory course of the specialization)
- Master branch System Programming, spec. Computer Science, in Czech, 2016-2017 (compulsory course of the specialization)
- Master specialization Computer Science, in Czech, 2018-2019 (elective course)
- Master branch Knowledge Engineering, in Czech, 2018-2019 (elective course)