The Algorithm of Cooking