Philosophy of Computer Science
Last Update: 31 January 2007
material is highlighted
Warning: Some of these images are rather large.
A real recipe
- Considered as an algorithm, what's wrong with it?
- Could you translate it into your favorite programming
language (e.g., Java, Lisp, etc.)?
A recipe for water
A simple algorithm for computing your birthdate
"Dilbert": a simple algorithm
"Motley's Crew": a simple procedure
"Willy 'n Ethel": a recursive algorithm
(with base case = mustard)???
"Shoe": a named procedure
"Hagar the Horrible": an incomplete algorithm
"Nancy": an ambiguous instruction
"Shoe": another ambiguous instruction
A real-life procedure with an extremely
ambiguous (because highly context-dependent) first statement
"Nancy": a procedure for learning to ride
a bike, with an infinite loop
algorithm for a snowman
Copyright © 2004-2007 by
William J. Rapaport