(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: 2023 Retraice, Inc.)
Re67: TABLE-DRIVEN-AGENT Part 3 (AIMA4e p. 48)
retraice.com
The mathematical fate of TABLE-DRIVEN-AGENT.
Air date: Thursday, 1st Dec. 2022, 11:00 PM Eastern/US.
The number of entries our table would need ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PIC The pseudocode, Python, and table from Re65 (Retraice (2022/11/29)) and Re66 (Retraice (2022/11/30)). ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
T t S |P | t=1
An algebraic summation expression given by AIMA4e^1 that represents the number of entries we'd need in any complete look-up table for a TABLE-DRIVEN-AGENT. It represents the finite series (sum of a finite sequence) equal to the number of table entries we would need for environments of | P | possible percepts, T total moments of perception (percept experiences), and an agent that considers its percept history and returns an action in response to each sequential percept.
IndexofSummation cawnheberehere,orelse- UpperLimitofSummation Term(s) of T he sum InLodexwerLofimitSuofmmSuamtiomantio =n of Sequence
An English-ified version of the algebra.^2
the num -mault nuiplmiedberby of it tisemelfs ber ofeqnuuamlbe toro tfhe pe trcotaeptls percepts insothfaear.gent'slifetime T he sum ...thetoagtheentotwtailllnr�umberoflifetimepercepts from 1... set of all possible percepts
An English-ified version of our specific application of the expression.
|P |1+ |P |2+ · · · + |P|T
An algebraic expression that represents the expanded form of the finite series (sum of the finite sequence).
21+ 22+ 23+24 =30
The finite series with no algebra, which describes our TABLE-DRIVEN-AGENT with a four-percept lifetime and two possible percepts (`red' and `green'). I.e. our look-up table, to be complete, would need 30 entries to cover all the percept histories the agent might experience at each moment of perception.
1. action for: red
2. action for: green
3. action for: red, red
4. action for: red, green
5. action for: green, red
6. action for: green, green
...
30. action for: green, green, green, green
An abbreviated form of the complete table.
The last term in our series, | P |^T , is the definition of an exponential function. I.e.: f(T) = constant^T where constant > 0, constant!=1, and T can be any real number.^3 x f (x) = 2 = b ig fo r a ll value s a bov e, say , x = 14, f(x) ~= 16, 000
...An exponential function with base 2. Every new term (percept experience) adds double the number of entries to our dictionary as the previous term did. If we had more than two percepts (`red' and `green' and, say, `blue'), it would add triple the previous term. 3^14 = 4,782,969.
Amendments and corrections: `AI code' definition
I've been saying that AI code is programming steps that take an imprecise result and improve it, while classical code is programming steps that yield a precise result. Unless we equate `AI' and `machine learning algorithms', this is not a defensible definition. A better definition of AI code is something like:
*CORRECTION*: The `agent function' is not `the smart part' of the agent program. "The agent function is an abstract mathematical description.... that maps any percept sequence to an action"; "the agent program is a concrete implementation [of the agent function], running within some physical system." (100!black!//Russell & Norvig (2020) pp. 37-37) Function: math. Program: code. [Correction at Jan 2nd, 2023.]
"In AI code, the program steps include an element, the implemented implement the agent function, that which makes the program output dependent upon percepts from an environment and seem to reflect intelligence."^4 It is a somewhat circular definition, dependent on the difficult-to-define `intelligence' itself.
_
References
Kissinger, H. A., Schmidt, E., & Huttenlocher, D. (2021). The Age of AI. Little, Brown and Company. ISBN: 978-0316273800. Searches: https://www.amazon.com/s?k=9780316273800 https://www.google.com/search?q=isbn+9780316273800 https://lccn.loc.gov/2021943914
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/11/29). Re65: TABLE-DRIVEN-AGENT Part 1 (AIMA4e p. 48). retraice.com. https://www.retraice.com/segments/re65Retrieved 30th Nov. 2022.
Retraice (2022/11/30). Re66: TABLE-DRIVEN-AGENT Part 2 (AIMA4e p. 48). retraice.com. https://www.retraice.com/segments/re66Retrieved 1st 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 Russell & Norvig (2020) p. 48.
^2 Larson et al. (2005) pp. 500-501.
^3 Larson et al. (2005) p. 320.
^4 Cf. Kissinger et al. (2021) p. 58 and correction note in Retraice (2022/11/30).