flâneur — a map of the web's best reading

Recipes | 6.101 Fall 2022

py.mit.edu · 19 words · saved by 1 readers

Please also review the academic integrity policies before continuing. In particular, note that you are not allowed to use any code other than that which you have written yourself, including code from online sources. The goal of this lab is to begin to familiarize you with recursion and different ways it can be applied. Your goal is to build a tool that can keep track of a set of recipes, each of which is comprised of a number of different ingredients. The challenge is that some of the ingredients for your recipes may themselves be made up of multiple ingredients! Furthermore, those ingredients might be made up of other ingredients, and so on. For this type of nested data, recursion gives us an elegant way to design algorithms prepared for arbitrary nesting levels. For example, if we are trying to figure out if a particular recipe can be made, we can first recursively check if the component ingredients can be made and then decide for the recipe in question. Note that a little planning w

Recipes | 6.101 Fall 2022 Recipes this page (from a previous semester) is no longer accessible, except for staff

Explore this link on the map →

related reading