Philosophy of Computer Science

Humorous Algorithms

Last Update: 31 January 2007

Note: NEW or UPDATED material is highlighted

Warning: Some of these images are rather large.

  1. A real recipe

  2. A recipe for water
  3. A simple algorithm for computing your birthdate
  4. "Dilbert": a simple algorithm
  5. "Motley's Crew": a simple procedure
  6. "Willy 'n Ethel": a recursive algorithm (with base case = mustard)???
  7. "Shoe": a named procedure
  8. "Hagar the Horrible": an incomplete algorithm
  9. "Nancy": an ambiguous instruction
  10. "Shoe": another ambiguous instruction
  11. A real-life procedure with an extremely ambiguous (because highly context-dependent) first statement
  12. "Nancy": a procedure for learning to ride a bike, with an infinite loop
  13. "Baby Blues": algorithm for a snowman

Copyright © 2004-2007 by William J. Rapaport (
file: 584/S07/alg-cartoons-20070131.html