Lisp Heap Question

CS 404: Solutions and Examples

Consider the following diagram showing a Lisp symbol table
and heap.
Please answer questions which follow.
- What is the value of
nargle
?
- What is the value of
fred
?
- Show
the diagram after the following operations are performed.
-
(setq morris (car morris))
-
(setq dilbert (cons (cdr (car fred)) nargle))
-
(setq fred (cdr fred))
- Show what portions of the heap have now become garbage.