Problem Solving 101 DEFN An algorithm is a group of instructions (often expressed informally) for performing some task. DEFN An algorithm is a group of.

Slides:



Advertisements
Similar presentations
Chocolate Chip Cookies. Ingredients: ½ cup butter (1 stick) 1/3 c. brown sugar (packed) 1/3 c. granulated sugar (white) 1 egg 1/ 2 t. vanilla 1 cup +
Advertisements

Introduction to Programming
Michelle Koch For other treats around the holidays, visit:
By KIANA,SABRINA,EDGAR Decker Healthy Eating Project.
Savoury Dishes: “Toad In The Hole” Sausages are cooked in a light butter which rises to a crisp, brown crust, making this a tasty and substantial supper.
Baking Chocolate Chip Cookies Ms. Davis Life Skill Class July 11th, 2004.
White Chocolate Orange Cookies. 1 cup butter softened 1/2 cup white sugar 1/2 cup brown sugar 1 egg 1 tablespoon orange zest 2 1/4 cups all-purpose flour.
PEC Baking Fundraiser Mugg’s Baking with Fractions.
Baking Cookies Recipe Mixing Baking Final Product.
Cake Recipe. Ingredients Utensils 1 st Step Pre-Heat oven to 180 degrees Celsius.
Streptococcus pneumoniae. Fig. 6.3b Avery, McCarty and MacLoed, 1944.
INGREDIENTS Water cream orange blossom water butter salt eggs vanilla sugar flour yolk sugar.
Welcome to Arista’S Baking!. Pick any Tasty Dessert to get started.
How to Make Chocolate Chip Cookies By Sara Hokkala.
 Chapter 1: Why You Should Cook  Chapter 2: What’s Cooking  Chapter 3: Cooking VS. Crafting  Bonus Chapter: One Recipe  Chapter 4: Supplies You Will.
1.02 I Preparation Tasks List 11.02I Listing Preparation Tasks.
Baking Cookies English Club eats chocolate chip cookies!
Problem Solving 101 DEFN An algorithm is a group of instructions (often expressed informally) for performing some task. DEFN An algorithm is a group of.
RECIPE. NAME: Three chocolates cake. INGREDIENTS 3 cups 1 1/2 tsp 3/4 tsp 1 1/2 tsp 2 2/3 cups 1 cup + 2 Tb 1 cup + 2 Tb 1 cup + 2 Tb 5 large or 4 Jumbo.
Computer Science & Engineering An Introduction (and Some Advanced Concepts Too!) Prof. Paul Sivilotti Dept. of Computer Science & Engineering The Ohio.
1 Sara offered to bring 200 cookies to a block party. She plans to take the very popular Nestle Toll House Chocolate Chip cookies. Sara has only 7 ½ cups.
1.02 C Work Plans 1 The secret for success!. Why use a work plan? Helps meal preparation run smoothly Implement these steps: 1.02CWork Plans2 Steps 1-
The Algorithmic Model. What is Computer Science What is Programming Algorithms –Definition –Properties of Good Algorithms –Describing Algorithms –Examples.
Lucky Cookies Thu Ha Nguyen My Nguyen Tuyen Nguyen Chaz Nguyen Van Tran.
How to make “chocolate chip cookies” By Class Ping Nancy 11.
Computer Science An Introduction and Some Advanced Concepts Too! Prof. Paul Sivilotti Dept. of Computer & Info. Science The Ohio State University
FROM SCRATCH UTENSILS NEEDED Original recipe makes 1 - 9x13 inch cake 9X13 Dish Pan Large Bowl.
Cookies !. Ingredients: 3/4 cup granulated sugar 3/4 cup packed brown sugar 1 cup butter or margarine, softened 1 teaspoon vanilla 1 egg 2 cups Gold Medal.
What you’ll need 2 ½ cups of all – purpose flour 1 teaspoon baking soda 1/2 teaspoon of salt 1 cup granulated sugar 2 eggs.
Functional Text. What is “functional text?” Instruction manuals Recipes Lists of facts (ex: nutrition facts) Table of contents Index Directions That is.
How to make chocolate chip cookies By Rose Savage.
Chocolate Cupcakes. What you need: 4½ dl flour 1 dl cocoa 2ts baking powder ½ teaspoon salt 200 g butter 3 cup sugar 2 eggs 2 dl milk 30 g Coconut 150.
How to Make Chocolate Chip Cookies Caity Jozwiak Period 6.
Chocolate Chip Cookie Recipe By: Allison Lange quart of butter -> Cups.
+ Chocolate Chip Cookies Diamond Britton. + Recipe (2 dozen) 1 teaspoon baking soda 1 teaspoon vanilla extract 1 large egg 1 cup flour 1 teaspoon salt.
Introduction to design and analysis algorithm
How to Make Chocolate Chip Cookies
Chocolate Chip Cookies Measurements. Measure Smarter 18 (v) oz. all-purpose flour 1/3 T baking soda 3/4 t & 2 pinches salt 2 sticks butter, softened 12.
How to Make Chocolate Chip Cookies Fast, Easy, and Yummy Original Author Unknown Modified By: CTAE Resource Network.
1 Introduction to design and analysis algorithm. 2.
CHOCOLATE CAKE by: Sean and Lorenzo. CHOCOLATE CAKE Chocolate Cake Ingredients: 3/4 cups butter or margarine, softened. 3 eggs. 2 cups sugar. 2 cups flour.
Kitchen Measuring Equipment. Measuring 2 Categories of Measuring Equipment Liquid Dry.
BANANA PANCAKES At a Glance Prep Time : 20 min Cook Time : 2 min Course : Breakfast, Brunch Type of Prep : Campfire, Fry, Grill Occasion : Birthdays, Christmas,
Italy. Capitol City is Rome Venice Pisa Italy.
Sour Cream Pound Cake. 2 cups butter, softened 3 cups white sugar 6 eggs 1 teaspoon vanilla extract.
The cookies. ingredients for cookies 250 g butter g chocolate chips - 2 eggs g flour g of sugar g of brown sugar - 1 teaspoon.
Pierre Kerboriou Chocolate Fairy Cake Less than 30min preparation time.
Individual Chocolate Layer Cakes
Public Library Programming Observation & Reflection
Recipe Notes.
Cookies.
CHOCOLATE Method Sugar, vanilla sugar and water are put in a cracker to boil: Cool the syrup with butter to work with it and pour over homogenized powdered.
How can we do cookies ?. How can we do cookies ?
Problem Solving - Divide & Conquer
Chocolate Profiteroles 75g. plain flour. pinch of salt 50g
Soft Pretzels Yield: 12.

Recipes.
Streptococcus pneumoniae
Problem Solving - Divide & Conquer
Maple Peanut Butter Thumbprint Cookies
Experimental Plan? Who needs a plan anyway??.
Chocolate Chip Cookies
Problem Solving - Divide & Conquer
American Muffins Ingredients: Method: Equipment:
Let’s make Cookies!.
Birthday cake BABY MOMO.
Fruit Pizza Day 1 1/3 c. brown sugar 1 & 1/3 c. flour
Pineapple upside down pudding
Fudgy Chocolate Brownies Recipe
Presentation transcript:

Problem Solving 101 DEFN An algorithm is a group of instructions (often expressed informally) for performing some task. DEFN An algorithm is a group of instructions (often expressed informally) for performing some task. example 1)Preheat oven to 350° F (175° C). 2)Cream together butter (1c.), sugar (1c.), brown sugar (1c.). Beat in 2 eggs, then stir in vanilla (2t.). Dissolve 1t. of baking soda in hot water and add to mixture. Stir in salt (1/2t.), flour (3c.), chocolate chips (2c.), and chopped walnuts (1c.). 3)Bake in oven for 10 min. until edges are nicely browned another 1)From 16th St. walk straight east on State St. for ten blocks 2)Continuing, State St. turns to a northeasterly direction just before 5th Ave. Continue in this direction for three blocks after 5th Ave. 3)Turn left onto 2nd St. and walk south east for just under three blocks. The La Crosse Center is on your right.

Problem Solving 101 An algorithm poses a solution to a problem, but how is this solution discovered? Two basic approaches are... Step #1 - Recognize your limitations!

Divide and Conquer Basic approach: Divide a problem into smaller subproblems then solve (conquer) the subproblems. Example: outlining a theme “How I Spent Summer Vacation” I. What I did in June. II. What I did in July. III. What I did in August. A. the plane flight from La Crosse to Wuhan, China B. the initial meeting with students and faculty C. Chinese living arrangements A. a typical day in the life of a professor in China B. tour southeast Asia before returning to the U.S. A. the flight back to La Crosse B. a visit to the daughter in Connecticut 1. Guillin, China 2. Vietnam 3. Cambodia 4. Thailand

Top-down Design Successively decompose algorithms into sub-algorithms and sub-algorithms into sub-sub-algorithms. Example: write a graphics program to draw the following image using lines, rectangles, and ovals

Design by Prototype Software managers/customers like to see progress in software design. A second approach to software design is to use successive prototypes. A prototype is ___________________. Successive prototyping is a staged design process moving from prototype to ever more capable prototype. Successive prototyping is another form of divide and conquer.

Binary Search Binary search is a classic divide and conquer algorithm. Suppose you are given an alphabetized stack of 1,000 transcripts. What is the most efficient way to look for your own transcript? Example: linear search algorithm 1) Examine the top transcript in the stack and remove it. 2) Repeat Step 1 until your transcript is found or stack is empty. How many transcripts do you expect to examine... if your transcript is not in the stack?... if your transcript is in the stack?

Greedy Algorithms Not every algorithm is a divide and conquer style. A greedy algorithm is any algorithm based on _____________________.

...service first messages first messagesizetime sent A2 MB 0 B10 MB 1 C2 MB 2 D3 MB 4 E 5 MB 6 Example collection of five messages: Assume that the capacity of the network is 1 MB/sec A B C D E first come, first served algorithm total wait time = = 23 sec. average wait time = 23/5 = 4.6 sec. median wait time = 10 sec.

service shorter messages first messagesizetime sent A2 MB 0 B10 MB 1 C2 MB 2 D3 MB 4 E 5 MB 6 Example collection of five messages: Assume that the capacity of the network is 1 MB/sec. A B C D E total wait time = = 14 sec. average wait time = 14/5 = 2.8 sec. median wait time = 2 sec. greedy algorithm