4.1 Inexpressibility Flashcards

1
Q

How do we know there is a loop in the following run of a finite automata

A

Revisits same state twice (2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Given the following string with some run states highlighted in green, give examples of another string that could be accepted

A

We can imagine the automaton choosing to go around that loop any number of times as part of accepting a word (including zero times).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Given word aaaaba and knowing the automata contains 5 states, deduce another words that might be accepted.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the No Matched Parentheses Theorem

A

a = opening parenthesis or html tag and b is closing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to prove the No Matched Parentheses Theorem

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly