CS 302 - Data Structures & Algorithms II - Spring 2005
Homework 12
Loyola College >
Department of Computer Science >
CS 302 >
Homework >
Homework 12
Due
Wednesday, February 23 at the beginning of class
Assignment
- Complete the implementation of the Connectivity class (.h file and supporting classes available in Examples)
- Test the class using the implementation of the DenseGraph.
- Modify mainDG.cpp to create a graph of 30 vertices and 50 random edges.
- Output the graph and the number of connected components.
- Randomly choose 5 pairs of numbers and check if they are connected.
- Analyze the class in terms of the space required for the private data fields and the time to execute each method including the constructor using Big-O.