All worksheets topics

3.15 Adjacency matrices and walksIB Maths: Applications and Interpretation HL: Subtopic test

10 questions, 27 marks

IB Maths: Applications and Interpretation HL

3.15 Adjacency matrices and walks

Total 27 marks

Name

Class

Date

  1. 1
    A network has four routers PP, QQ, RR and SS. The links are PQPQ, PRPR, QRQR and RSRS, and each link works in both directions. The network is modelled as a graph with the routers as vertices and the links as edges. Let A\mathbf{A} be its adjacency matrix with rows and columns in the order PP, QQ, RR, SS.
    (a)
    Which of these is the row of A\mathbf{A} that belongs to router RR?
    [1 mark]
    • A(1,1,0,1)(1,1,0,1)
    • B(1,1,1,1)(1,1,1,1)
    • C(0,0,1,0)(0,0,1,0)
    • D(1,1,0,0)(1,1,0,0)
    (b)
    Find the number of walks of length 3 from PP to SS.
    [1 mark]
    • A00
    • B22
    • C11
    • D33
    (c)
    Use your GDC to find the number of walks of length 4 from PP to SS.
    [2 marks]

    Total for question 1: 4 marks

  2. 2
    A delivery company has four hubs AA, BB, CC and DD with one-way routes A→BA\to B, B→CB\to C, C→AC\to A, C→DC\to D and D→BD\to B. This is modelled as a directed graph. Let M\mathbf{M} be its adjacency matrix, where the entry in row ii, column jj is the number of routes from hub ii to hub jj, in the order AA, BB, CC, DD.
    (a)
    Find the number of walks of length 2 from CC to BB.
    [1 mark]
    • A00
    • B11
    • C33
    • D22
    (b)
    Find the number of walks of length 3 from AA to AA.
    [1 mark]
    • A00
    • B11
    • C22
    • D33
    (c)
    Use your GDC to find the number of walks of length 5 from DD to CC.
    [2 marks]

    Total for question 2: 4 marks

  3. 3
    Four villages WW, XX, YY and ZZ are joined by two-way roads, with distances in km: WXWX is 12, WYWY is 7, XYXY is 5, XZXZ is 9 and YZYZ is 4. There are no other roads.
    (a)
    Write down the weighted adjacency table for the villages, in the order WW, XX, YY, ZZ, using –\text{–} where there is no direct road.
    [3 marks]
    (b)
    The adjacency matrix of the road network, ignoring distances, is B=(0110101111010110)\mathbf{B}=\begin{pmatrix} 0 & 1 & 1 & 0 \\ 1 & 0 & 1 & 1 \\ 1 & 1 & 0 & 1 \\ 0 & 1 & 1 & 0 \end{pmatrix}.
    Use your GDC to find (i) the number of walks of length 3 from
    WW to ZZ, (ii) the number of walks of length at most 3 from WW to ZZ.
    [4 marks]

    Total for question 3: 7 marks

  4. 4
    A small website has four pages AA, BB, CC and DD. Page AA links to BB and CC; page BB links to CC; page CC links to AA and DD; page DD links to AA. A surfer on a page clicks one of its links at random, each link equally likely. The surfer's movement is modelled by the transition matrix T\mathbf{T}, whose entry in row ii, column jj is the probability of moving from page jj to page ii, with the pages in the order AA, BB, CC, DD.
    (a)
    (i) Write down the transition matrix T\mathbf{T}.
    (ii) The surfer starts on page
    AA. Find the probability of being on each page after 2 clicks.
    (iii) State why every column of
    T\mathbf{T} sums to 1.
    [6 marks]
    (b)
    (i) Use your GDC to find the steady state vector s\mathbf{s} satisfying Ts=s\mathbf{T}\mathbf{s}=\mathbf{s}, where the entries of s\mathbf{s} sum to 1.
    (ii) Write down the pages with the highest PageRank, and explain what this means for the surfer.

    (iii) The owner of page
    DD adds a link from DD to BB, so DD now links to both AA and BB. Write down the new column DD of T\mathbf{T}.
    [6 marks]

    Total for question 4: 12 marks

End of questions

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).