The idea, step by step
Why a square counts two-step walks
An entry of adds products over all possible intermediate vertices . Each product counts the ways to take a first connection to and then a second connection to the destination. The sum counts all two-step walks.
More generally, counts exactly steps when entries of count direct connections. A walk may repeat edges or vertices. A simple path usually excludes repeated vertices, so a matrix power should not be described as counting simple paths.
Exact length, alternatives and returns
For walks of one or two steps, add the relevant entries of . A zero in rules out only two-step walks; a shorter or longer route may exist. Include the identity matrix only if zero-step staying is an allowed alternative.
Diagonal entries count returns to the starting vertex after the specified number of steps. They do not directly count distinct cycles: repeats are allowed, and different walks may use the same edges. Larger powers are suitable for technology, but the interpretation must still identify the endpoints and exact number of moves.
| Matrix | Row 1 | Row 2 | Row 3 |
|---|---|---|---|
| A | 0, 1, 1 | 0, 0, 1 | 1, 0, 0 |
| A squared | 1, 0, 1 | 1, 0, 0 | 0, 1, 1 |
A common trap
Reading as a count of walks with up to three steps.
Instead: A power counts exactly its exponent’s number of steps.
See the thinking
A two-leg journey
For rows (0,1,1),(0,0,1),(1,0,0), count two-step walks A to C.
- Multiply row A by column C: .
- The walk is A→B→C; the direct A→C edge has only one step.
A return count
For the undirected path A–B–C, explain the central entry 2 of its squared adjacency matrix.
- B→A→B is one two-step return.
- B→C→B is another.
Check your understanding
What does mean under row-start convention?
Show answer
Seven four-step walks from B to C.
The exponent gives the move count; indices give start and destination.
Your turn
6 questions · 18 marks · Work at your own pace.
Read the questions online
- For rows : (0,1,1),(0,0,1),(1,0,0), find .3 marks
- For that , find and interpret it.3 marks
- In the undirected path A–B–C, count two-step walks from A to C and from A to A.3 marks
- Two vertices have one arrow in each direction and no loops. Find the square of their adjacency matrix.3 marks
- For the illustrated network, count A-to-C walks using one or two steps.3 marks
- Why does a positive entry in not guarantee a journey through five different vertices?3 marks
Read the worked solutions
Equivalent correct methods earn the corresponding marks. Include units where asked.
- For rows : (0,1,1),(0,0,1),(1,0,0), find .3 marks
Row 1 entries: ; ; .
Row 2 entries: ; ; .
Row 3 entries: ; ; .
So has rows (1,0,1),(1,0,0),(0,1,1).
[(1, 0, 1); (1, 0, 0); (0, 1, 1)] - For that , find and interpret it.3 marks
Row A of is (1,0,1).
Dot it with column C of , (1,1,0), to obtain 1.
The walk is A→C→A→C.
1: one three-step walk from A to C. - In the undirected path A–B–C, count two-step walks from A to C and from A to A.3 marks
They are A→B→C and A→B→A.
One of each. - Two vertices have one arrow in each direction and no loops. Find the square of their adjacency matrix.3 marks
Adjacency rows are (0,1),(1,0).
Two steps return each start to itself.
The identity matrix. - For the illustrated network, count A-to-C walks using one or two steps.3 marks
The direct count is 1.
The two-step count is 1. Add the alternatives.
2. - Why does a positive entry in not guarantee a journey through five different vertices?3 marks
A walk may revisit a vertex or edge.
The exponent counts edges used, not distinct vertices.
Curriculum reference & lesson scope
SACE Board of South Australia
Stage 2 General Mathematics matrix-models option. This is the offered fifth-topic option, alongside the four compulsory topics; a school-designed Open Topic is an alternative, not prescribed content in this chapter.
Official curriculum source ↗