A PowerPoint about Algorithm’s. What is an algorithm? A step by step process of instruction.

Slides:



Advertisements
Similar presentations
Slide 1 Today you will: Review knowledge and understanding of systems Understand what a system is and what it consists of Apply this understanding by working.
Advertisements

Basic Programming Concepts INTRO TO PROGRAMMING. Questions to answer  What is a computer program?  What are computer instructions  How is a program.
H OW TO MAKE A CUP OF T EA ! By Paris Bell. Safety Instructions Equipment Ingredients Instructions Instructions (continued) Tips.
Unit 7.6 Lesson 2 Goals Identify and use flowchart symbols. Plan a sequence of events and incorporate them into a flowchart. Create a simple flowchart.
Tutorial #6 PseudoCode (reprise)
First steps  First get out a mug from your cupboard.  Next pour cold water into your kettle.  Then press the button and wait for it to boil.
place a teabag in a mug; boil some water; pour over teabag; wait until strong enough; remove the teabag; add some milk and stir. what is this?
SDP Languages and Environments. Types of Languages and Environments There are 4 main types of language that you must be able to describe at Higher level.
SEARCHING, SORTING, TOPOLOGICAL SORTS Most real world computer applications deal with vast amounts of data. Searching for a particular data item can take.
Sorting and Searching. Searching List of numbers (5, 9, 2, 6, 3, 4, 8) Find 3 and tell me where it was.
This project and its actions were made possible due to co-financing by the European Fund for the Integration of Third-Country Nationals Heat loss experiment.
Searching and Sorting Arrays
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 9 Searching.
Plum jam and walnuts Viktoriya Mikova SOU “Ivan Vazov”-IV g Bulgaria, Pleven.
Polly put the kettle on Polly put the kettle on Polly put the kettle on We’ll all have tea.
A wooden skewer (you can also use a clean wooden chopstick) A clothespin 1 cup of water 2-3 cups of sugar A tall narrow glass or jar.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8: Searching and Sorting Arrays.
Copyright © 2012 Pearson Education, Inc. Chapter 8: Searching and Sorting Arrays.
Project Management Project Planning Estimating Scheduling.
Selection: IF Statement Damian Gordon. adsdfsdsdsfsdfs dsdlkmfsdfmsdl kfsdmkfsldfmsk dddfsdsdfsd.
Searching and Sorting Gary Wong.
A PowerPoint about Algorithm’s. What is an algorithm?  a process or set of rules to be followed in calculations or other problem-solving operations,
A PowerPoint about Algorithm’s. What is an algorithm? A list Of cammands / instructions to do a tasks.
Chapter 8 Searching and Sorting Arrays Csc 125 Introduction to C++ Fall 2005.
CSCI 130 Array Searching. Methods of searching arrays Linear –sequential - one at the time –set does not have to be ordered Binary –continuously cutting.
‘How to make perfect English tea’ Ewa Pacykowska.
For this unit, you will develop a new swimming / leisure business. 2. You will need to think of a name & concept for the business. 3. Over the.
Top-Down Design Damian Gordon. Top-Down Design Top-Down Design (also known as stepwise design) is breaking down a problem into steps. In Top-down Design.
How to make a Perfect Cup of Tea Supplies Kettle Ceramic tea-pot Large ceramic mug and spoon Microwave oven.
1 Algorithms CS/APMA 202 Rosen section 2.1 Aaron Bloomfield.
Slide 1 What makes up an information system? Input Process Output Temperature and rainfall from a variety of places Analyse the information and present.
DIY GUMMY CANDIES By Kiera Sagan What you need Spoon Small sauce pan No flavor gelatin Flavored gelatin Flour Sugar Scissors Small container Something.
How to Make the Perfect Homemade Pumpkin Spice Latte.
By Zoe Cornell. Mug Kettle Tea bag Milk Sugar Pour water into the kettle and switch it on.
Learn about the system life cycle Plan the outline of your project
Sequence Damian Gordon. Pseudocode When we write programs, we assume that the computer executes the program starting at the beginning and working its.
Review: Solubility means how much of a certain kind of solid will dissolve in a certain kind of liquid.
Mug Tea bag Kettle Milk Sugar (only if you like it in your tea) A spoon Biscuits A plate for the biscuits.
By Pablo, Mario, Ferran and Gerard.. 2 apples 1 can of condensed milk 4 eggs 350 mililiters of milk.
QUALITY MANAGEMENT PRINCIPLES. Objectives 4 Understand usefulness of CASE tools 4 Types of CASE tools 4 Data flow diagrams (DFD)
Computer Control Using computers to do tasks. What are Computers used for? ringing your alarm clock. microwaving your breakfast checking for text messages.
Bagged vs. Loose Tea Based on “Yingtao’s New Friend”
PROCEDURE TEXT. Learn carefully.  Teabag  Coffee mix  Fried rice  Cake  Chili  Powder  Sugar  Pan  spoon  Cut it into pieces  Boil water 
Unit 2 Day 11 FOCS – Human Computer Interaction. Tower Building Presentation Explain your solution.
Sequences, Modules and Variables David Millard
Comp1004: Programming in Java II Computational Thinking.
HOW TO MAKE A GOOD CUP OF TEA SKW 3061 ENGLISH WORKPLACE MISS GURMINDERJEET KAUR MOHAMAD SHAZRYL B. MOHD SHUKOR B01SPS13F
Searching and Sorting Arrays
Searching and Sorting Algorithms
Quick Plenaries.
Growth of Functions & Algorithms
IGCSE 6 Cambridge Effectiveness of algorithms Computer Science
Remove toast from toaster
Algorithms & Logic Mr Conti.
Algorithms Today we will look at: what the word algorithm means
Algorithms Y10 Introduction.
Scratch Where Are You Now?
Searching and Sorting Arrays
Standard Version of Starting Out with C++, 4th Edition
Flow Charts AQA - Graphic Products.
Process/ Instruction Writing
Searching and Sorting Arrays
Searching and Sorting Arrays
CPS120: Introduction to Computer Science
CPS120: Introduction to Computer Science
Unit 2: Computational Thinking, Algorithms & Programming
Speaking Presentation
Flowcharts Activity One
Algorithms.
Presentation transcript:

A PowerPoint about Algorithm’s

What is an algorithm? A step by step process of instruction

What are the problems with the following algorithms ? Using the next slide add notes using text boxes and arrows to show what problems are and where.

START GET CUP PUT TEA BAG IN PUT MILK IN PUT SUGAR IN? STIR IT END NO YES START Put water in kettle Boil kettle Get a cup and put a tea bag in Pour water in kettle Remove tea bag Put milk in? Put sugar in? END NO YES NO No hot water? Take out teabag? Pour water in mug and stir

Searching for data…. Using Algorithms. What is a linear search algorithm? A linear search is when you one by one check through each answer to check if it is right. What is a binary search algorithm? A binary search is when you start in the middle then cut in half after each question until the answer is found.

Which is best when searching for data? Why? Use an example and give the good and bad points of each search method Binary search is good as it is efficient and fast. For example playing guess who it is much more efficient to use binary as it takes about 5 guesses where as linear it could take up to 24 guesses Linear search is bad as it is slow and inefficient. Linear is good as you may get lucky and get it within the first few guesses. Binary is bad as it may not get it within the first couple of guesses. For example Linear could get it within the first go or two where as binary has to narrow it down much more before answering.

Sorting data Selection sort took me 1:44 minutes to sort 15 slips into number order Selection is looking through each slip 1 by 1 Bubble sort took me 51 seconds to sort all the slips Bubble is comparing each slip whether is before or after Merge sort took me 1:22 to sort the slips Merge is sectioning each slips into groups of a smaller number then ordering them in numerical or alphabetical order Overall the best form of sorting was bubble sorting