© 2016 AQA. Created by Teachit for AQA Lesson 3.1.1 Representing algorithms (decomposition)

Slides:



Advertisements
Similar presentations
CS12230 Introduction to Programming Tying things together.
Advertisements

The LC-3 – Chapter 6 COMP 2620 Dr. James Money COMP
Standards Unit N5: Understanding the laws of arithmetic Consolidating BIDMAS, compound rectangular areas and square numbers in arithmetic expressions.
Instructions What are they? A step by step guide explaining how to make or do something. Instructions can be spoken or written.
Lesson  Draw an array to match my picture.  Skip-count by twos to find how many total objects there are.  How many groups of 2 are there?  Say.
Progression in KS3/4 Algorithms MONDAY 30 TH NOVEMBER SUE SENTANCE.
Strategies & Knowledge for Independent Learning individual Work SKIL SKIL cards are sets of cards that explain how to use different learning strategies.
© 2016 AQA. Created by Teachit for AQA Converting between number bases Lesson.
Mental Arithmetic Strategies Scotts Primary School. Mental Arithmetic Scheme.
Yasemin Allsop Senior Lecturer in Computing Education
AP CSP: Creating Functions & Top-Down Design
3.1 Fundamentals of algorithms
Programming – Algorithms (Flowcharts)
3.1 Fundamentals of algorithms
CST 1101 Problem Solving Using Computers
Component 1.6.
Binary, Denary, Hexadecimal Conversion Binary Addition
Mental Arithmetic Strategies
© DMTI (2017) | Resource Materials |
FLOWCHARTS Part 1.
Implementation Review the mathematical concept.
Basics of Computer Programming
Multiply using Distributive Property
BTEC NCF Dip in Comp: Unit 01 Principles of Computer Science Lesson 01 – Computational Thinking Mr C Johnston.
Teaching design techniques to design efficient solutions to problems
Basics of Computer Programming
Basics of Computer Programming
Introduction CSE 1310 – Introduction to Computers and Programming
Instructions What are they?.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
13/11/2018 Starter: L.O. To be able to
Print slides for students reference
Introduction to Equations Cronnelly
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
For example, how can you use exponents to write
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, what does it mean when someone.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
Why to do a lesson plan Improve the lessons:
Computational Thinking
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
Making a Ten to Add and Subtract
Year 7 Graphics - Texture
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, what does it mean when someone.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
Computational Thinking for KS3
DO NOW – Decompose a Problem
The Friendship Algorithm
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
Pair work – Do you want to change seats??
To Assess my Understanding of Fractions 27-Feb-19
PYTHON: BUILDING BLOCKS Sequencing & Selection
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
Help to refocus your class
Pair work – Do you want to change seats??
Algorithms, Part 3 of 3 Topics Top down-design Structure charts
Computational Thinking
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
Python SAT 1 Feedback.
Algorithms, Part 3 of 3 Topics Top down-design Reading
I wonder…2 _ 1 2 ? LearnZillion Notes:
Programming Techniques :: Flow Diagrams and Pseudocode
Learning objective and success criteria.
You’ve been asked to set up chairs for both the rocks paper scissors championship and the basketball banquet.
Tree Diagrams Be able to use a tree diagram to list the possible outcomes from two events. Be able to calculate probabilities from tree diagrams. Understand.
Critical Reading Strategy
Presentation transcript:

© 2016 AQA. Created by Teachit for AQA Lesson Representing algorithms (decomposition)

© 2016 AQA. Created by Teachit for AQA Starter activity In pairs… Each look around the room and (secretly) choose a person. Take it in turns to ask yes/no questions about the person you are trying to guess. For example: – “Are they wearing glasses?” – “Are they female?” The winner is the first to correctly guess who their opponent is thinking of. TIME UP Start

© 2016 AQA. Created by Teachit for AQA Discussion How many questions did you need? Let’s think a bit harder: –What questions were useful? –What questions were not useful? –Did you refine your techniques? How?

© 2016 AQA. Created by Teachit for AQA Objectives Understand the term decomposition. Be able to explain the term decomposition. Be able to apply decomposition to problems.

© 2016 AQA. Created by Teachit for AQA Concepts What we just did is a form of decomposition. It means breaking down a problem into sections which are easier to manage – this is something done by every computer scientist. It is a part of computational thinking which allows us to look at a problem in ways that are easier to deal with.

© 2016 AQA. Created by Teachit for AQA How do we decompose a problem? 1.Look for key tasks and functions. 2.For each key task or function: –Can you solve it in one go? –If not, break it down in to sub-tasks or functions. 3.Continue doing this until every task is as broken down as it needs to be in order to be manageable.

© 2016 AQA. Created by Teachit for AQA We start with the overall problem Example Some people like to use diagrams. Let’s say we’ve been asked to produce a chess game. Chess game Enter moveVerify move Change position of piece Draw boardInsert moveMake changesCheck if won Change player turn Then we break it down to the primary tasks that need to be completed. We continue breaking down tasks until we are confident we can complete the task as it is.

© 2016 AQA. Created by Teachit for AQA A good title is a good start Primary tasks are listed Example Some people prefer to use a numbered and sub- numbered list. Let’s look at the same game. Chess game 1.Draw board 2.Insert move 3.Make changes 4.Check if won 5.Change player turn

© 2016 AQA. Created by Teachit for AQA Example Some people prefer to use a numbered and sub- numbered list. Let’s look at the same game. Chess game 1.Draw board 2.Insert move 1.Enter move 2.Verify move 3.Change position of piece 3.Make changes 4.Check if won 5.Change player turn

© 2016 AQA. Created by Teachit for AQA It is easier to include more steps this way than with a diagram. Example Some people prefer to use a numbered and sub- numbered list. Let’s look at the same game. Chess game 1.Draw board 2.Insert move 1.Enter move 1.Enter x positon of piece to move 2.Enter y position of piece to move 3.Enter x position to move to 4.Enter y position to move to 2.Verify move 3.Change position of piece 3.Make changes 4.Check if won 5.Change player turn We can refer to these by a dotted number – e.g This kind of plan can easily be converted to pseudocode. 1.Draw board 2.Insert move 1.Enter move 1.Enter x positon of piece to move 2.Enter y position of piece to move 3.Enter x position to move to 4.Enter y position to move to 2.Verify move 3.Change position of piece 3.Make changes 4.Check if won 5.Change player turn

© 2016 AQA. Created by Teachit for AQA Task Create a game of rock, paper, scissors. Decompose the problem to manageable steps: 1.Create a diagram. 2.Create a numbered list of steps.

© 2016 AQA. Created by Teachit for AQA Discussion Which method was easier? Why? What are the strengths of diagrams? What are the strengths of the numbered list?

© 2016 AQA. Created by Teachit for AQA Task Did you notice that we’ve not actually discussed computers? Although these methods are excellent for developing computer programs and inherent in good design work, they can also be used in offline tasks, such as: –Planning books or papers – break down to chapters, sections, paragraphs. –Building a house – break down to frame, cladding, roof, interior, and further to electrics, plumbing, fittings, décor. Think about a recent experiment you did in science – given that your teacher probably gave you an overview, take that overview and decompose it.

© 2016 AQA. Created by Teachit for AQA Activity Problem: Write a program that will ask you to choose from a menu to either add, subtract, multiply or delete. Then enter two numbers and apply the operator to them. Activity:Decompose the problem. Target: Each step in the decomposition should take only 1-2 lines of code each. Bonus:Use the major steps to plan subroutines. Catch:You can only go to the computer when your teacher is satisfied with the work you have done.

© 2016 AQA. Created by Teachit for AQA Activity Problem: Your teacher has set up a board game club after school, but all the games they bought from eBay have come without instructions! You need to write some. Activity:Decompose the problem. Target: Your teacher or partner should be able to read your instruction booklet and should not be able to say “but what if…” Tip:Use the major steps to plan areas of the instruction booklet.

© 2016 AQA. Created by Teachit for AQA Plenary In groups… Write a definition of decomposition. Write a series of top tips for anyone looking to decompose a problem. Extension: Formulate your top tips in to a guide for performing decomposition on a problem.