Module 1- Getting Started Tell me what to do Using sets of instructions…

Slides:



Advertisements
Similar presentations
What is an Algorithm? An algorithm is a well-developed, organized approach to solving a complex problem.
Advertisements

Building a Conceptual Understanding of Algebra with Algebra Tiles
Algorithmic Problem Solving Lecture 3 River Crossing Problems.
AE1APS Algorithmic Problem Solving John Drake
Problem Solving Well-formed predicate calculus expressions provide a means of describing objects and relations in a problem domain and inference rule.
Lecture 2: Systems Engineering
? What is Computer Science and what can you do with it.
TRANSFORMATIONS Reflections Rotations Enlargements Translations.
Problem of the Day Problem of the Day next Geometry - Connect the Dots
Super Logo. Key Instructions Pendown penup Forward 50 ( this number can change) Right 90 ( this number can change as well) Now try and draw a Early finishers,
Module 1- Getting Started Tell me what to do Using sets of instructions…
CS001 Introduction to Programming Day 3 Sujana Jyothi
Listening: Riddle Goal, Wolf & Cabbage. Riddle – River Crossing GOAT, WOLF & CABBAGE A farmer is going home from the market. He bought a goat, a cabbage.
James Tam A High-Level Model For Software Development What is involved in the process of designing, writing and maintaining computer programs?
How to draw a cube using isometric paper.
ACOS 2010 Standards of Mathematical Practice
C OMPUTER P ROGRAMMING 1 Introduction to Programming.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
What we will cover today… Contents – what you get with your phone Difference between phone brands and networks Charge your phone battery Making and receiving.
In.  This presentation will only make sense if you view it in presentation mode (hit F5). If you don’t do that there will be multiple slides that are.
Click, Clack, Moo Cows That Type
Algorithms, Algorithmic Thinking and Structured Code.
Step 2: Solve the 1st side/layer
M4.A.3 Compute accurately and fluently and make reasonable estimates. M4.A.3.2 Compute using fractions or decimals (written vertically or horizontally.
CHAPTER 1: INTRODUCTION TO COMPUTER SCIENCE Introduction to Computer Science Using Ruby (c) 2012 Ophir Frieder et al.
Introduction to problem solving. Introductory Discussion? What problems are you faced with daily? Do you think a computer can be designed to solve those.
PROGRAMMING. Objectives Define the term program List and explain the steps involved in developing a program.
Module 1- Getting Started Tell me what to do Using sets of instructions…
Example 5 Graphical Solutions Chapter 2.1 Solve for x using the x-intercept method.  2009 PBLPathways.
Algorithms CS139 – Aug 30, Problem Solving Your roommate, who is taking CS139, is in a panic. He is worried that he might lose his financial aid.
One Point Perspective Design and Technology. One Point Perspective Task 3 Here are some high quality examples of what we are aiming to produce by the.
2007 School Certificate Online Computing Skills Test.
Vectors: the goals Be able to define the term VECTOR and identify quantities which are vectors. Be able to add vectors by the “Head to Tail Method” Be.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
… Computer Science Inside… Algorithm Development.
The Percent Proportion. To solve a proportion, multiply the numbers that are diagonal, divide by the one that’s left.
Structured Programming (4 Credits)
Thanksgiving Project. Getting ready to eat!  Between now and Thanksgiving, we will create FunMat for your family dinner.
Algebra 3 Warm – Up 1.8 Graph. y = 3x – 6.
Lines Identifying Different Types of Lines Next Type your name and send: Next.
Perspective Drawing Uses line to show depth, form, and deep space Uses vanishing points on a horizon line in city and landscapes Vertical lines, horizontal.
Cornell Notes To help me take organized notes To help me identify keywords and concepts from a lecture To help me skim my notes to locate important information.
1 UMBC CMSC 104, Section Fall 2002 Algorithms, Part 1 of 3 Topics Definition of an Algorithm Algorithm Examples Syntax versus Semantics Reading.
Methods for Multiplication Tutorial By: Melinda Hallock.
THINKING PROCEDURALLY OR CONCURRENT (SIMULTANEOUSLY OR SIDE BY SIDE OR IN LOGICAL ORDER A- IDENTIFY THE COMPONENTS OF A PROBLEM B-IDENTIFY THE COMPONENTS.
Solving Equations I Lesson After completing this lesson, you will be able to say: I can define and apply inverse operations of addition or subtraction.
MATHEMATICS Line Symmetry. Lesson Objectives The aim of this powerpoint is to help you… Review what we mean by ‘symmetry’ Draw reflections and find mirror.
Mathematics 2 Ms. Meek Symmetry. A figure is said to be symmetric if you can draw a line down the middle, and split the figure into two pieces that are.
In the last several lessons, you have described translations using coordinates. You have also developed strategies for determining where an object started.
PROBLEM SOLVING. What is a Problem? A problem is a situation that needs to be resolved.
Progression in KS3/4 Algorithms MONDAY 30 TH NOVEMBER SUE SENTANCE.
One Point Perspective: City Drawing A Tutorial Art 1: Fall 2011 MMRoberts.
Problem Solving CSC 1750 Spring References Sprankle, Maureen and Jim Hubbard, Problem Solving and Programming Concepts, Eighth Edition, Prentice.
Chapter Transformations Part 1. Objective: Use a translation, a reflection, and a rotation Describe the image resulting from a transformation.
LATTICE MULTIPLICATION
Professor, Computer Science and Engineering Department
Shape and One Point Perspective Project
Teaching Computing to KS3
M4.A.3 Compute accurately and fluently and make reasonable estimates.
How to draw a cube using isometric paper.
The Wolf, the Goat, and the Cabbage
Computer Programming.
Artificial Intelligence Problem solving by searching CSC 361
4. Computational Problem Solving
At least two sprites moving on the stage.
One Point Perspective: City Drawing A Tutorial
Calculus I (MAT 145) Dr. Day Wednesday March 27, 2019
How to draw a cube using isometric paper.
Presentation transcript:

Module 1- Getting Started Tell me what to do Using sets of instructions…

Consider these 3 situations….  Baking a Cake  Giving Directions  Buying items in a shop

What do all 3 have in common?  They are all sets of instructions.  They all solve a problem. These are called Algorithms.

A good algorithm 1. Leads to completion. 2. Is accurate and unambiguous. 3. Has the appropriate level of detail. 4. Has well ordered instructions. 5. Covers all possible outcomes with practical solutions.

Human vs Computer Algorithms  With human algorithms we can rely on Intuition Initiative Prior knowledge Independent decision-making Learning from experience  Computers do not have these things and therefore we must take this into account when we write the algorithm for a computer program.

1. Draw a diagonal line 2. Draw another diagonal line connected to the top of the first one 3. Draw a straight line from the point where the diagonal lines meet 4. Draw a horizontal line over the straight line 5. At the bottom of the straight line, draw a curvy line 6. Draw a diagonal line from the bottom of the first diagonal to the straight line 7. Draw a diagonal line from the bottom of the second diagonal to the straight line Here's the algorithm – follow exactly!!

… It was meant to be a kite!! 1. Draw a diagonal line 2. Draw another diagonal line connected to the top of the first one 3. Draw a straight line from the point where the diagonal lines meet 4. Draw a horizontal line over the straight line 5. At the bottom of the straight line, draw a curvy line 6. Draw a diagonal line from the bottom of the first diagonal to the straight line 7. Draw a diagonal line from the bottom of the second diagonal to the straight line

Write an algorithm… Solve the farmer’s problem  A farmer has to take three items, a dog, a goat and a cabbage, across a river. He has a boat but it can only take two objects at once, in other words, the farmer and one other item.  Write an algorithm to tell the farmer how to get the three items across the river.  Note: If the dog and the goat are left together the dog will eat the goat. If the goat and the cabbage are left together the goat will eat the cabbage.

The Farmer’s Solution… 1. Begin on side A 2. Take goat across to side B 3. Return with empty boat to side A 4. Take dog across river to side B 5. Return with goat to side A 6. Take cabbage to side B 7. Return with empty boat to side A 8. Take goat to side B 9. END

… Some activities are not algorithmic in nature  Problem solving  Human thinking process  Falling in love  and so on…  That is why some might think these are hard…!!  When we can express the human thinking process as an algorithm, Artificial Intelligence will have truly been created

Your turn Write an algorithm for the following:  Drawing a shape.  How to get to a part of the school.  How to make a sandwich

Possible solution 1. Buy a top up voucher in a shop or at a vending machine. 2. Dial 1741 on your phone. 3. Listen to the instructions. 4. Enter the code on the voucher and press the # key on your phone. 5. Listen for your new balance to make sure it’s correct. 6. Hang up.