- Author: Renkai Ji
- CS6301, Project 6
- Section 014
Compare the performance of the following minimum spanning tree algorithms:
- Prim's algorithm (implementation 1 )
- Prim's algorithm (implementation 2) - I using two different types of heap(pairing heap and binary heap with array recording indices) for implementation 2
- Kruskal's algorithm
ComparisonStatistics.txt
Readme.txt
src/WeightedGraph2.java
src/DisjSets.java //Disjointed set data structure used for implementation of Kruskal's algorithm
src/PairingHeap.java //Heap structure for implementation 2 of Prim's algorithm
src/performanceComparison.java
//Main funcion to handle input of test file, running times calculation of different implementations and output the result.
on command line,
To compile, run: change your current working directory to Project6\src: javac -d . *.java
To execute, run: change your current working directory to Project6\src: java performanceComparison
//To change the test file: //First, you need to copy your target file into the directory Project6\src. //Second, you need change the file name to your target file name in the main function of src/performanceComparison.java