Assignment 1
CSE 415: Introduction to Artificial Intelligence
The University of Washington, Seattle, Winter 2004
The reading for this assignment is Chapters 1 and 2. in The Elements of Artificial Intelligence Using Common Lisp.
Part A. Do exercises 1 through 4 (on page 87 of the printed version, pages 82-83 of the online version in Chapter 2). When doing exercise 4, you may assume that the argument list does not have any sublists, and so a one-way recursion will suffice.
Turn in Part A on Monday, Jan. 12 at the beginning of class. This is should be a printout showing a session with Common Lisp. You can use a combination of input and output together with comment lines (beginning with a semicolon) to show that you have verified each of your answers on the computer.
 
Part B: Write Lisp function definitions for any two of the following requirements.
1. (add-trios '(2 5 1.5 100 3 8 1 1 1))  ->  (8.5 111 3)

2. (double-nums '(1 fun 2 words))  ->  (2 FUN 4 WORDS)

3. (consonants-to-x '(r i o t e r)) ->  (X I O X E X)

4. (nest-numbers '(a b 2 3))       ->  (A B (2) (3))

Part B is due Wednesday, Jan 14, at the beginning of class. Turn in a printout similar to that for part A.