Computing Algorithms Debug Whats new? Decomposing Physical - - PowerPoint PPT Presentation

computing
SMART_READER_LITE
LIVE PREVIEW

Computing Algorithms Debug Whats new? Decomposing Physical - - PowerPoint PPT Presentation

The Curriculum from September 2014 Computing Algorithms Debug Whats new? Decomposing Physical Systems Programs Digital Devices Networks The Curriculum from September 2014 Many words / phrases / ideas in Computer Science started in the


slide-1
SLIDE 1

The Curriculum from September 2014

Computing

Algorithms Debug Decomposing Physical Systems Programs Digital Devices Networks

What’s new?

slide-2
SLIDE 2

The Curriculum from September 2014

Many words / phrases / ideas in Computer Science started in the 'real world'.

Oxford English Dictionary 11th March 1889: "Mr. Edison, I was informed, had been up the two previous nights discovering 'a bug' in his phonograph - an expression for solving a difficulty, and implying that some imaginary insect has secreted itself inside and is causing all the trouble."

Greek: pro = before Graphein = write Or 'write publicly'.

BUG

PROGRAM

slide-3
SLIDE 3

The Curriculum from September 2014

A set of rules to be followed: In calculations and In problem-solving.

Algorithm

slide-4
SLIDE 4

The Curriculum from September 2014

Algorithm

Examples: Cake recipe How to draw a square Instructions to move your robot How to get changed for PE Instructions to build a car in DT Plan to build a Lego model Directions to hidden treasure How to build a paper plane

slide-5
SLIDE 5

The Curriculum from September 2014 Algorithm

A set of rules to be followed.

slide-6
SLIDE 6

The Curriculum from September 2014 Algorithm

A set of rules to be followed

slide-7
SLIDE 7

The Curriculum from September 2014

Hokey Cokey

Algorithm

Birdie Song Time Warp Cha Cha Slide

slide-8
SLIDE 8

The Curriculum from September 2014

Fully straighten left arm Bend left arm 90° Repeat x2 Shake left arm up and down Shake left arm right to left Turn right 360° Right arm Left leg Right leg Whole self

This will possibly require a new algorithm

slide-9
SLIDE 9

The Curriculum from September 2014

Floor plan

How would you get out via the fire escape if there was a fire? Write the instructions from point A – what are the different ways of exiting?

slide-10
SLIDE 10

The Curriculum from September 2014 Humans make mistakes Programs will therefore contain bugs / errors Part of the programming cycle Requires logical reasoning Resilience and persistence

Debug

slide-11
SLIDE 11

The Curriculum from September 2014

What is debugging?

Debugging is where you Identify and remove errors

To debug, you need to be:

  • Methodical
  • Thorough
  • Clear

http://www.bbc.co.uk/guides/ztkx6sg#z3xv34j

slide-12
SLIDE 12

The Curriculum from September 2014

What is debugging?

Identify and remove errors Syntax bug – spelling / layout Logic bug – steps in the sequence

slide-13
SLIDE 13

The Curriculum from September 2014

Making a jam sandwich

Debugging

slide-14
SLIDE 14

The Curriculum from September 2014

When we solve computer programming problems we need to make choices about what to do and what order to do them in. Sometimes the problem is so big or complex that we don’t know where to start. Decomposition is when we break a problem down into smaller parts to make it easier to tackle.

Decompose

slide-15
SLIDE 15

The Curriculum from September 2014

Physical Systems Digital devices

slide-16
SLIDE 16

The Curriculum from September 2014

£8

slide-17
SLIDE 17

The Curriculum from September 2014

Hour of Code http://code.org/learn BBC Bitesize (iWonder) http://www.bbc.co.uk/guides/zxgdwmn Codemonkey http://www.codemonkey.co.il/challenges/0 Scratch https://scratch.mit.edu/