640 likes | 803 Views
Erik Jonsson School of Engineering and Computer Science. CS 4384 – 0 01. Automata Theory. http://www.utdallas.edu/~pervin. Tuesday: Context-Free Languages Chapter Three. Thursday 3-20-14. FEARLESS Engineering. Context-free Languages. Chapter Three. Palindromes. Chomsky Normal Form.
E N D
Erik Jonsson School of Engineering and Computer Science CS 4384– 001 Automata Theory http://www.utdallas.edu/~pervin Tuesday: Context-Free Languages Chapter Three Thursday3-20-14 FEARLESS Engineering
Context-free Languages Chapter Three
Other Simplifications Useful variables and productions Left-recursion
Left-recursion 3-04-14
Pushdown Automata Many similar definitions
PUMPING LEMMA Context-Free
NOTE: CFLs are not closed under intersection (or complement)!
Read and push a’s onto stack if any; read and ignore b’s if any; read and match c’s with stack exactly.
Read and push a’s onto the stack; read b’s and match them against the stack until empty; read any additional b’s and push them onto the stack; read and match c’s with stack exactly.
For each a read, non-deterministically push ONE or TWO a’s on the stack; then match b’s read exactly with stack.
Ambiguity Dangling ELSE Problem