Algorithmic Thinking. Alison Pamment. On behalf of the course team (STFC/NERC:CEDA, NERC:NCAS, NERC:NCEO)

Similar documents
Algorithms. How data is processed. Popescu

WEEKEND KITCHEN RECIPE SHEET 7th January Herb crusted saucy salmon and asparagus ribbons

White oven bread loaf

1 What s your favourite type of cake? What ingredients do you need to make a cake? Make a list. 3 Listen, look and sing Let s go shopping!

1. Broccoli & Tomato Frittata. 2. Egg Muffins To-Go. Ingredients: Directions: Ingredients: Directions: Servings: 2 Proteins: 1.5 / Fats:.

1 handful of kale 1 frozen banana ½ cup of raspberries or blueberries 1 cup of coconut water

A Chocolate Dream Comes True. Copyright keikos-cake.com All Rights Reserved

Apple Brie Omelet. 2 eggs 2 tsp cream (or milk) salt & pepper, to taste 2 tbs brie cheese, diced

RECETTES DE PETIT-DÉJEUNER FACILES (EASY BREAKFAST RECIPES)

Directions: 1. Melt butter in your Gotham 10 1/4 Skillet on medium heat. Add onion and sauté until soft.

***Ingredients with * are not in the I cabinet, check your tray or the demo kitchen (#1)***

Diabetic Spinach and Cheese Omelets

Culinary Arts STAR Events Menu Options

Preparation. Ingredients

Coconut Flour Recipes

Banana Flax Pancakes TIPS:

MATHEMATICS HOME-WORK. CHRISTMAS π RECIPE

Fractions with Frosting

Adhesives Teaching Unit

Chocolate, Banana and tennis biscuit Icebox Cake

Bread rolls. Milk for glazing Additional ingredients optional; E.g. cheese, cooked bacon, ham, sesame seeds, poppy seeds.

President sets the agenda for laws that are important. Lead Chefs select categories for a healthy lunch. Congress writes the bills that may become law

Cinnamon Rolls with a Maple Cream Cheese Frosting

CHOCOLATE MOUSSE THIS WEEK S TASTY RECIPE SERVES 8

Roux Bot Home Cooker. UC Santa Cruz, Baskin Engineering Senior Design Project 2015

Oh She Glows. Adapted recipes from Meet The Coup Cooks Cookbook

Hello and thank for downloading my free 15 Healthy Weight Loss Recipes E book!

Shoe Kit Instruction

A Fork in the Trail by Laurie Ann March 2008

Shop for Healthy Groceries

Food Technology Year 8 Recipe Book

Wednesday 28 th November (Single lesson) Make homemade pasta Practice shaping pasta-either using the pasta machine or by hand.

About. 96% FEWER calories than sugar! ZERO G.I. Low carbs Tooth friendly Fructose free

3. Add the soft butter to the flour and turn the mixer on low/ medium until the mixture is similar to sand.

Food Technology Year 8 Recipe Book

Raw Is Sexy Highly Rawsome- High Raw Weekly Meal Plan

Using Six Sigma for Process Improvement. Office of Continuous Improvement, Information Technology

Pumpkin Pancakes. What you will need. Instructions

Freezer Apple Fudge. Ingredients:

Yr9. STEM Project RECIPE BOOK. Student. Group. Teacher. Target Grade

BUT. We didn t cut out butter did we?

Math Fundamentals PoW Packet Cupcakes, Cupcakes! Problem

Apple Cinnamon Pancakes (Gluten-Free Recipe)

How to Make Cupcakes in a Blender & More

RECETTES DE PETIT-DÉJEUNER FACILES (EASY BREAKFAST RECIPES)

I thought I d share what we ll be having at our table this holiday season. I SET MY GOAL for the entire cost of the

Paleo Cinnamon Bun Doughnut

Let's cook! Station Set-Up and Recipe Script Station Set-Up: Simple Fish Tacos

Broccoli Lesson. Other Broccoli Activities Nutrition science lesson: What happens to broccoli when we cook it?

Another Fork in the Trail by Laurie Ann March 2011

Crostata. Equipment: Baking sheet Pastry and vegetable board Sharp knife Wire rack. Method:

Check here. Task 1 Introduce some foods made with flour. There are many foods made with flour, such as,, and. Pizza is. Chinese pancake is.

Permission Slip. My child,, does not have allergic reactions to the ingredients.

Pancakes.. Or Crepes? History of Pancakes

Macadamia Recipes. just click one of the links to find a recipe for a delicious macadamia dish! CREME OF MACADAMIA SOUP

Thank you so much for being a supporter of TheHappierHomemaker.com

Microwave Caramels. 1 cup sugar ½ tsp. vanilla. Carmel Haystacks

Herb crusted Tenderloin fillet of pork with coarse grain mash, glazed carrots and sultana sauce

Protein Muffins CHOC CHIP BANANA INGREDIENTS METHOD

Make and Bake a Hand Stretched Neapolitan Pizza

Bringing Back Traditional Grains to the Dinner Table

What s For dinner? The Foodiful team

Hard-Boiled Eggs With Avocado Ingredients. 2 hard-boiled eggs 1/2 avocado, diced 1 teaspoon fresh herbs, optional Dash of hot sauce, optional

USE and CARE INSTRUCTIONS

Slimming Strawberry Peach Cobbler prep time: 10 minutes cook time: 35 minutes servings: 8

Spring Mussels. Ingredients

SCAE CDS:! Introduction to coffee! The start of your journey into the SCAE Coffee Diploma System, for anyone with an interest in coffee!

Bag A Breakfast. Phunky Early Years. Communication and Language. Physical Development. Personal, Social & Emotional Development

COPYRIGHT 2015 BY HAYLIE POMROY GROUP INC.

Ginger Peach Salmon. Dinner Twirly Taco Pasta Skillet

NICK COFFER S WEEKEND KITCHEN

Bachelorette. HowTo Make. Party Cakes. Bachelorette Party Cakes. Compliments of

Baked Egg Custard Tart

RECETTES DE PETIT-DÉJEUNER FACILES (EASY BREAKFAST RECIPES)

websolutions.com/holidays2017 Preheat oven to 375 F and grease a baking tray.

OCTOBER 2016 RECIPES. McNeil Nutritionals, LLC 2016

b r e a d b rae na d j an md

20.2g kcal. 11.7g. 28.5g. Easy Spinach Quiche. Breakfast

Gammon, potato and leek soup

Bury St Edmunds Food and Drink Festival 2016 Cookery Demonstration Galton Blackiston

MIGHTY EMPTIES GREEN DEEDS COME IN EMPTY PACKAGES

Dine in with Duck. handbook. Your helping hand to perfect duck

MAKE AHEAD MASHED POTATOES

Lemon Ricotta Pancakes & Strawberries

Fish en Papillotte. American Muffins Ingredients 100g caster sugar 75g margarine 1 egg 200g self-raising flour 150ml milk

5 THINGS TO MAKE THIS WEEK

Breakfast Maker Recipes. Breakfast Maker Instructions. Breakfast Sandwich. Breakfast Maker Brownies. Cooking Instructions & Timing

Mighty Matcha Recipe Book

for making every day with

SU Campus Food Bank Cookbook: A guide to getting the most out of a hamper Compiled by SU Campus Food Bank Volunteers

Multiple Choice: Which product on this map is found in the location that is farthest from Delaware? vanilla sugar walnuts chocolate

Whole Grain Pumpkin Pancakes

LENTILS FOR EVERY SEASON. d VOLUME 5 d

Apple Streusel Sheet Cake

Top Ten Recipes for One

Notes to parents/carers:

Tips and Recipes for The Smart Cookie set by Shape+Store

Animal Defenders International Vegan bake sale recipes

Biscotti-Meringue Mosque

First Birthday Cake Ideas

Transcription:

Algorithmic Thinking Alison Pamment On behalf of the course team (STFC/NERC:CEDA, NERC:NCAS, NERC:NCEO)

What is an algorithm? An algorithm is a precise, step-by-step set of instructions for performing a task. http://raptor.martincarlisle.com/

A little bit of history The word algorithm comes from the name of the 9 th century Muslim scholar Al-Khwarizmi He wrote down the rules for performing algebraic calculations using arabic numbers (which in turn actually originated from Hindu scholars in India!) (a decimal numbering system) In modern usage, algorithms are usually thought of as the instructions carried out by a computer but the concept isn t limited to computers

Traditional pancakes 1. Sift 250g plain flour and ¼ tsp salt into a bowl. 2. Break 2 large eggs into centre of the bowl. 3. Pour in 250 ml milk and whisk briskly. 4. Add a further 250 ml milk and whisk until the batter is smooth. 5. Heat an 8 inch pan over a low heat. Add a small knob of butter and swirl the pan to coat the bottom. 6. Use a ladle to spoon the pancake batter into the pan, then tilt the pan to spread the mixture out evenly. 7. As it sets, shake the pan to see if the pancake is loose, then flip it over with a palette knife. Cook the other side for 30 seconds - then shake again to see if it's loose. 8. Slide pancake onto a warm plate, sprinkle over some sugar and a squeeze of lemon juice. Eat immediately!

Traditional pancakes 1. Sift 250g plain flour and ¼ tsp salt into a bowl. 2. Break 2 large eggs into centre of the bowl. 3. Pour in 250 ml milk and whisk briskly. 4. Add a further 250 ml milk and whisk until the batter is smooth. 5. Heat an 8 inch pan over a low heat. Add a small knob of butter and swirl the pan to coat the bottom. 6. Use a ladle to spoon the pancake batter into the pan, then tilt the pan to spread the mixture out evenly. 7. As it sets, shake the pan to see if the pancake is loose, then flip it over with a palette knife. Cook the other side for 30 seconds - then shake again to see if it's loose. 8. Slide pancake onto a warm plate, sprinkle over some sugar and a squeeze of lemon juice. Eat immediately!

Traditional pancakes 1. Sift 250g plain flour and ¼ tsp salt into a bowl. 2. Break 2 large eggs into centre of the bowl. 3. Pour in 250 ml milk and whisk briskly. 4. Add a further 250 ml milk and whisk until the batter is smooth. 5. Heat an 8 inch pan over a low heat. Add a small knob of butter and swirl the pan to coat the bottom. 6. Use a ladle to spoon the pancake batter into the pan, then tilt the pan to spread the mixture out evenly. 7. As it sets, shake the pan to see if the pancake is loose, then flip it over with a palette knife. Cook the other side for 30 seconds - then shake again to see if it's loose. 8. Slide pancake onto a warm plate, sprinkle over some sugar and a squeeze of lemon juice. Eat immediately!

Crêpes traditionnelles 1. Tamiser 250g de farine et de sel ¼ de dans un bol. 2. Casser 2 gros œufs dans le centre de la cuvette. 3. Verser 250 ml de lait et fouetter vivement. 4. Ajouter un autre lait 250ml et fouetter jusqu'à ce que la pâte soit lisse. 5. Chauffer une poêle de diamètre 16 cm à feu doux. Ajouter une petite noix de beurre et agiter la poêle pour recouvrir le fond. 6. Utiliser une louche à ramasser la pâte à crêpes dans la poêle, puis incliner la poêle pour étaler le mélange uniformément. 7. Faire cuire jusqu'à ce que la crêpe soit dorée, la retourner et faire cuire l'autre côté. 8. Faites glisser sur une assiette chaude, saupoudrer un peu de sucre et un filet de jus de citron. Manger immédiatement!

Beware ambiguity! For example: Cables must be clearly labelled in all official languages of project participating institutions

Algorithms for automation An algorithm is a precise, step-by-step set of instructions for performing a task. The task can then be performed without the need to understand the original problem or knowledge of the final goal This is very important for automation Exercise 1

Exercise 1: Circle the start and end dots Join the start and end dots with a straight line Passing through intermediate dots or crossing existing lines is OK G6 -> G9 I9 -> F11 F12 -> E12 E5 -> D6 etc. A 1 2 3 4 5 6 7 8 9 10 11 B C D E

What is algorithmic thinking? Algorithmic thinking is the process of analysing a real world problem, breaking it down into a series of logical steps with defined inputs and outputs and then expressing those steps as an algorithm. https://www.youtube.com/watch?v=dotyx4-z-ja

What is algorithmic thinking? Define the real world problem Formulate the problem, including inputs and outputs Design algorithm to process the inputs and give the required outputs Implement the algorithm Run the algorithm and express the output in real world terms

Designing an algorithm The next video gives an example of designing a simple algorithm and introduces the idea of pseudocode. Pseudocode is structured like computer code but is not a real programming language It is human readable and a useful shorthand when designing an algorithm https://www.youtube.com/watch?v=6hfovs8py1k

Control structures Let N = 0 INITIALISATION for each pair of people in the room set N = N + 2 LOOP If 1 person remains then set N = N + 1 BRANCH (CONDITION) Pseudocode can be used to test the logic of an algorithm by trying a few input values and checking whether the output is what you expect

Exercise 2 Imagine you are entertaining a small group of visitors at your workplace. Your task is to serve them each a hot drink from a dispensing machine. Use pseudocode to construct a suitable algorithm for performing this task.

Points to bear in mind Often there is no single right answer Some algorithms are more efficient than others (i.e. involve fewer steps and take less time to execute) A well structured algorithm can often be adapted to solve a class of similar problems Programming languages contain many built in algorithms for common operations use them!

Starting to code Many online interactive tutorials, for example: scratch https://scratch.mit.edu/ Code academy http://www.codecademy.com/en/tracks/python