ALGORITHMS

For what?

DUMMY COMPUTER

Needs specific instructions

CONDITIONS

Where to use em?

LOOPS

Where to use em?

VARIABLES

When do we need them?

TOOLS FOR ALGORITHM DESIGN

  • Pseudo code
  • Flow Chart

SIMPLE PSEUDO CODE

START ENGINE
GO 10 STEPS FORWARD
TURN 90 DEGREES RIGHT
GO 20 STEPS FORWARD
STOP ENGINE

ADVANCED PSEUDO CODE

START ENGINE
DO THE FOLLOWING STEPS 100 TIMES
	IF NO OBSTACLES
		GO 1 STEP FORWARD
	OTHERWISE
		TURN 10 DEGREES RIGHT
STOP ENGINE

SIMPLE FLOW CHART

simple flow chart

ADVANCED FLOW CHART

advanced flow chart

BLOCKLY

What is it?

BLOCKLY EXAMPLE

Blockly example

https://blockly-games.appspot.com/maze?lang=en