BIE-AAG – Automata and Grammars
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, translation finite automata, construction and use of pushdown automata, hierarchy of formal languages, relationships between formal languages and automata. Knowledge acquired through the module is applicable in designs of algorithms for searching in text, data compression, simple parsing and translation, and design of digital circuits.
- Motivation to study formal languages. Basic notions (language, alphabet, grammar, automaton), Chomsky hierarchy.
- Nondeterministic and deterministic finite automata (NFA, DFA), NFA with epsilon transitions.
- Operations on automata (transformation to NFA without epsilon transitions, to DFA, minimization), intersection, union.
- Programming implementations of DFA and NFA, circuit implementations.
- Adding translation, Mealey, Moore, conversions.
- Operations on regular grammars, conversions to FA.
- Regular expressions, regular expression conversions, finite automata and regular grammars, Kleene theorem.
- Principles of use of regular expressions in UNIX (grep, egrep, perl, PHP, ...).
- Finite automaton as a lexical analyzer, lex/flex generators.
- Properties of regular languages (pumping lemma, Nerode theorem).
- Context-free languages, pushdown automaton.
- Parsing of context-free languages (nondeterministic versus deterministic).
- Context-sensitive and recursively enumerable languages, Turing machine.
- Implementation of FA.
- Examples of formal languages. Intuitive considerations of grammars for given languages. Estimation of the classification of a given language in Chomsky hierarchy.
- Intuitive creation of finite automata (DFA, NFA, with epsilon transitions) for a given langauage.
- Transformations and compositions of FA.
- FA with output function and its implementation.
- Conversions of grammars to FA and vice versa.
- Considerations, modifications and transformations of regular expressions.
- Use of regular expressions for text processing tasks (e.g. sh, grep, sed, perl).
- Creation and implementation of lexical analyzers.
- Classification of languages.
- Examples of context-free languages, creation of pushdown automata.
- Examples of deterministic parsing of context-free languages (e.g. LL, yacc, bison).
- Examples of context-sensitive and recursively enumerable languages, creation of grammars, creation of Turing machines.