Listen

Description

(The below text version of the notes is for search purposes and convenience. See the PDF version for proper formatting such as bold, italics, etc., and graphics where applicable. Copyright: 2022 Retraice, Inc.)


Re68: TABLE-DRIVEN-AGENT Part 4
(AIMA4e p. 48)

retraice.com

Computer, do the math.

Air date: Friday, 2nd Dec. 2022, 11:00 PM Eastern/US.

Amendments to Re67

I still didn't say it clearly enough: A sequence is an ordered list of elements; a series is a sum of a sequence. Both can be either finite or infinite.^1

And see Retraice (2022/12/01) for more clear notes on how the last term in our table sequence is an exponential function.

Warnings about Python

Python is a modern, fast-evolving language and ecosystem. This means you might write code that works today, but won't work next year because underlying dependencies have changed. Use pyenv to control your Python version, and use venv (Python built-in) or pipenv or virtualenv to control your Python packages. (Docker is beyond the scope of this segment.)
* https://github.com/pyenv/pyenv
* https://docs.python.org/3/library/venv.html
* https://pipenv.pypa.io/en/latest/ (alternative to venv)
* https://virtualenv.pypa.io/en/latest/ (alternative to venv)
* https://en.wikipedia.org/wiki/Docker_(software) (a more production-oriented, general solution)

Using Python to do the sum

We're focusing on the math and code of AIMA4e.^2 Today we write Python code to do the arithmetic of our mathematical series that tells us how many entries in a look-up table are required for a TABLE-DRIVEN-AGENT, depending on the number of things it can perceive, and how many moments of perception it will have. The table gets big very, very quickly.
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

PIC
The algebra and arithmetic (see Retraice (2022/12/01)), and a Python for-loop for calculating the number of entries needed in our lookup table. The code is at: https://github.com/retraice/ReAIMA4e
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

References

Larson, R., Hostetler, R. P., & Edwards, B. H. (2005). College Algebra: A Graphing Approach. Houghton Mifflin, 4th ed. ISBN: 0618394370. Searches:
https://www.amazon.com/s?k=0618394370
https://www.google.com/search?q=isbn+0618394370
https://lccn.loc.gov/00104769

Retraice (2022/12/01). Re67: TABLE-DRIVEN-AGENT Part 3 (AIMA4e p. 48). retraice.com.
https://www.retraice.com/segments/re67Retrieved 2nd Dec. 2022.

Russell, S., & Norvig, P. (2020). Artificial Intelligence: A Modern Approach. Pearson, 4th ed. ISBN: 978-0134610993. Searches:
https://www.amazon.com/s?k=978-0134610993
https://www.google.com/search?q=isbn+978-0134610993
https://lccn.loc.gov/2019047498

Footnotes

^1 Larson et al. (2005) pp. 496-501.

^2 Russell & Norvig (2020) p. 48