Skip to content

An algorithm to solve the traveling salesman problem.

Notifications You must be signed in to change notification settings

vtran95/GeneticAlgorithm

Repository files navigation

Genetic Algorithm

A genetic algorithm is an algorithm that draws inspiration from theories of natural selection. We start with a ‘population’ of sample candidates, evaluate their fitness, perform some sort of cross-over and mutation, and continue until we have a solution that most closely meets our needs or meets our termination criteria.

Referencing the "Travelling Salesman" problem, this algorithm will determine the shortest possible route starting at one city, visiting each city, and then returning to the original city.

Each city coordinate is in an [x,y] range from [0,1000].

About

An algorithm to solve the traveling salesman problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •