1 / 64

Erik Jonsson School of Engineering and Computer Science

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.

jersey
Download Presentation

Erik Jonsson School of Engineering and Computer Science

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Context-free Languages Chapter Three

  3. Palindromes

  4. Chomsky Normal Form

  5. Other Simplifications Useful variables and productions Left-recursion

  6. Useless Example

  7. Left-recursion 3-04-14

  8. Pushdown Automata Many similar definitions

  9. STACK

  10. 4. Cohen PDA

  11. Odd Palindrome

  12. Even Palindrome

  13. CFG » PDA

  14. PUMPING LEMMA Context-Free

  15. NOTE: CFLs are not closed under intersection (or complement)!

  16. Martin, P. 218; H&U, P. 115

  17. I guess this is really Homework 12

  18. Exactly like the regular problem!

  19. CS 341 – UT-Austin

  20. CS 341 – UT-Austin

  21. Informal Verbal PDAs

  22. Read and push a’s onto stack if any; read and ignore b’s if any; read and match c’s with stack exactly.

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

  24. For each a read, non-deterministically push ONE or TWO a’s on the stack; then match b’s read exactly with stack.

  25. Ambiguity Dangling ELSE Problem

More Related