Philosophy of Computer Science
Humorous Algorithms
Last Update: 11 June 2010
Note:
or
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
"Baby Blues": algorithm for a snowman
"Zits": how to put clean laundry in a room.
Jamieson, Wendell (2010),
"In the Event of a Strike, How to Open the Doors"
,
New York Times
(20 April): A15.
Copyright © 2004–2010 by
William J. Rapaport
(
rapaport@buffalo.edu
)
http://www.cse.buffalo.edu/~rapaport/584/alg-cartoons.html-20100611