160 likes | 305 Views
Teacher’s Page. Link to KS3 Computing Curriculum Understand at least two key algorithms for each of sorting and searching; use logical reasoning to evaluate the performance trade-offs of using alternative algorithms to solve the same problem Triangle feedback Card Sort Sort Instructions
E N D
Teacher’s Page Link to KS3 Computing Curriculum • Understand at least two key algorithms for each of sorting and searching; • use logical reasoning to evaluate the performance trade-offs of using alternative algorithms to solve the same problem • Triangle feedback • Card Sort • Sort Instructions • Weights / Jars • Other Ideas
What shall I do? “how do computers know how to do things?”
Starter • Get into groups of three • Sort the sweets into colours • Think about the way you are sorting them • Compete your learning triangle
A way of doing something An Algorithm A method A set of instructions for doing something (Commands)
You are going to learn how a computer sorts CARD SORT • Put all the cards into order, Largest to smallest • How quick is this algorithm? • Muddle up all the cards again • Look at the sort methods you have on the sheet • Select one and use this algorithm for sorting the cards in your pile into order (Largest first to smallest) • How quick is this algorithm? • Complete the comparison table • Merge sort is the hardest!
You are going to learn how a computer sorts WEIGHT SORT • Put all the Jars into order of weight, Largest to smallest • How quick is this algorithm? • Muddle up all the Jars again, maybe swap jars • Look at the sort algorithms you have on the sheet • Select one and use this method for sorting the jars into order (Largest first to smallest) • How quick is this method? • Complete the comparison table • Merge sort is the hardest!
Sort Methods as Dances • Bubble Sort • Bubble Lego sort • Quick Sort • Merge Sort • All sorts Animated
Extension • Create your own dance version of one of the algorithms • Create a short animation • Create a video • Research another sorting algorithm and create a resource
Answers JARS CORRECT ORDERS • A 2,3,5,1,4 • B 1,5,3,4,5 • C 2,4,1,3,5 • D 2,5,1,4,3 • E 5,1,3,4,2
Plenary • What is an algorithm? • What sorting algorithms are there? • Which is best and WHY? • Where else do you use algorithm in life? • Complete the last two grids • Write a poem or rap about what you have learnt today
JambotTeacher’s Page Pupils need to write a series of instructions that only use the words provided. Each command must contain a left or right hand indicator. You could demo making a sandwich but don’t use the commands. •Pupils need to be both challenged to be accurate and encouraged to refine and debug their instructions as a normal part of computing. •As the robot be pedantic and petty. Do exactly what pupils tell you even if it involves putting your hand in the butter or jam. •See the accompanying video to see common errors and examples that are correct. Don’t show the videos to pupils. •Pupils can split two word commands and use only one eg Jam or Jar •If you have another adult in the class get them to be bots as well. By Phil Bagge @baggiepr code-it.co.uk Adapted from an idea by Dan Gardner
JAMBOT • Welcome • Jambot makes bread • Tell it what to do! • Make a sandwich