1. NAME : CLASS :
1. List the vertices (V), number of vertices, [n(V)], edges (E) and number of edges [n(E)] for each
of the graph below. Hence, calculate the sum of degrees. [10m]
a) b)
2. Calculate the shortest path from a to c. [1m]
2. 3. Construct two possible subgraphs of Graph G. [2m]
4. On the first day of school, five pupils are seated around a circular table. The teacher asks all the
pupils to shake hands with everyone on the table. How many handshakes will be exchanged at
the table? Justify your answer. [2m]
3. 5. Below are the routes of a domestic airline. The flight times for the routes are given in the table
below. Draw a directed weighted graph to represent the information given.
Hence, calculate the fastest route from Johor Bahru to Kuching. [5m]
Routes Flight time (hour)
KUL to AOR 1.00
KUL to BTU 2.08
JHB to AOR 1.42
AOR to LGK 0.25
BTU to KCH 0.83
KUL to KCH 1.91
JHB to BTU 2.05
JHB to KUL 0.75
Name of place Vertex
Kuala Lumpur KUL
Alor Setar AOR
Bintulu BTU
Johor Bahru JHB
Langkawi LGK
Kuching KCH