Automata and Grammars
Code  Completion  Credits  Range  Language 

BIAAG.21  Z,ZK  5  2P+2C  Czech 
 Garant předmětu:
 Jan Holub
 Lecturer:
 Jan Holub, Jan Janoušek
 Tutor:
 Dominika Draesslerová, Ondřej Guth, Tomáš Pecka, Štěpán Plachý, Martin Svoboda, Eliška Šestáková
 Supervisor:
 Department of Theoretical Computer Science
 Synopsis:

Students are introduced to basic theoretical and implementation principles of the following topics: construction, use and mutual transformations of finite automata, regular expressions, and regular grammars, contextfree grammars, construction and use of pushdown automata, and translation grammars and transducers. They know the hierarchy of formal languages and they understand the relationships between formal languages and automata. They are introduced to the Turing machine and complexity classes P and NP.
 Requirements:

Knowledge of basic data structures and computer programming.
 Syllabus of lectures:

1. Basic notions, Chomsky hierarchy.
2. Deterministic and nondeterministic finite automata.
3. Operations on automata.
4. Regular expressions.
5. Conversions between regular grammars, regular expressions, and finite automata.
6. Properties of regular languages.
7. Contextfree grammars.
8. Pushdown automata. Parsing.
9. Translation grammars and transducers.
10. Contextsensitive, recursively enumerable and recursive languages. Turing machine.
11. Time complexity, classes P and NP.
12. Program and circuit implementation of finite automata.
13. Finite automaton as a lexical analyzer.
 Syllabus of tutorials:

1. Implementation of FA.
2. Examples of formal languages. Intuitive considerations of grammars for given languages. Estimation of the classification of a given language in Chomsky hierarchy.
3. Intuitive creation of finite automata (DFA, NFA, with epsilon transitions) for a given langauage.
4. Transformations and compositions of FA.
5. FA with output function and its implementation.
6. Conversions of grammars to FA and vice versa.
7. Considerations, modifications and transformations of regular expressions.
8. Use of regular expressions for text processing tasks (e.g. sh, grep, sed, perl).
9. Creation and implementation of lexical analyzers.
10. Classification of languages.
11. Examples of contextfree languages, creation of pushdown automata.
12. Examples of deterministic parsing of contextfree languages (e.g. LL, yacc, bison).
13. Examples of contextsensitive and recursively enumerable languages, creation of grammars, creation of Turing machines.
 Study Objective:

The module introduces students to finite automata, regular expressions, grammars, and translation finite automata, with an emphasis on their practical use. Furthermore, the module introduces students to the class of contextfree languages, basic use of pushdown automata, as well as the classification of languages.
 Study materials:

1. Sipser M. : Introduction to the Theory of Computation. Cengage Learning Custom Publishing, 2020. ISBN 9780357670583.
2. Hopcroft J.E., Motwani R., Ullman J. D. : Introduction to Automata Theory, Languages, and Computation, 3rd Edition. Pearson, 2008. ISBN 9788131720479.
3. Kozen D. C. : Automata and Computability. Springer, 1997. ISBN 9780387949079.
4. Šestáková E.: Automaty a gramatiky: Sbírka řešených příkladů, ČVUT 2017, ISBN 9788001063064
5. Šestáková E.: Automata and Grammars, A Collection of exercises and Solutions, ČVUT, 2018, ISBN 9788001064627
 Note:
 Further information:
 https://courses.fit.cvut.cz/BIAAG/
 Timetable for winter semester 2024/2025:
 Timetable is not available yet
 Timetable for summer semester 2024/2025:
 Timetable is not available yet
 The course is a part of the following study plans:

 Bachelor specialization Information Security, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Management Informatics, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Computer Graphics, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Computer Engineering, in Czech, 2021 (compulsory course in the program)
 Bachelor program, unspecified specialization, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Web Engineering, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Artificial Intelligence, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Computer Science, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Software Engineering, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Computer Systems and Virtualization, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Computer Networks and Internet, in Czech, 2021 (compulsory course in the program)
 Bachelor specialization Information Security, in Czech, 2024 (compulsory course in the program)
 Bachelor program, unspecified specialization, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Management Informatics, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Computer Graphics, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Software Engineering, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Web Engineering, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Computer Networks and Internet, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Computer Engineering, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Computer Systems and Virtualization, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Artificial Intelligence, in Czech, 2024 (compulsory course in the program)
 Bachelor specialization Computer Science, in Czech, 20214 (compulsory course in the program)