6.001 Tutorial 2

Gerald Dalley
14/15 February 2005
Web location: http://people.csail.mit.edu/~dalleyg/6.001/tutorial2.html

Lambdas Review

Substitution Model

Recursion and Iteration

Problems

General Problems

Biggie Size

Suppose we're designing an point-of-sale and order-tracking system for Wendy's. Luckily the Über-Qwuick drive through supports only 4 options: Classic Single Combo (hamburger with one patty), Classic Double With Cheese Combo (2 patties), and Classic Triple with Cheese Combo (3 patties), Avant-Garde Quadruple with Guacamole Combo (4 patties). We shall encode these combos as 1, 2, 3, and 4 respectively. Each meal can be biggie-sized to acquire a larger box of fries and drink. A biggie-sized combo is represented by 5, 6, 7, and 8 respectively.

6.001 and MIT do not endorse and are not affiliated with Wendy's in any way. They merely capitalize on the pleasant way "biggie-size" rolls off the tongue.

 

Last updated: 2008-01-25 09:23:57 -0500