Skip to content
  1. Home
  2. IB Question Bank
  3. Math AI
  4. Geometry & Trigonometry
  5. Adjacency matrices (incl. weighted) + building transition matrices
Topic 3.18 · HL only · 9 min read

IB Math AI Adjacency matrices (incl. weighted) + building transition matrices practice questions and question bank

Notes on what Adjacency matrices (incl. weighted) + building transition matrices covers and how it is examined, then 6 IB-style practice questions with hints.

Jump to 6 questions
  • Aligned to the current IB syllabus
  • Marked mark by mark, IB-style
  • Free to start, no card needed

Summary

  • Adjacency Matrix: Represents graph connections between vertices.
  • Complete Graph: Each vertex connected to every other vertex by a single edge.
  • Directed Graph: Edges have a specific travel direction.
  • In-degree: Number of edges leading into a specific vertex.
  • Strongly Connected Graph: Directed graph allowing walks in either direction between any two vertices.
  • Weighted Graph: Edges assigned numerical values (e.g., distance, time).
  • Weighted Adjacency Table: Shows exact edge weights; empty cells mean no direct connection.
  • Undirected Weighted Graph: Table of least values has symmetry along the leading diagonal.
  • Markov Chain States: Mutually exclusive events that change over time.
  • Transition State Diagram: Visual representation of a Markov Chain; edges show transition probabilities.
  • Markov Chain Probability Rule: Probabilities on arrows out of a single state sum to 1.
  • Transition Matrix (TT): Shows transition probabilities. Columns = current states, Rows = next states. Column probabilities sum to 1.
  • Walks of length nn: Number of walks found by raising adjacency matrix MM to power nn: Mn M^n
  • Walks of length nn or less: Total walks found by summing successive powers of MM: Sn=M+M2+M3+⋯+Mn S_n = M + M^2 + M^3 + \dots + M^n
  • Future States (Markov Chains): Probability vector for next state (s1s_1) found by multiplying transition matrix (TT) by initial state vector (s0s_0): s1=Ts0 s_1 = T s_0
  • Matrix Diagonalisation (for TnT^n): Tn=PDnP−1 T^n = P D^n P^{-1} where DD is a diagonal matrix of eigenvalues and PP is a matrix of corresponding eigenvectors.
  • Steady State Limits: As n→∞n \to \infty, T∞T^\infty has identical columns; every transition matrix has an eigenvalue of 1.
  • Shortest Route Method: Fill direct connections, then check for shorter paths via intermediate vertices.
  • Expected Populations (Markov Chains): Multiply Ts0T s_0 by total population NN to find expected numbers in each state.
  • Graph Theory (adjacency matrices, walks) and Markov Chains (transition matrices, steady states, diagonalisation) are HL topics.
  • GDC: Store matrices, calculate MnM^n or M+M2+…M + M^2 + \dots, check transition matrix column sums (must be 1).
  • Exam Tip: Draw transition state diagrams to visualise problems.
  • Exam Tip: For undirected graphs, use symmetry of least values table.
  • Exam Tip: Verify steady state calculations by checking for identical columns in T∞T^\infty.
  • Exam Tip: Always check for hidden shorter routes via intermediate nodes in least weights tables.

How it is examined

The AkA^k result is the reliable question: raise the matrix to a power on the GDC, read one entry. "Walks of less than kk length" means summing A+A2+⋯+AkA + A^2 + \dots + A^k, and students often forget the sum and give only AkA^k. Building a transition matrix from a graph is the bridge into AHL 4.19, and the column-versus-row convention has to be stated in the question or the answer is ambiguous.

Key ideas
  • Adjacency matrices.
  • Walks.
  • The number of kk-length walks, or walks of less than kk length, between two vertices.
  • Weighted adjacency tables.

Practice questions

6 questions · 4 medium · 2 hard
Showing 6 of 6

Question 1

MediumPaper 1 · calculator5 marks
(a)

Consider the following directed network representing connections between four data servers: Server P, Server Q, Server R, and Server S.

Directed network graph with nodes P, Q, R, S and various directed edges. Edges are: P to P, P to Q, Q to R, Q to S, R to Q, R to S, S to P.

Write down the adjacency matrix for this network, assuming the order of vertices is P, Q, R, S.

[2]
(b)

Determine the number of different sequences of data transfers (walks) of length 4 that start and end at the same server.

[3]

Question 2

HardPaper 2 · calculator27 marks
(a)

(a) A single data packet can be transferred between three servers, S1, S2, and S3, in a network. The possible direct transfers are:

  • From S1, the packet can be sent to S2 or stay in S1.
  • From S2, the packet can be sent to S1 or S3.
  • From S3, the packet can be sent to S2 or stay in S3.

Write down the adjacency matrix for the directed graph representing these possible direct data transfers, ordering the servers S1, S2, S3.

[2]
(b)

(b) Find the total number of distinct data paths of length 5 from server S1 to server S2.

[3]
(c)(i)

(c.i) Every possible sequence of 5 data transfers has the same probability of occurring. State this probability.

[3]
(c)(ii)

(c.ii) Use your answer to part (b) to find the probability that if a data packet was initially on server S1, it will be on server S2 after 5 transfers.

[3]
(d)(i)

(d.i) A network administrator monitors the movement of two data packets. The possible combined states of the two packets (assuming they occupy distinct servers) are S12S_{12} (packets on S1 and S2), S13S_{13} (packets on S1 and S3), and S23S_{23} (packets on S2 and S3).

The transitions between these states are modelled by the following transition matrix TT, where rows represent the current state and columns represent the next state, in the order S12,S13,S23S_{12}, S_{13}, S_{23}:

T=(00.250.40.60.50.60.40.250)T = \begin{pmatrix} 0 & 0.25 & 0.4 \\ 0.6 & 0.5 & 0.6 \\ 0.4 & 0.25 & 0 \end{pmatrix}

State the probability that if the packets are currently in state S12S_{12}, they will be in state S13S_{13} after one transfer.

[3]
(d)(ii)

(d.ii) Using the transition matrix TT from part (d.i), state the probability that if the packets are currently in state S13S_{13}, they will be in state S23S_{23} after one transfer.

[3]
(d)(iii)

(d.iii) Using the transition matrix TT from part (d.i), state the probability that if the packets are currently in state S23S_{23}, they will be in state S12S_{12} after one transfer.

[3]
(e)

(e) Given that the two data packets are initially in state S12S_{12} (on servers S1 and S2), find the probability that they will be in state S23S_{23} (on servers S2 and S3) after 5 transfers.

[4]
(f)

(f) The data packets continue this pattern of transfers for a long period. Find the server that is occupied least and the proportion of the time it is free.

[3]

Question 3

MediumPaper 1 · calculator6 marks
(a)

A small data network consists of five communication relays, P, Q, R, S, and T. The direct connections between these relays are represented by an adjacency matrix, with rows and columns in alphabetical order.

A=(0110010010100110110100110)A = \begin{pmatrix} 0 & 1 & 1 & 0 & 0 \\ 1 & 0 & 0 & 1 & 0 \\ 1 & 0 & 0 & 1 & 1 \\ 0 & 1 & 1 & 0 & 1 \\ 0 & 0 & 1 & 1 & 0 \end{pmatrix}

(a) Draw and label a graph to represent the adjacency matrix.

[2]
(b)

(b) Determine the number of ways a data packet can travel from a relay and return to the same relay in exactly 3 hops.

[4]

Question 4

HardPaper 2 · calculator17 marks
(a)

The following table shows the average transmission times in milliseconds (ms) for direct data packets between six deep-space observatories. Blank cells indicate no direct data link. The rows represent the sending observatory. The columns represent the receiving observatory.

O1O2O3O4O5O6
O1-120180---
O2120--90150-
O3180--200-220
O4-90200-110160
O5-150-110-250
O6--220160250-

Show the direct data links between the observatories as a graph.

[2]
(b)

Write down the adjacency matrix for this graph, assuming the observatories are ordered O1, O2, O3, O4, O5, O6.

[2]
(c)

Using your answer to part (b), find the number of different ways to transmit data from and return to observatory O1 in exactly 4 hops.

[2]
(d)

State whether or not it is possible to transmit data from and return to observatory O1 in exactly 6 hops, having visited each of the other 5 observatories exactly once. Justify your answer.

[2]
(e)

The following table shows the least transmission time (in ms) to travel between the observatories.

O1O2O3O4O5O6
O10120180a270370
O2120030090150b
O31803000200310220
O4a902000110160
O52701503101100250
O6370b2201602500

Find the values of aa and bb.

[2]
(f)

A research team needs to visit each of the observatories, starting and finishing at observatory O1. Use the nearest neighbour algorithm to find an upper bound for the total transmission time of the trip.

[3]
(g)

By deleting observatory O1, use the deleted vertex algorithm to find a lower bound for the total transmission time of the trip.

[4]

Question 5

MediumPaper 1 · calculator9 marks
(a)(i)

A network of five research laboratories, A, B, C, D, and E, is connected by data links. The diagram below shows the connections between these laboratories.

Network of 5 research laboratories A, B, C, D, E with data links

State, giving a reason, whether the network graph is

(i) simple;

[2]
(a)(ii)

(ii) connected.

[2]
(b)

Complete the adjacency matrix for this network.

(ABCDEA_____B_____C_____D_____E_____)\begin{pmatrix} & A & B & C & D & E \\ A & \_ & \_ & \_ & \_ & \_ \\ B & \_ & \_ & \_ & \_ & \_ \\ C & \_ & \_ & \_ & \_ & \_ \\ D & \_ & \_ & \_ & \_ & \_ \\ E & \_ & \_ & \_ & \_ & \_ \end{pmatrix}

[2]
(c)

Hence, determine the number of ways a data packet can travel from Lab A to Lab C using fewer than three direct links.

[3]

Question 6

MediumPaper 1 · calculator7 marks
(a)

A streaming service offers two subscription plans: Premium and Basic. The service has found that customers' choices follow a pattern. If a customer has the Premium plan in a given month, the probability they will keep the Premium plan the next month is 0.8. If a customer has the Basic plan in a given month, the probability they will upgrade to the Premium plan the next month is 0.1.

(a) Let the states be Premium (State 1) and Basic (State 2). Write down the transition matrix, T, for this Markov chain.

[2]
(b)

(b) A new customer subscribes to the Premium plan in their first month, January. Find the probability that this customer will have the Premium plan in March of the same year.

[2]
(c)

(c) Find the steady state probability vector for this Markov chain.

[3]

1,013 more IB Math AI questions in the app

Every answer is marked mark by mark, IB-style, and the AI tutor helps when you are stuck.

Where marks are lost

  • Using your own wrong value after failing a "show that." All follow through is withdrawn for the rest of that question.
  • Leaving an answer in calculator notation. Never accepted in a final answer, and AI's constant calculator use makes this the easiest slip in the whole subject.

Links to other topics and subjects

  • International-mindedness: the "Bridges of Konigsberg" problem.
  • Links to websites: adjacency matrices and airlines. PageRank is one method for determining the importance rank of a webpage, simulation at www.eprisner.de/MAT103/PageRank.html
Free. Every IB subject.
No card, no trial that runs out. Just a free account.
  • 50 marked answers a month
    Marked mark by mark, IB-style
  • Hints and mark schemes
    On every part of every question
  • 3,000+ questions
    All 6 subjects, SL and HL, mapped to the syllabus
  • Progress that adapts
    Your Study Profile picks what to practise next

Practise this topic as a session

Pick a difficulty and paper, and FourtyFive tracks your progress on this topic as you go.

or with email
FAQ

Questions,
answered.

Can't find what you're looking for? Email our student team.

What does Adjacency matrices (incl. weighted) + building transition matrices cover in IB Maths AI?

Adjacency Matrix: Represents graph connections between vertices. Complete Graph: Each vertex connected to every other vertex by a single edge. Directed Graph: Edges have a specific travel direction.

Is Adjacency matrices (incl. weighted) + building transition matrices SL or HL?

Adjacency matrices (incl. weighted) + building transition matrices is HL only. SL students are not examined on it.

How do I revise Adjacency matrices (incl. weighted) + building transition matrices for IB Maths AI?

Start from the core idea: adjacency Matrix: Represents graph connections between vertices. In the exam: the A^k result is the reliable question: raise the matrix to a power on the GDC, read one entry. "Walks of less than k length" means summing A + A^2 + ... Then practise exam-style questions, easiest first, writing out every step of your working before you check it.

How does FourtyFive help me practise Adjacency matrices (incl. weighted) + building transition matrices?

FourtyFive has 6 Adjacency matrices (incl. weighted) + building transition matrices questions. Every answer you write is marked mark by mark, IB-style, and you see where each mark was won or lost. Every part has a hint, the AI tutor helps you through the step you are stuck on, and your Study Profile picks what to practise next.

Is FourtyFive free for Adjacency matrices (incl. weighted) + building transition matrices practice?

Yes. A free account gives you 50 marked answers a month, and you do not need a card to sign up.

Can I handwrite Adjacency matrices (incl. weighted) + building transition matrices answers on an iPad?

Yes. In the FourtyFive iPad app you write your working by hand with Apple Pencil, the way you would on paper, and it is marked the same way.

Start with the IB question
bank built for you.

Free to start, no card needed. Thousands of syllabus-mapped questions, AI Examiner marking, your weakest topics first.