CS 311 Language Translation and Automata (4 units)Introduction to language translation. Regular expressions. Finite automata. Lexical analysis. Context-free grammars and push down automata. Syntax analysis. 4 lectures/problem-solving. Prerequisites: CS241 and CS264 with grades of C or better, or consent of instructor. |
Prof. John Fisher
jrfisher@csupomona.edu
Computer Science Department
California State Polytechnic University
Pomona, California, USA
RELOAD this page EACH VISIT in order to view recent updates ...
| Week | Mon | Wed |
|---|---|---|
| Sep. 24 | Sep. 26 | |
| Oct. 1 | Oct. 3 | |
| Oct. 8 | Oct. 10 Quiz1 |
|
| Oct. 15 | Oct. 17 Quiz2 |
|
| Oct. 22 | Oct. 24 Quiz3 |
|
| Oct. 29 | Oct. 31 Quiz4 |
|
| Nov. 5 | Nov. 7 Quiz5 |
|
| Holiday | Nov. 14 NO Quiz |
|
| Nov. 19 | Nov. 21 Quiz6 |
|
| Nov. 26 | Nov. 28 Quiz7 |
|
| FINAL EXAM | :-) |
A. Reading assignment: §1.5 of the Martin textbook. Try the following homework problems: 1.38 through 1.47 (on pgs. 37 and 38).
B. Read §3.2 of the Martin textbook. More of Chapter 3 next week.
C. Locate the "regex" package in the Java documentation. Quickly read the class descriptions for the classes in this package. The package has classes and methods for specifying regular expressions and matching them against strings (which is content of Chapter 3 of Martin text). More about this next week.
D. Click on the ANTLR link above and browse around there. Try to anticipate what this is about, even though first reading may be somewhat obscure (no matter ;-).
Wednesday: Quiz#2 -- one problem regarding "distinguishable strings", one
problem converting NFA to DFA.
Converting NFA-Λ to NFA. Homework problems: #4.28, 4.29.
Motivation for Kleene's theorem.
Wednesday: Quiz#3. Two problems: a) Λ-elimination {one of #4.29(a-e)}, b) another NFA-->DFA
using subset construction.
Kleene's Theorem (part 2), Problem #4.38.
Wednesday: Quiz#4 includes one problem like #4.36, and one problem like #4.38.
Lecture (and examples) from §6.1, 6.2.
Wednesday: Quiz#5, one problem like #6.1(a-h), one problem FA <--> regular grammar.
Lecture on ambiguity, ANTLR demo.
Wednesday: Hand back Quiz#5, discussion.
NO QUIZ TODAY!
Lecture on §6.6.
Nullable variables demo (regarding Example 6.14, p.233).
Unit productions demo (regarding Example 6.15, p.237).
Chomsky Normal Form demo (regarding Example 6.16, p.239).
Homework problems: #6.22, 6.26, 6.32, 6.34, 6.35, 6.39
Wednesday: Quiz#6 (one problem like 6.26, one like 6.39)
More on PDAs.
Quiz#7 takehome - due on Wednesday: #7.5.a (in textbook): Find a PDA for non-palindromes over {a,b}. Explain how your PDA works. Show your PDA's behavior on abbab (accept) and abbba (cannot accept) and abba (cannot accept).
Wednesday: Quiz#7 takehome due. Lecture: Some topics from Chapter 8. Review for final.
Here is a FINAL STUDY TEMPLATE GUIDE ...