Finish Procedures; Logic Programming




CS152

Chris Pollett

May 11, 2009

Outline

Dynamic Memory Management

More Garbage Collection

Quiz

Access chaining is used in activation records for which of the following?

  1. To allow nested functions whose lifetime ends with that of the parent function.
  2. To allow recursive function definitions.
  3. To allow nested functions to persists even after the parent function has completed.

One Last Language Paradigm...

Logic and Logic Programs

More First-Order Logic

Rules of Inference

Horn Clauses

Prolog

Resolution, and Unification

Prolog