Artificial
Intelligence

Fall 2011
course
navigation

sep 13

aside

We also discussed closures and I've attached a python example closure.py. In that file, the question you need to ask is where the memory for the variable b is when the functions f() and g() run ... after functFact (function factory) has finished. The answer is that there are two instances of b, neither of which has been garbage collected, because they're in the closure of lambda function which is returned.

homework

Discuss the homework, and the vacuum agent in both python and lisp, and the lisp language.
More time?
There are several pieces to these 1st few chapters: the AI concepts, the coding mechanics (in whatever language), and the API/environment harness to set up the AI concepts as described. The AIMA code is a start ... but does take some time to get your teeth into.
Let's talk about what can be most helpful this week. Perhaps working together in some groups?

textbook

Terminology to understand from the textbook chap 2
Ideas from chap 3 : search

Other perhaps interesting lisp tidbits this week :
http://cs.marlboro.edu/ courses/ fall2011/ai/ notes/ sep_13
last modified Tuesday September 13 2011 1:13 pm EDT

attachments [paper clip]

     name last modified size
   closure.py Sep 13 2011 1:11 pm 182B    object-examples.lisp Sep 12 2011 11:36 pm 2.86kB