Focus: Sum of Degrees, Loops/Multiple Edges, Trees & Minimum Spanning Network
A graph $G = (V, E)$ has vertices $V = \{P, Q, R, S, T\}$. The degrees of the vertices are given as $d(P) = 3$, $d(Q) = 4$, $d(R) = 2$, $d(S) = 3$, and $d(T) = 2$.
(a) Calculate the sum of degrees, $\sum d(v)$. [1 mark]
(b) Determine the number of edges, $E$, in this graph. [2 marks]
(c) State whether this graph can be a tree. Give your reason. [1 mark]
(a) $\sum d(v) = 3 + 4 + 2 + 3 + 2$
(b) $\sum d(v) = 2E \implies 14 = 2E$
(c) Tree test: For 5 vertices, a tree must have $E = 5 - 1 = 4$ edges.
A graph has 4 vertices with degrees $3, 3, 2, 2$.
(a) Determine if such a graph can be drawn. Justify your answer using Euler's theorem. [2 marks]
(b) If a loop is added to one of the vertices of degree 2, what is its new degree? [2 marks]
(a) $\sum d(v) = 3 + 3 + 2 + 2 = 10$ (Even number). Number of vertices with odd degrees is 2 (even).
(b) A loop adds 2 to the degree of the vertex
State TWO conditions that must be fulfilled for a subgraph to be classified as a tree. [4 marks]
Any two of the following:
Telekom Malaysia plans to lay underground high-speed fiber-optic cables connecting six towns: $A, B, C, D, E, F$. The distances between connected towns in kilometers are given below:
(a) State the number of edges required to form a tree connecting all 6 towns. [2 marks]
(b) Determine the minimum total length of fiber optic cable needed by constructing a minimum spanning tree. [5 marks]
(c) If the cost of laying cable is RM8,000 per km, calculate the total minimum expenditure. [2 marks]
(a) Edges in tree: $E = V - 1 = 6 - 1$
(b) Select 5 shortest edges avoiding cycles (Kruskal's algorithm):
(c) Total expenditure
A courier van departs from Depot $O$ to delivery point $Z$ through a directed highway network with toll costs shown below:
(a) List all possible valid routes from Depot $O$ to delivery point $Z$. [4 marks]
(b) Determine the cheapest route and its minimum total toll cost. [3 marks]
(c) If route $B \to C$ is closed for maintenance, state the best alternative route and the additional cost incurred. [2 marks]
(a) Valid routes and costs:
(b) Minimum cost route:
(c) If $B \to C$ closed, remaining best is $O \to A \to C \to Z$ or $O \to A \to B \to D \to Z$ (RM 18).