Skip to content
Tactiverge

Learning Rooms/○ Level 3 · Innovator/Computing and algorithms

Computers Without Memory - Computerphile

Computerphile · 8 min 51 s · captions on YouTube · nothing loads until you press play

By the end you can…

  • Describe robot behaviour as states, events, transitions and guards.
  • Trace a guarded state machine through a sequence of events by hand.
  • Explain why the order of rules matters when guards overlap.
?Predict▶Watch✓Practise⚙Build

Watch it all: no segment has been checked by hand for this video yet.

1.Predict before you press play

The robot is DRIVING and receives the event 'order'. There is no rule for 'order' in DRIVING. What should happen?

Pick one before you press play. A wrong guess is fine: it is what makes the video stick.

2.See the idea first

Play with this diagram for a minute. It gives you something to hang the video on.

Loading the interactive…

Can't use the diagram? Read a description instead

The state-machine runner shows a table of rules: IDLE plus order goes to DRIVING if battery is at least 30 %, else CHARGING; DRIVING plus arrived goes to DELIVERING; DRIVING plus bump goes to FAULT; DELIVERING plus done goes to IDLE and costs 20 % battery; CHARGING plus charged goes to IDLE at 100 %; FAULT plus reset goes to IDLE. Sending events steps through the table.

3.Watch, actively

Introduces machines that run on states and transitions, the same idea a traffic-light controller uses.

8 min 51 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

Watch for…

  • → Watch how a machine with no memory except its current state can still recognise patterns. Our robot is the same idea with actions attached.
  • → Listen for what a state 'means': it summarises everything about the past that matters for the future.

Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.

Can't stream it? Read the idea instead

A state machine remembers only which state it is in. Inputs cause transitions between states, so the current state summarises everything about the past that matters. Traffic lights, vending machines and robot behaviours are all built this way.

What the video covers (our own note, written when we verified it): Introduces machines that run on states and transitions, the same idea a traffic-light controller uses.

Written by Tactiverge in our own words, not a transcript. The full lessons below explain the idea without the video.

Jot down one thing that surprised you and one question you still have.

Private: saved only on this device, never sent to Tactiverge.

4.Practise what you just saw

These come from the lessons that use this video and are checked on the server. Wrong answers get a hint and another try.

Practice 1 · a fresh version every time

A delivery robot starts in IDLE (state 0) with its battery at 35 %. Rules: IDLE(0) + order → DRIVING(1) if battery ≥ 30 %, else → CHARGING(3). DRIVING(1) + arrived → DELIVERING(2). DRIVING(1) + bump → FAULT(4). DELIVERING(2) + done → IDLE(0) and the battery drops by 20 %. CHARGING(3) + charged → IDLE(0) with the battery at 100 %. FAULT(4) + reset → IDLE(0). Any other event in any state is ignored. Events arrive in this order: arrived, arrived, charged, reset, order, reset, order. Which state number is it in at the end?

state number

Practice 2 · a fresh version every time

A Moore machine outputs 1 for one clock whenever the last 2 input bits were 11 (overlaps allowed). Input, first bit first: 011001011100. How many clocks have output 1?

Practice 3

Which pair of guards on IDLE + order is complete and non-overlapping?

Practice 4

A state machine has 6 states. How many flip-flops does a binary state encoding need?

flip-flops

6.Build something with it

Follow-up project

Add a LOW_BATTERY_RETURN state to the delivery robot: while DRIVING, if a 'battery-warning' event arrives, it abandons the delivery and heads to the charger. Write the new rules as a table and trace one sequence through it.

Where this video lives

In the course catalogue: ARCH-310 Sequential logic and state machines · ARCH-420 Processor design

The video is by Computerphile, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.