COMP225 : Algorithms and Data Structures
Week 11
Objectives : to learn more about graphs. Reference Carrano Chapter 13.

Considering the above graph:
- Construct the DFS spanning tree starting from vertex A.
- Construct the BFS spanning tree starting from vertex A.
- (*)Construct a minimum spanning tree using Prim's algorithm. Start from vertex A. For submission you may just submit the final MST but you should be able to trace through the algorithm.
- (*)Construct a minimum spanning tree using Kruskal's algorithm. For submission you may just submit the final MST but you should be able to trace through the algorithm.
Considering the above graph:
- (*) Trace through Dijkstra's single-source shortest path algorithm on the above graph, starting from vertex a. Show the vertex set and weight array at each step. Wherever there is a choice of vertex you should choose the smallest alphabetically.
Show the full working for submission here i.e. weight array and vertex Set at each step.
- State the loop invariant of Dijkstra's algorithm.
- Discuss the efficiency of Dijkstra's shortest path algorithm.
- Now repeat Dijkstra's algorithm starting from D.
All enquiries to Ros Ballantyne