Skip to content

Explore several shortest-path algorithms using this all-for-one program!

Notifications You must be signed in to change notification settings

luisegarduno/Various-ShortestPath-Algorithms

Repository files navigation

Number of GitHub Downloads badge

Find the shortest path within a graph by experimenting with different shortest path algorithms.

Algorithms include:

  • Floyd-Warshall
  • Bellman-Ford
  • Coming Soon: Depth First Search, Breadth First Search, A * Search, Greedy First Search, & more!

Video installation/deployment demo: https://youtu.be/4PDCZJnXUEk

Instructions

  1. Before you run the program, drop the dataset files you would like to use into the InputFiles directory. There is 2 datasets already included, which you may delete.

Method 1 (FASTEST) - Linux Only:

  1. Download latest linux release
  2. Run: $ ./ShortestPath

Method 2 (QUICK) - local build:

  1. Build project + Create executable: mkdir build; cd build; cmake ..; make -j 2 optimize=no debug=yes > /dev/null; mv ShortestPath ../
  2. Done! To deploy: ./ShortestPath

Method 3 (noob) - local build:

This method is the same as method 1, but in baby steps.

  1. Create build environment: $ mkdir build; cd build
  2. Build the project: cmake ..
  3. Create executable: make -j 2 optimize=no debug=yes > /dev/null
  4. Move file to project directory: $ mv ShortestPath ../
  5. Done! To deploy: ./ShortestPath