Professional Documents
Culture Documents
CS 441/541
Artificial Intelligence
Winter 2015
!
Slides by Kendall Stewart
References
• Most of the material in these slides comes from the
book “AI Algorithms, Data Structures, and Idioms in
Prolog, Lisp, and Java” by George F. Luger and
William A. Stubblefield (not our course textbook,
but same author)
๏ 100
๏ “hello”
๏ (1 2 3 4)
๏ hyphenated-name
๏ *some-global*
๏ (a (b c) (d (e f)))
๏ nil
๏ ()
๏ (* 3 (/ 1 2))
Evaluation
• s-expressions are evaluated as follows:
4. Apply the list indexing function to the number one and the list
(alice bob mallory)