Skip to content

This project contains a Java program with a graphical user interface (GUI) that uses Dijkstras A (star) heuristic shortest path algorithm, Prims minimum spanning tree algorithm, and Prims shortest path algorithm.

TaskerM/Shortest-Path-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Shortest Paths and Minimum Spanning Trees Project GUI

This project contains a Java program with a graphical user interface (GUI) that uses Dijkstras A (star) heuristic shortest path algorithm, Prims minimum spanning tree algorithm, and Prims shortest path algorithm.

Description

This program implements the A (star) heuristic variation of Dijkstras shortest path algorithm, Prims minimum spanning tree, and Prims shortest path algorithms. Adjacency matrices are used to represent the input graphs, and each algorithm uses a custom priority queue class.

Getting Started

Dependencies

Installing

  • Clone or download the repository from GitHub.

Executing Program

  • Execute the JAR File: ShortPathT3.jar

  • Run from command line

    • Windows:

    java -cp ".\bin\;.\bin\lib\jcommon-1.0.23.jar;.\bin\lib\jfreechart-1.0.19.jar" ShortPathT3 grid_data.txt adj_data.txt

    • Unix

    java -cp "bin/:bin/lib/jcommon-1.0.23.jar:bin/lib/jfreechart-1.0.19.jar" ShortPathT3 grid_data.txt adj_data.txt

Using Program

Run Shortest Path Algorithms

  • Dijkstra
  1. Select the Dijkstra option.
  2. Enter a starting Node and target Node into the input field. Ex. A,J or N1,N36
  3. Click Run Alg

Dijkstra

  • Prim's
  1. Select the Prim SP option.
  2. Enter a starting Node and target Node into the input field. Ex. A,J or N1,N36
  3. Click Run Alg

PrimSP

Run Minimum Spanning Tree (MST) Algorithm

  • Prim's
  1. Select the Prim MST option.
  2. Enter a starting Node. Ex. A or N1
  3. Click Run Alg

PrimMST

Generate Random Grid

  1. Enter the number of Nodes you would like to generate.
  2. Click Random Grid

RandomGrid

Authors

Version History

  • 1.0
    • Initial Release

About

This project contains a Java program with a graphical user interface (GUI) that uses Dijkstras A (star) heuristic shortest path algorithm, Prims minimum spanning tree algorithm, and Prims shortest path algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages