Algo0 - Algorithms How data is processed 1 © Popescu 2012...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Algorithms How data is processed 1 © Popescu 2012 Algorithm definitions • Effective method expressed as a finite list of well-defined instructions — Google • A set of rules to be followed in calculations or other problem-solving operations, especially by a computer — Wikipedia • A step-by-step procedure for s olving a problem or accomplishing some end especially by a computer— M Webster 2 Algorithm specification • Plain English (prose) 3 Apple pie algorithm 4 www.momswhothink.com Ingredients: Pastry for 2 crusts (recipe below) 8 cups sliced, peeled assorted baking apples - about 3 lbs. (Granny Smith, Cortland, Jonathan) 2 Tablespoons lemon juice 3/4 cup white sugar 1/4 cup brown sugar 1/4 cup all-purpose flour 1 teaspoon ground cinnamon 1/4 teaspoon ground nutmeg 2 Tablespoons butter 1 egg yolk 1 Tablespoon milk Directions: 1. In a large bowl, toss the sliced apples with lemon juice. 2. Combine sugars, flour, cinnamon and nutmeg; add to apples and toss well to coat. 3. Fill pastry lined 9 inch pie pan with apple mixture. Dot with butter. 4. Place second crust on top of pie filling, cut slits in top of crust to vent. Seal the edges of the crust with a fork or by hand. 5. In a small bowl, beat the egg yolk and milk. Brush mixture over top crust. 6. Bake at 425 degrees F for 15 minutes. 7. Reduce heat to 350 degrees F and bake 40-45 minutes more or until crust is golden and filling is bubbly. Apple pie algorithm 5 www.momswhothink.com Ingredients: Pastry for 2 crusts (recipe below) 8 cups sliced, peeled assorted baking apples - about 3 lbs. (Granny Smith, Cortland, Jonathan) 2 Tablespoons lemon juice 3/4 cup white sugar 1/4 cup brown sugar 1/4 cup all-purpose flour 1 teaspoon ground cinnamon 1/4 teaspoon ground nutmeg 2 Tablespoons butter 1 egg yolk 1 Tablespoon milk Directions: 1. In a large bowl, toss the sliced apples with lemon juice. 2. Combine sugars, flour, cinnamon and nutmeg; add to apples and toss well to coat. 3. Fill pastry lined 9 inch pie pan with apple mixture. Dot with butter. 4. Place second crust on top of pie filling, cut slits in top of crust to vent. Seal the edges of the crust with a fork or by hand. 5. In a small bowl, beat the egg yolk and milk. Brush mixture over top crust. 6. Bake at 425 degrees F for 15 minutes. 7. Reduce heat to 350 degrees F and bake 40-45 minutes more or until crust is golden and filling is bubbly. Input Apple pie algorithm 6 www.momswhothink.com Ingredients: Pastry for 2 crusts (recipe below) 8 cups sliced, peeled assorted baking apples - about 3 lbs. (Granny Smith, Cortland, Jonathan) 2 Tablespoons lemon juice 3/4 cup white sugar 1/4 cup brown sugar 1/4 cup all-purpose flour 1 teaspoon ground cinnamon 1/4 teaspoon ground nutmeg 2 Tablespoons butter 1 egg yolk 1 Tablespoon milk Directions: 1. In a large bowl, toss the sliced apples with lemon juice....
View Full Document

This note was uploaded on 02/27/2012 for the course CS 177 taught by Professor Staff during the Spring '08 term at Purdue.

Page1 / 31

Algo0 - Algorithms How data is processed 1 © Popescu 2012...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online