An open API service indexing awesome lists of open source software.

https://github.com/jackkimmins/webpathfinder

C++ WASM Solver for TSP w/ Hybrid Genetic Algorithm
https://github.com/jackkimmins/webpathfinder

bootstrap5 combinatorial-optimization cpp genetic-algorithm webassembly

Last synced: about 1 year ago
JSON representation

C++ WASM Solver for TSP w/ Hybrid Genetic Algorithm

Awesome Lists containing this project

README

          

![Project Logo](https://github.com/jackkimmins/WebPathFinder/blob/master/web/favicons/android-chrome-192x192.png?raw=true)

# Traveling Salesman Problem Solver Using a Genetic Algorithm in C++ WebAssembly
This project is a C++ WebAssembly (WASM) implementation of a solver for the Traveling Salesman Problem (TSP) using a genetic algorithm. The solver is designed to find an approximate solution to the TSP, which involves finding the shortest possible route that visits a list of cities and returns to the origin city. The project showcases how complex algorithms can be efficiently implemented and executed in a web environment using WebAssembly.

The TSP is a well-known combinatorial optimisation problem. It poses a significant challenge due to its NP-hard nature, meaning that no known algorithm can solve all instances of the problem quickly (in polynomial time).

## Summary of GA
![General Overview of GA](https://raw.githubusercontent.com/jackkimmins/WebPathFinder/ca25516c76f8848defe2c66343135d764658cd98/docs/diagram.svg)

## Demo Site
Please view demonstration site: [https://webpathfinder.appserver.uk/](https://webpathfinder.appserver.uk/)

## Examples
![Demo of Solved TSP with Locations in England](https://github.com/jackkimmins/WebPathFinder/blob/master/docs/example.png?raw=true)