Lecture 05
Section outline
-
October 10th, Friday (10:30-12:30)
Finite state automata
- Theorem: Exponential growth of the set of states, worst case example (statement only, no proof)
- Partial DFA
- Example on the subset construction for NFA
Exercises
- Let \(\#_a(w)\) be the number of occurrences of symbol \(a\) in string \(w\). Given two strings \(x\) and \(w\) over some alphabet \(\Sigma\), \(x\) is a prefix of \(w\) if we can write \(w = xv\) for some \(v \in \Sigma^\ast\). Define a DFA that accepts the language \( L = \{ w \; | \; w \in \{a,b\}^\ast, \) for every prefix \(x\) of \(w\) we have \( \#_b(x) \leq \#_a(x) \leq \#_b(x)+2 \} \) (exercise 2, 3rd question, final exam of 2019/09/13)
References
- Hopcroft et al., chapter 2