| Midterm Study Guide |
Midterm format:
- 5 written problems, 20 points each
- 2 additional extra credit written problems, 10 points each
- Problem topics will include:
- OCaml programming
- User-defined types
- Unification
- Type derivation
- Regular expressions, NFAs and DFAs
- Context free grammars and ambiguities
- An information sheet will be included with the midterm; other than
that, it is a closed-notes exam.
Midterm topics:
- OCaml programming
- OCaml basics: first MP and earlier problems on second MP
- Patterns of recursion:
- tail recursion
- map
- fold_left, fold_right
- User-defined types: variant types like 'a option
- Type systems
- Basic type constructors:
- atomic types: unit, bool, int, float, string
- functions: 'a -> 'b
- lists: 'a list
- pairs: 'a * 'b
- Type derivation rules
- Unification
- Type inference
- Lexing and parsing
- Regular expressions, NFAs and DFAs
- Translating a regular expression to an NFA
- Translating an NFA to a DFA using the subset construction
- Derivatives of regular expressions will not be on the midterm.
- Context-free grammars
- Creating grammars
- Ambiguous grammars and disambiguation
- LL parsers
- LR parsers
|
|