Implementation of Prim's Algorithm using Heap data structure (coded in arrays from scratch) that can compute the overall spanning weight.
- JDK 1.8
- JRE 1.8
- i7 3rd Generation Quad Core Processor
- 16 Gb of RAM
n
v1 v2 w1,2
...
v3 v9 w3,9
...
Create a new folder in your system. Download this repository's files into that folder. Make sure the following commands are running from your terminal/command-line, Windows
javac -version
java -versionUbuntu Linux
javac --version
java --versionCompile the TestHeapMain.java file using the below command
javac TestHeapMain.javaCompile the PrimsAlgoMain.java file using the below command
javac PrimsAlgoMain.java3 class files gets generated, now run the main file with runtime arguments
java PrimsAlgoMain input8.txt- Kleinberg, J., & Tardos, E. (2005). Algorithm design. Boston: Pearson/Addison-Wesley.
- Lecture Slides - http://www.cs.princeton.edu/~wayne/kleinberg-tardos/
Venkadesan Gandhirajan
Email : venkatjee93@gmail.com
