Test #3 Review Flashcards

1
Q

5 Examples of context-free grammar

A
  • a^n b^n
  • ww^R
  • a^n b^m c^m
  • has same # a’s and b’s
  • any regular expression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

5 Examples of non context-free grammar

A
  • a^n b^n c^n
  • ww
  • w has same # of a’s b’s and c’s
  • a^n b^m c^k n > m > k
How well did you know this?
1
Not at all
2
3
4
5
Perfectly