Skip to content
Exit presentation

Data & Patterns II

One switch, two messages

A switch has two positions: down, or up. That is the whole switch.

A switch. Set down.
Step 1 of 4
  1. A switch. Set down.
  2. Down means "stay".
  3. Flip it up.
  4. Up means "come".

A sender sets a switch. A reader looks at it. These are its two ends.

A bit can be pictured as one switch with two states. A state means something only if both ends agreed first.

A state is one position of the switch.

We write the two states as 0 and 1. The name is short for binary digit. A digit is one of 0 to 9. A binary digit is only 0 or 1. Nothing inside the switch looks like a digit.

One switch, read once, cannot tell three messages apart. The switch has only two states. "Now", "later" and "not at all" need more.

Can one switch say it?

Loading lab…

Jump to lesson

This track

  1. 0 Start here
  2. 1 One switch, two messages
  3. 2 Add a switch, double the patterns
  4. 3 Give a pattern a meaning
  5. 4 One row per thing, one column per fact
  6. 5 Sorting and filtering
  7. 6 The big picture
  8. 7 Track quiz

Other tracks