geekquad / AlgoBook

A beginner-friendly project to help you in open-source contributions. Data Structures & Algorithms in various programming languages Please leave a star ⭐ to support this project! ✨
https://discord.gg/ZMmwsWvsFj
MIT License
301 stars 303 forks source link

Adding basic nearest neighbors solution algorythm for TSP #522

Open wenderlemes opened 2 years ago

wenderlemes commented 2 years ago

This is a simple solution using the nearest neighbors approach to solve the Travelling Salesman Problem.

I hope it could be of any help.