4.1 Inexpressibility Flashcards
How do we know there is a loop in the following run of a finite automata
Revisits same state twice (2)
Given the following string with some run states highlighted in green, give examples of another string that could be accepted
We can imagine the automaton choosing to go around that loop any number of times as part of accepting a word (including zero times).
Given word aaaaba and knowing the automata contains 5 states, deduce another words that might be accepted.
There must be a loop - don’t know how many states for loop. Say p states. Initial state = 1, then first a = 2 … last contig a = 5
What is the No Matched Parentheses Theorem
a = opening parenthesis or html tag and b is closing.
How to prove the No Matched Parentheses Theorem
- Proof by contradiction
- Assume is a regular language / finite automata
- Assume k states
- Try to prove a^k b^k
- Show there is a loop
- Then show a^k+p b^k also works
- Violates the theorem