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
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