Download presentation
Presentation is loading. Please wait.
1
Mike Clapper - Executive Director AMT
Algorithmic Thinking 21/09/2018 Mike Clapper - Executive Director AMT
2
Mike Clapper - Executive Director AMT
Structure of Session What is an algorithm? Why is it important to promote algorithmic thinking in the mathematics classroom? Constructing some simple algorithms. Checking and testing algorithms. Incremental algorithmic design Resources for developing algorithmic thinking – overview. The CAT competition as a resource – types of questions and how to use them. Moving from algorithmic thinking to programming. Programming in the Maths classroom. Welcome – people with a variety of backgrounds and knowledge. Introduce Jennifer. Mike Clapper - Executive Director AMT 21/09/2018
3
Mike Clapper - Executive Director AMT
What is an algorithm? An algorithm is a finite set of steps or operations which solve a particular problem or class of problems. eg To find the average of a set of numbers. Count how many numbers in the list (COUNT) Add up the numbers in the list (SUM) Divide the SUM by the COUNT (AVERAGE) Print AVERAGE We all use algorithms every day. Will give some simple examples before returning to why AT is important 21/09/2018 Mike Clapper - Executive Director AMT
4
How can we represent algorithms?
Everyday language Flowcharts Pseudocode Programming language A clear set of instructions in everyday english. Can be easier to see structure if we use F-C or pseudocode 21/09/2018 Mike Clapper - Executive Director AMT
5
Flowcharts Start Count the numbers Call answer COUNT
Find the sum of the numbers Call answer SUM Divide SUM by COUNT Call answer AVERAGE Print AVERAGE Stop 21/09/2018 Mike Clapper - Executive Director AMT
6
Making decisions Start Input NUMBER and DIVISOR
Set TOTAL to 0, set ANSWER to 0 Add DIVISOR to TOTAL Add 1 to ANSWER Quite commonly, an algorithm will involve making a decision. We have a special box shape to show these points of decision. Can you see what this flowchart does? This is not a very efficient algorithm. Can you suggest how it could be improved? In order to find out, we can keep track of what happens to each of the variables in a chart. (By the way, this is powerful in terms of algebraic understanding) Is NUMBER bigger than TOTAL? Print ANSWER Subtract 1 from ANSWER No Yes Stop 21/09/2018 Mike Clapper - Executive Director AMT
7
Making decisions (worksheet)
NUMBER DIVISOR TOTAL ANSWER 20 6 Try to complete this table for the flowchart on the previous page. 21/09/2018 Mike Clapper - Executive Director AMT
8
Why is algorithmic thinking important?
Teaching algorithms alone can be very damaging Teaching students how to think algorithmically can be very powerful Algorithmic thinking is now a part of the Australian Curriculum Internet references Use subtraction example 21/09/2018 Mike Clapper - Executive Director AMT
9
Australian Curriculum – Digital Technologies (F – 2)
Knowledge and Understanding Processes and Production Skills Recognise and explore digital systems for a purpose Collect, explore and sort data, and use digital systems to present the data creatively Recognise and explore patterns in data and represent data as pictures, symbols and diagrams Follow, describe and represent a sequence of steps and decisions (algorithms) needed to solve simple problems Explore how people safely use common information systems to meet information, communication and recreation needs Create and organise ideas and information using information systems independently and with others, and share these with known people in safe online environment Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
10
Australian Curriculum – Digital Technologies (3 - 4)
Knowledge and Understanding Processes and Production Skills Identify and explore a range of digital systems with peripheral devices for different purposes, and transmit different types of data Collect, access and present different types of data using simple software to create information and solve problems Recognise different types of data and explore how the same data can be represented in different ways Define simple problems, and describe and follow a sequence of steps and decisions (algorithms) needed to solve them Implement simple digital solutions as visual programs with algorithms involving branching (decisions) and user input Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
11
Australian Curriculum – Digital Technologies (3 - 4) – cont.
Knowledge and Understanding Processes and Production Skills Create and organise ideas and information using information systems independently and with others, and share these with known people in safe online environments Plan, create and communicate ideas and information independently and with others, applying agreed ethical and social protocols Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
12
Australian Curriculum – Digital Technologies (5 - 6 )
Knowledge and Understanding Processes and Production Skills Examine the main components of common digital systems and how they connect together to form networks Acquire, store and validate different types of data, and use a range of software to interpret and visualise data to create information Examine how whole numbers are used to represent all data in digital systems Define problems in terms of data and functional requirements drawing on previously solved problems Design a user interface for a digital system Design, modify and follow simple algorithms involving sequences of steps, branching and iteration (repetition) Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
13
Australian Curriculum – Digital Technologies (5 - 6 )
Knowledge and Understanding Processes and Production Skills Implement digital solutions as simple visual programs involving branching, iteration, and user input Explain how student solutions and existing information systems are sustainable and meet current and future local community needs Plan, create and communicate ideas and information, including collaboratively online, applying agreed ethical, social and technical protocols Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
14
Australian Curriculum – Digital Technologies (7 – 8)
Knowledge and Understanding Processes and Production Skills Investigate how data is transmitted and secured in wired, wireless and mobile networks, and how the specifications affect performance Acquire data from a range of sources and evaluate authenticity, accuracy and timeliness Investigate how digital systems represent text, image and audio data in binary Analyse and visualise data using a range of software to create information, and use structured data to model objects or events Define and decompose real-world problems taking into account functional requirements and economic, environmental, social, technical and usability constraints Design the user experience of a digital system, generating, evaluating and communicating alternative design Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
15
Australian Curriculum – Digital Technologies (7 – 8)
Knowledge and Understanding Processes and Production Skills Design algorithms represented diagrammatically and in English, and trace algorithms to predict output for a given input and to identify errors Implement and modify programs with user interfaces involving branching, iteration and functions in a general-purpose programming language Evaluate how student solutions and existing information systems meet needs, are innovative, and take account of future risks and sustainability Plan and manage projects that create and communicate ideas and information collaboratively online, taking safety and social contexts into account Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
16
Australian Curriculum – Digital Technologies (9 – 10)
Knowledge and Understanding Processes and Production Skills Investigate the role of hardware and software in managing, controlling and securing the movement of and access to data in networked digital systems Develop techniques for acquiring, storing and validating quantitative and qualitative data from a range of sources, considering privacy and security requirements Analyse simple compression of data and how content data are separated from presentation Analyse and visualise data to create information and address complex problems, and model processes, entities and their relationships using structured data Define and decompose real-world problems precisely, taking into account functional and non-functional requirements and including interviewing stakeholders to identify needs Design the user experience of a digital system by evaluating alternative designs against criteria including functionality, accessibility, usability, and aesthetics Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
17
Australian Curriculum – Digital Technologies (9 – 10)
Knowledge and Understanding Processes and Production Skills Design algorithms represented diagrammatically and in structured English and validate algorithms and programs through tracing and test cases Implement modular programs, applying selected algorithms and data structures including using an object-oriented programming language Evaluate critically how student solutions and existing information systems and policies, take account of future risks and sustainability and provide opportunities for innovation and enterprise Create interactive solutions for sharing ideas and information online, taking into account safety, social contexts and legal responsibilities Plan and manage projects using an iterative and collaborative approach, identifying risks and considering safety and sustainability Examples: F – sit down, take out exercise book and pencil, Draw a margin on the first blank page. Dance steps. Playing a simple game Year 1 Year 2 Year 3 - 21/09/2018 Mike Clapper - Executive Director AMT
18
Constructing some simple algorithms
Arithmetic processes (work from high level to low level) Search algorithms Sort algorithms Adding two fractions (assume you know how to find common denominators). Binary Search 21/09/2018 Mike Clapper - Executive Director AMT
19
Algorithmic efficiency - a simple search algorithm
Start Guess =1 Too low? Add 1 to guess Yes No Is this right? Is this efficient? Design a sort algorithm – share it with the person next to you. Print Guess Stop 21/09/2018 Mike Clapper - Executive Director AMT
20
Checking and testing algorithms
Does it give the results you want? Trace the value of each variable using a table Carefully design test data to test each branch What about special cases? 21/09/2018 Mike Clapper - Executive Director AMT
21
Incremental algorithmic design
When designing more complex algorithms: Work from high level design to low level design Consider solving a simpler problem Build the algorithm incrementally Get someone else (preferably fiendish) to test your algorithm Eg return to adding two fractions – embed common denominator process 21/09/2018 Mike Clapper - Executive Director AMT
22
Resources for teaching algorithmic thinking
Yourself Code.org: Anybody can learn CS unplugged Code Club Australia Australian Mathematics Trust: AMT Scratch - Imagine, Program, Share Codecademy mbots Bebras Australia | Digital Careers Computational Thinking In summary – emphasis on problem-solving as a mode of learning and recognition of the importance of context. 21/09/2018 Mike Clapper - Executive Director AMT
23
AMT Informatics Program
Designed to encourage algorithmic and logical thinking and to identify and encourage potential programmers in all students: CAT (in March) – a non-programming competition in algorithmic thinking, on-line or paper, Years 5 – 12 Programming training module through AMT website AIO (September) – open programming competition AIIO (February) – invitational programming competition Selection schools and further invitational competitions leading to IOI 21/09/2018 Mike Clapper - Executive Director AMT
24
CAT (Computational and Algorithmic Thinking Competition)
Late March – 1 hour, 15 questions Emphasises algorithmic thinking. Will appeal to some students who do not shine in conventional mathematics. Will identify potential programmers. Online competition is free in 2016 Upper Primary, Junior, Intermediate, Senior Practice material available 21/09/2018 Mike Clapper - Executive Director AMT
25
Mike Clapper - Executive Director AMT
Structure of Paper First six questions – 3 marks each – traditional multiple-choice (5 options) Next nine questions - three-stage tasks – 2 marks per stage A three-stage task consists of a small problem to solve where there are three sets of data The first data set is small or simple enough to be susceptible to ad-hoc techniques, but hopefully provides a basis for students to get a feeling for the problem and to develop an algorithm to be used in the remaining data sets. The answers are numbers in the range 21/09/2018 Mike Clapper - Executive Director AMT
26
Mike Clapper - Executive Director AMT
Question Types Rules – testing the ability to follow a simple rule or algorithm Logic – testing the ability to logically interpret the meaning of a situation or data set. This may include ‘debugging’ an algorithm Analysis – testing the ability to analyse the application of a given algorithm. This may include searching, sorting, analysing patterns or counting routes Algorithm Design – there are a variety of types 21/09/2018 Mike Clapper - Executive Director AMT
27
Sample questions Junior 1 Hrossan Quilts Junior 5 Emu Senior 3 Frog
Senior Musca Mike Clapper - Executive Director AMT 21/09/2018
28
Junior 1. Hrossan Quilts 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? Mike Clapper - Executive Director AMT 21/09/2018
29
Junior 1. Hrossan Quilts 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? Mike Clapper - Executive Director AMT 21/09/2018
30
R Junior 1. Hrossan Quilts 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? R Mike Clapper - Executive Director AMT 21/09/2018
31
R Junior 1. Hrossan Quilts 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? R Mike Clapper - Executive Director AMT 21/09/2018
32
R B Junior 1. Hrossan Quilts 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? R B Mike Clapper - Executive Director AMT 21/09/2018
33
B R G R R B G B G R R B B R R Junior 1. Hrossan Quilts 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? B R G R R B G B G R R B B R R Mike Clapper - Executive Director AMT 21/09/2018
34
B R G R R B G B G R R B B R R Junior 1. Hrossan Quilts 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? B R G R R B G B G R R B B R R Mike Clapper - Executive Director AMT 21/09/2018
35
B R G R R B G B G R R B B R R Junior 1. Hrossan Quilts 5 21/09/2018
Each hexagon and the two beneath it must be the same colour (R,G or B) or different colours. How many blue patches are there in the quilt below? 5 B R G R R B G B G R R B B R R Mike Clapper - Executive Director AMT 21/09/2018
36
Junior 5. Emu Emus will take at most 3 steps from the nesting burrow in search of food. They refuse to walk through water or even over water. B is the location of the burrow and the shaded cells are wet. An emu can cover up to 4 cells in one step, and a step may not turn a corner. In the diagram below, in how many dry cells will the emu NOT search for food? Mike Clapper - Executive Director AMT 21/09/2018
37
Junior 5. Emu Emus will take at most 3 steps from the nesting burrow in search of food. They refuse to walk through water or even over water. B is the location of the burrow and the shaded cells are wet. An emu can cover up to 4 cells in one step, and a step may not turn a corner. In the diagram below, in how many dry cells will the emu NOT search for food? 1 1 1 1 1 Mike Clapper - Executive Director AMT 21/09/2018
38
Junior 5. Emu Emus will take at most 3 steps from the nesting burrow in search of food. They refuse to walk through water or even over water. B is the location of the burrow and the shaded cells are wet. An emu can cover up to 4 cells in one step, and a step may not turn a corner. In the diagram below, in how many dry cells will the emu NOT search for food? 1 1 1 2 1 2 2 2 1 2 2 2 2 2 2 Mike Clapper - Executive Director AMT 21/09/2018
39
Junior 5. Emu Emus will take at most 3 steps from the nesting burrow in search of food. They refuse to walk through water or even over water. B is the location of the burrow and the shaded cells are wet. An emu can cover up to 4 cells in one step, and a step may not turn a corner. In the diagram below, in how many dry cells will the emu NOT search for food? 1 1 1 3 2 1 2 2 3 2 1 2 2 2 2 2 3 3 3 3 3 2 3 3 3 3 3 Mike Clapper - Executive Director AMT 21/09/2018
40
Junior 5. Emu Emus will take at most 3 steps from the nesting burrow in search of food. They refuse to walk through water or even over water. B is the location of the burrow and the shaded cells are wet. An emu can cover up to 4 cells in one step, and a step may not turn a corner. In the diagram below, in how many dry cells will the emu NOT search for food? 9 1 1 1 3 2 1 2 2 3 2 1 2 2 2 2 2 3 3 3 3 3 2 3 3 3 3 3 Mike Clapper - Executive Director AMT 21/09/2018
41
Senior 3. Frog White squares represent lily pads and grey squares represent water. A frog may jump from one lily pad to another, horizontally or vertically. It can jump over large spans of water, but it may not jump over another lily pad. Beginning on the lily pad marked ‘F’, what is the minimum number of jumps the frog needs in order to ensure that it can reach any other lily pad? Mike Clapper - Executive Director AMT 21/09/2018
42
Senior 3. Frog White squares represent lily pads and grey squares represent water. A frog may jump from one lily pad to another, horizontally or vertically. It can jump over large spans of water, but it may not jump over another lily pad. Beginning on the lily pad marked ‘F’, what is the minimum number of jumps the frog needs in order to ensure that it can reach any other lily pad? 1 1 Mike Clapper - Executive Director AMT 21/09/2018
43
Senior 3. Frog White squares represent lily pads and grey squares represent water. A frog may jump from one lily pad to another, horizontally or vertically. It can jump over large spans of water, but it may not jump over another lily pad. Beginning on the lily pad marked ‘F’, what is the minimum number of jumps the frog needs in order to ensure that it can reach any other lily pad? 2 2 1 2 2 1 2 Mike Clapper - Executive Director AMT 21/09/2018
44
Senior 3. Frog White squares represent lily pads and grey squares represent water. A frog may jump from one lily pad to another, horizontally or vertically. It can jump over large spans of water, but it may not jump over another lily pad. Beginning on the lily pad marked ‘F’, what is the minimum number of jumps the frog needs in order to ensure that it can reach any other lily pad? 3 3 3 3 2 3 2 1 2 2 1 2 3 Mike Clapper - Executive Director AMT 21/09/2018
45
Senior 3. Frog White squares represent lily pads and grey squares represent water. A frog may jump from one lily pad to another, horizontally or vertically. It can jump over large spans of water, but it may not jump over another lily pad. Beginning on the lily pad marked ‘F’, what is the minimum number of jumps the frog needs in order to ensure that it can reach any other lily pad? 4 4 4 4 3 3 4 4 4 3 4 4 3 2 3 2 1 2 2 1 2 3 4 Mike Clapper - Executive Director AMT 21/09/2018
46
Senior 3. Frog White squares represent lily pads and grey squares represent water. A frog may jump from one lily pad to another, horizontally or vertically. It can jump over large spans of water, but it may not jump over another lily pad. Beginning on the lily pad marked ‘F’, what is the minimum number of jumps the frog needs in order to ensure that it can reach any other lily pad? 5 4 5 5 4 4 5 5 4 3 3 4 4 4 3 4 4 3 2 3 2 1 2 2 1 2 3 4 Mike Clapper - Executive Director AMT 21/09/2018
47
Senior 3. Frog White squares represent lily pads and grey squares represent water. A frog may jump from one lily pad to another, horizontally or vertically. It can jump over large spans of water, but it may not jump over another lily pad. Beginning on the lily pad marked ‘F’, what is the minimum number of jumps the frog needs in order to ensure that it can reach any other lily pad? 5 5 4 5 5 4 4 5 5 4 3 3 4 4 4 3 4 4 3 2 3 2 1 2 2 1 2 3 4 Mike Clapper - Executive Director AMT 21/09/2018
48
Senior 4. Musca Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? Mike Clapper - Executive Director AMT 21/09/2018
49
Senior 4. Musca W W W W W W W W W W W W 21/09/2018
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? W W W W W W W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
50
Senior 4. Musca W W W W W L W L W W W W W W 21/09/2018
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? W W W W W L W L W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
51
Senior 4. Musca W W W W W W W W W L W L W W W W W W W W W 21/09/2018
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? W W W W W W W W W L W L W W W W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
52
Senior 4. Musca W W L W W W W W W L W L L L W L W W W W W W W W W
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? W W L W W W W W W L W L L L W L W W W W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
53
Senior 4. Musca W W L W W W W W W W W W W W L W W W L L L W W L W W W
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? W W L W W W W W W W W W W W L W W W L L L W W L W W W W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
54
Senior 4. Musca W W L W W W W W W W W W L W W L W W L W L L L W W L W
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? W W L W W W W W W W W W L W W L W W L W L L L W W L W W W W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
55
Senior 4. Musca W W L W W W W W W W W W W L W W L W W L W L L L W W L
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? W W L W W W W W W W W W W L W W L W W L W L L L W W L W W W W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
56
Senior 4. Musca W W L W W W W W W W W W W L W W L W W L W L L L W W L
Two players take turns to move a counter one or more cells to the left or down. The counter may not be moved onto or across a shaded cell. The winner is the player who moves the counter to the bottom left hand corner. Some cells will be winning cells for the player who goes first, and some will be losing cells. In the diagram below, how many of the cells marked × are winning cells? 3 W W L W W W W W W W W W W L W W L W W L W L L L W W L W W W W W W W W W Mike Clapper - Executive Director AMT 21/09/2018
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.