Skip to content
Tactiverge

School/◇ Explorer/Week 13

Grids and ordered pairs: giving every point an address

How can you tell a robot exactly where a dropped screw is on a factory floor, using just two numbers?

About 25 min · 3 goals · Checked by automated tests; not yet reviewed by an educator

1.Why should I care?

Every robot, game, map app and 3D printer uses coordinates. Before a machine can go anywhere, someone must agree where zero is and which way is which. Get that wrong and the robot goes to the wrong place with total confidence.

  • ◇ Name the origin, the x-axis and the y-axis of a coordinate grid.
  • ◇ Read and plot points written as ordered pairs (x, y).
  • ◇ Explain why the order of the two numbers matters.

2.Predict

A robot is told to go to (2, 5). Where does it end up?

Guess first. Being wrong here is how the surprise works.

3.Discover

Drive the robot from (0, 0) to the star. Before each move, say out loud what the new coordinates will be. Then press 'New target' and do it again without looking at the readout.

Grid robot

Coordinates are an address: (x, y) means go x across, then y up, from the origin (0, 0). Drive the robot to the star with the buttons, or focus the grid and use the arrow keys.

Grid

Program so far: (empty)

Robot at (0, 0). Target star at (5, 3).

Can't use the interactive? Read a description instead

The grid robot diagram shows a square grid numbered 0 to 8 on both axes, with the origin at the bottom left. A robot starts at (0, 0) and a star marks the target. Each button moves the robot one square: right adds 1 to x, left subtracts 1, up adds 1 to y, down subtracts 1. The readout announces the robot's coordinates after every move.

4.Watch

→ Watch for which number tells you to move across and which tells you to move up.

Shows how an ordered pair (x, y) tells you exactly where to put a point: across first, then up.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

5.Understand

Two number lines

Draw a number line across the page: that's the x-axis. Draw another going up: that's the y-axis. They cross at the origin, the point (0, 0). Every point now has an address made of two numbers.

Across, then up

A point is written as an ordered pair (x, y). Start at the origin, go x across, then y up. A memory trick: along the corridor, then up the stairs. (3, 1) and (1, 3) are different points, so the order really matters.

Why engineers love grids

Once every point has an address, a machine can be given exact instructions: 'drill at (40, 25) mm', 'pick up the part at (3, 7)'. The grid can be any size: millimetres on a circuit board, metres in a warehouse, kilometres on a map.

Explain it another way

Coordinates are like seat numbers in a cinema: row and seat. 'Seat 4, row 7' is not the same as 'seat 7, row 4', and you'd end up in someone else's seat.

Worked example 1

A drawing robot starts at (1, 2) and draws straight lines to (4, 2), (4, 5) and back to (1, 2). What shape is it?

(1, 2) → (4, 2) goes 3 across. (4, 2) → (4, 5) goes 3 up. Back to (1, 2) is a diagonal. It's a right-angled triangle with two 3-unit sides.

Common mix-ups

  • (3, 5) and (5, 3) are the same point.
    ✓ Order matters: (3, 5) is 3 across and 5 up; (5, 3) is 5 across and 3 up.

6.Practice

Practice, not a test. Wrong answers get a hint and another try.

Practice 1

A point is 4 squares across and 1 square up from the origin. How is it written?

Practice 2

What is the y coordinate of the point (6, 3)?

Practice 3

What are the coordinates of the origin?

Practice 4 · a fresh version every time

A grid robot starts at (2, 3). It moves: 2 left, 2 right, 2 up, 1 right, 1 up. What is its y coordinate now? (Up adds to y; right adds to x.)

7.Apply it

Draw an 8 × 8 grid and plot a simple picture (a house, a rocket) by joining points. Write the list of coordinates so a friend, or a drawing robot, could redraw it without seeing yours.

8.Reflect

Concepts: Coordinate frames and transforms