PAHANG 2025 P2 Q15
MediumWrite your answer on paper. Then open the answer to check it.
(a) Diagram 10.1 shows a directed graph. State n(V), n(E) and d_out(N). Hence, calculate Σd(v). (b) Diagram 10.2 shows an undirected and weighted graph that connects four towns R, S, T and U. (i) Draw a tree based on the graph. (ii) Alex and Johan drive their own cars from town U to town S. Alex follows the shortest distance while Johan follows the longest distance to the town. Calculate the difference of distances, in km, of their journey.
Medium10 marks- (a)
State n(V), n(E) and d_out(N). Hence, calculate Σd(v).
[4]
- (b)(i)
Draw a tree based on the graph.
[2]
- (b)(ii)
Calculate the difference of distances, in km, of the shortest and the longest journey from town U to town S.
[4]