Skip to content

A website made to calculate shortest path using uniform cost search and A* algorithm

Notifications You must be signed in to change notification settings

frankiehuangg/ShortestPathWebSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Implementasi Algoritma UCS dan A* untuk Menentukan Lintasan Terpendek

video.mp4

Algoritma UCS (Uniform cost search) dan A* (atau A star) dapat digunakan untuk menentukan lintasan terpendek dari suatu titik ke titik lain. Pada tugas kecil 3 ini, anda diminta menentukan lintasan terpendek berdasarkan peta Google Map jalan-jalan di kota Bandung. Dari ruas-ruas jalan di peta dibentuk graf. Simpul menyatakan persilangan jalan (simpang 3, 4 atau 5) atau ujung jalan. Asumsikan jalan dapat dilalui dari dua arah. Bobot graf menyatakan jarak (m atau km) antar simpul. Jarak antar dua simpul dapat dihitung dari koordinat kedua simpul menggunakan rumus jarak Euclidean (berdasarkan koordinat) atau dapat menggunakan ruler di Google Map, atau cara lainnya yang disediakan oleh Google Map.

Group Members

NIM Name Tugas
13521092 Frankie Huang API, I/O, Website
13521104 Muhammad Zaydan A A* algorithm, UCS algorithm

About this project

  • Solves shortest path problem with either Uniform Cost Search algorithm or A* algorithm.
  • Website implemented using the Bootstrap framework
  • Place the nodes either by clicking the map or using predefined file
  • Programmed and implemented in JavaScript

Features

The features below are 100% done and implemented.

  • Uniform Cost Search algorithm solution
  • A* algorithm solution
  • Uses Haversine formula to calculate distance
  • A professional looking website made for simplicity

Requirements

No extra packages are needed to run this website locally

Setup

Firstly, clone this repository.

git [email protected]:zaydanA/Tucil3_13521092_13521104.git

Then you can run the index.html file provided in the src folder using your browser of choice.

firefox src/index.html

You can also run this project from this link.

Program Structure

├── src
│   ├── about.html
│   ├── algorithm.js
│   ├── assets
│   │   ├── brand
│   │   │   ├── bootstrap-logo.svg
│   │   │   └── bootstrap-logo-white.svg
│   │   ├── display.png
│   │   ├── dist
│   │   │   ├── css
│   │   │   │   ├── bootstrap.min.css
│   │   │   │   ├── bootstrap.min.css.map
│   │   │   │   ├── bootstrap.rtl.min.css
│   │   │   │   └── bootstrap.rtl.min.css.map
│   │   │   └── js
│   │   │       ├── bootstrap.bundle.min.js
│   │   │       └── bootstrap.bundle.min.js.map
│   │   └── logo.png
│   ├── index.html
│   ├── index.js
│   ├── maps.html
│   └── style.css
├── test
│   ├── TC-1.txt
│   ├── TC-2.txt
│   ├── TC-3.txt
│   └── TC-4.txt
└── README.md

Project Status

This project is finished.

There are no plans to change, add, or optimize the program in the near future.

Room for Improvement

  • More efficient UCS and A* algorithm

Acknowledgements

  • This project is spearheaded by the IF2211 Informatics major at Institut Teknologi Bandung, which has been well organized by the IF2211 - 2023 professors and assistants.
  • README template by @flynerdplREADME
  • Thanks to the reference sources and methods as a basis that have been listed in the relevant parts of the report.

About

A website made to calculate shortest path using uniform cost search and A* algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published