← Back to the lessonTip: print on A4 and turn off the browser's "Headers and footers".
LemonmathSelf-study sheet
IB Maths AI (SL/HL) · Lesson 3.1

Matrices and graph theory

Name: Date: Time spent: min

Goals

Exercises

Exercise 1

Find ABAB for A=(1230)A=\begin{pmatrix}1&2\\3&0\end{pmatrix} and B=(41−12)B=\begin{pmatrix}4&1\\-1&2\end{pmatrix}.

Exercise 2

Find the inverse of C=(4232)C=\begin{pmatrix}4&2\\3&2\end{pmatrix}.

Exercise 3

A graph has five vertices with degrees 3, 3, 2, 2, 23,\ 3,\ 2,\ 2,\ 2. How many edges does it have, and does it have an Eulerian circuit or an Eulerian trail?

Exercise 4

For the graph with edges ABAB, ACAC, BCBC and CDCD, write the adjacency matrix and find the number of walks of length 22 from AA to DD.

Exercise 5

For T=(0.90.30.10.7)T=\begin{pmatrix}0.9&0.3\\0.1&0.7\end{pmatrix}, find the steady-state vector.

Exercise 6

A museum sold 100100 tickets for 880880 dollars. Adult tickets cost 1212 dollars, child tickets 66 dollars and senior tickets 88 dollars, and twice as many child tickets as senior tickets were sold. How many of each were sold?

Exercise 7

For the weighted graph in the lesson, find the length of the shortest route that travels along every edge at least once and returns to its start.

Exercise 8

Four towns have the following distances (km): AB=5AB=5, AC=8AC=8, AD=6AD=6, BC=4BC=4, BD=7BD=7, CD=3CD=3. Find an upper bound for the travelling salesman problem with the nearest neighbour algorithm from A, and a lower bound by deleting A. What can you conclude?

Exercise 9 Challenge

Two phone companies share a market. Each year, 70\% of company X's customers stay and 30\% move to Y, while 80\% of Y's customers stay and 20\% move to X. Each company has half the market now. Find the market shares after 2 years and in the long run.

Mini test

15 minutes, without looking back at the lesson. Part I: circle one letter; Part II: write T or F for each statement; Part III: write the answer in the box.

Part I. Multiple choice

Question 1. If \det A=0, then
A. A^{-1} existsB. A is the identity matrixC. A has no inverseD. A=0
Question 2. In a transition matrix as used here, each column adds to
A. 1B. 0C. the number of statesD. 100
Question 3. A graph has an Eulerian circuit when
A. it has exactly two vertices of odd degreeB. every vertex has even degreeC. it has no cyclesD. every vertex has degree 1
Question 4. The nearest neighbour algorithm for the travelling salesman problem gives
A. the exact best routeB. a lower boundC. a minimum spanning treeD. an upper bound

Part II. True or false

Question 1. A graph has 6 vertices and is a tree. Decide whether each statement is true or false.
a) It is connected.T / F
b) It has no cycles.T / F
c) It has 5 edges.T / F
d) It must have an Eulerian circuit. T / F

Part III. Short answer

Question 1. Find \det\begin{pmatrix}5&2\\3&4\end{pmatrix}.
Question 2. A graph has degrees 4,\ 3,\ 3,\ 2. How many edges does it have?

Score: ........ / 10

Hints (only when stuck)

Exercise 1.

What you need: entry (i,j) is row i of A times column j of B.

Exercise 2.

What you need: \det C=4(2)-2(3).

Exercise 3.

What you need: the sum of the degrees is twice the number of edges.

Exercise 4.

What you need: a walk of length 2 from A to D goes A\to X\to D.

Exercise 5.

What you need: solve 0.9p+0.3(1-p)=p.

Exercise 6.

What you need: three equations in a, c, s; solve with matrices on the GDC.

Exercise 7.

What you need: the odd vertices are B and D.

Exercise 8.

What you need: the minimum spanning tree of B,C,D uses BC and CD.

Exercise 9.

What you need: T=\begin{pmatrix}0.7&0.2\\0.3&0.8\end{pmatrix}, s_0=\begin{pmatrix}0.5\\0.5\end{pmatrix}.

Self-check

#Did it aloneNeeded a hintNot yet
1☐☐☐
2☐☐☐
3☐☐☐
4☐☐☐
5☐☐☐
6☐☐☐
7☐☐☐
8☐☐☐
9☐☐☐

Redo the ones you missed after: ☐ 1 day   ☐ 3 days   ☐ 7 days

Scan for step-by-step solutions