Department of Computing
Week 10
Objectives : to learn more about graphs. Reference Carrano Chapter 13.
- * Draw the adjacency matrix for the above graph.
- * Draw the adjacency list for the above graph.
- * Perform a Depth First Search starting at vertex A. At each point where there is a choice, choose the vertex which is smallest alphabetically.
- * Perform a Breadth First Search starting at vertex A. At each point where there is a choice, choose the vertex which is smallest alphabetically.
- Construct the DFS spanning tree.
- Construct the BFS spanning tree.
- Construct a minimum spanning tree using Prim's algorithm.
- Construct a minimum spanning tree using Kruskal's algorithm.
- Discuss the relative efficiency of Prim's versus Kruskal's algorithm.
All enquiries to Ros Ballantyne