Skip to content

A simple map program to find and analyze the produced shortest paths using 4 different algorithms.

License

Notifications You must be signed in to change notification settings

vianneynara/Leaflet-FindShortestPath

 
 

Repository files navigation

Greedy Ambulance

This is a project for "Algorithm Strategy Analysis" course. The name itself came from the title of our paper, which analyzes how greedy algorithm works on closed graph map. The application visualize how the four shortest path finder algorithms work. It uses object oriented approach using Graph and predefined Vertex points using JavaScript. The graph lines are drawn over Yogyakarta, Indonesia using Open Street Map.

Features

  • Four different algorithms:
    • Greedy (Cheapest Nearest Neighbors)
    • Best First Search (backtracking)
    • Dijkstra
    • A-star (heurstic approach)
  • Latitude and Longitude viewer with clipboard copy
  • Graph lines toggle buttons
  • Start and Goal point input
  • Start algorithm with selected algorithm and see total distance in kilometers

Website Preview

If no goal point was specified, the website passes null to the algorithm and finds the nearest hospital vertex.

Simple Application Demo

Demo

Feature Overview

  • Main page
    image
  • Toggling predefined graph
    image
  • Select start/goal vertex
    image
  • Algorithm selection
    image
  • Showing the shortest path
    image
  • Using All Algorithms
    image

Benchmark Results

can be seen on src/js/tests/reading-results.ipynb

Installing

  1. Clone the repository in htdocs (using XAMPP apache localserver)
  2. Open the path to the project

Contributors

About

A simple map program to find and analyze the produced shortest paths using 4 different algorithms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 91.7%
  • JavaScript 7.4%
  • Other 0.9%