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.
- See the code/vacuum folder for my examples of working with the AIMA python and lisp code.
- See the attached lisp for examples of objects, methods, structs in lisp.
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
- agent, agent function/program, architecture
- environment (or "task environment")
- percept, action
- performance measure
- PEAS : Performance, Environment, Actuators, Sensors
- (deterministic, stochastic), (continuous, discrete), (episodic, sequential)
- simple reflex, model-based reflex, goal-based, utility-based
Ideas from chap 3 : search
- breadth-first
- iterative deepening
- depth-first
- bidirectional
- heuristic
- 8-puzzle (Sterling Blake did his M'boro plan on learning in this sytem, years ago.)
Other perhaps interesting lisp tidbits this week :