Tom Kelliher, CS 102
Nov. 29, 2006
Written quiz Friday.
No reading, no online quiz.
JavaScript lab.
Artificial Intelligence.
An algorithm is a set of simple steps for accomplishing something. For example, a computation.
Here is an example for determining if any number in a list is negative.
I am going to give you a series of numbers, one at at time. When I am finished, I will say ``End.'' If any of the numbers is negative, you should say, ``Yes, halt.'' If I say ``End,'' you should reply, ``No, halt.''This algorithm will work for any finite list of numbers.
Working as a class, solve the following problems.