Designing Linear Algorithms in Scratch

Learning Objective

At the end of the lesson you will be able to create simple linear algorithms and implement them in Scratch.

1 / 11
next
Slide 1: Slide
New lesson editor

This lesson contains 11 slides, with interactive quizzes and text slides.

Report this lesson

Items in this lesson

Learning Objective

At the end of the lesson you will be able to create simple linear algorithms and implement them in Scratch.

What do you already know about linear algorithms?

What is a Linear Algorithm?

Brushing your teeth: pick up toothbrush, put toothpaste, brush, rinse, finish.

A linear algorithm is a set of instructions performed in order, from start to finish, without repeating or skipping steps.

Definition

Real Life Example

How Algorithms Work

Algorithms are like a recipe: each step must be completed before moving to the next. In Scratch, each command block represents one step.

Features of Linear Algorithms

No loops or decisions. Steps always follow one another in the same order.

Building a Linear Algorithm in Scratch

Start with a 'when green flag clicked' block. Add command blocks for each action in your algorithm. Check that the steps follow one another with no repeats or branches.

Example: Move and Say Hello

Create a linear algorithm: 1. Move sprite forward, 2. Say 'Hello!', 3. Play a sound. Each block is executed once, in order.

Reflection

How would you design a linear algorithm to draw a square in Scratch? List the steps in order.

Write down 3 things you learned in this lesson.

Write down 2 things you want to know more about.

Ask 1 question about something you haven't quite understood yet.