Lesson2Slides.pptx
Document Details
Uploaded by ClearedBambooFlute
Cardinal Griffin Catholic College Cannock
2024
Tags
Full Transcript
www.Cardinalgriffin.staffs.sch.uk P Prior Learning Title: Lesson 2: Pattern A An algorithm is a list recognition of instructions that I solve a problem. Date 31/08/24 N...
www.Cardinalgriffin.staffs.sch.uk P Prior Learning Title: Lesson 2: Pattern A An algorithm is a list recognition of instructions that I solve a problem. Date 31/08/24 N : How would S you draw this L image? E Y Be a Griffin www.Cardinalgriffin.staffs.sch.uk P A Acquire New New Vocabulary I Learning Computational Pattern recognition is thinking N finding the Decomposition similarities or abstraction S patterns algorithm design L pattern recognition E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P AAcquire New Learning Pattern recognition I Pattern recognition is the fourth cornerstone of computational thinking. N It is an important part of problem solving because, if you can identify similarities between two different problems, you might be able to apply the same or a slightly S modified solution to both problems. This enables computer programmers to work efficiently, L solving problems more quickly and writing less code. E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.1: Demo where to locate and how to We Do complete I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.1: Flower design problem You Do I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P AAcquire New Learning Two flowers I N S L E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P AAcquire New Computational thinking Learning When you were thinking about the flower designs, you I were carrying out computational thinking. When you were identifying patterns in the original flower, N you were decomposing the flower and carrying out pattern recognition. When you made a list of elements that could be removed S or changed and still leave a recognisable flower design, you were carrying out abstraction. When you were identifying the similarities and differences L between the flowers, you were carrying out pattern recognition. Computational thinking will help you create an algorithm E for drawing the abstracted flower, an algorithm that could then be adapted to draw an infinite number of different flowers. Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.2: Demo where to locate and how to We Do complete I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.2: Flower algorithm You Do I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P AAcquire New Learning Modular programming I Where possible, you should take a modular approach to programming. Modules are small chunks of code that perform a discrete task. In Logo, N these chunks of code are called ‘procedures’. They are called on by the main program when needed. Modularity brings a number of important benefits to the programmer. S A module can be used many times within a single program. A module can be used in more than one program. A module can easily be changed to do something similar but slightly different. L Code written in modules is easier to read and debug than a single long sequence of code. Modules are more efficient for the programmer to write because they use fewer lines of code. E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.3: Demo where to locate and how to We Do complete I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.3: Flower program You Do I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P AAcquire New Learning Flower program I Creates a procedure called squ to squ N Creates a loop that will repeat repeat 4 [fd 100 rt 90] four times (draw line, turn 90 end degrees right) Ends the procedure S setwidth 10 Changes the line width to 10 repeat 6 [squ rt 60] Creates a loop that will repeat 6 times (calling the squ procedure) L ht Hides the turtle E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.4: Demo where to locate and how to We Do complete I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P A Activity 2.4: Comparing Code You Do I N S L Lots of Written Practice E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P AAcquire New Learning Spot the pattern I How will a flower drawn using the code below differ from the flower shown? N to petal repeat 8 [fd 50 rt 45] S end setwidth 3 setpencolor 4 L repeat 10 [petal rt 36] ht E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns www.Cardinalgriffin.staffs.sch.uk P AAcquire New Learning I N S L E Y Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns P A Success I N Grade 1- What is3the namecriteria given to a carefully Grade 4- 7 Which cornerstone of computational Grade 8- 9 Use your skills of pattern recognition sequenced series of thinking often to identify the S instructions that can be coded in a relies on numerical picture that is most computer data in the form of unlike the others. L programming graphs and charts? language? E Y www.Cardinalgriffin.staffs.sch.uk P Reca Recall A p What are files What is an I algorithm? organised into? N S Spaced Learnin Why is it important to What does being L g save files with respectful look like? sensible names? E Long Emb Retrieval Y ed Acquire New Learning Be a Griffin Pattern recognition is finding the similarities or patterns