Skip to content
/ tsp Public

Fast and simple heuristic for solving travelling-salesman-problem. Combined HC and path trasformation.

License

Notifications You must be signed in to change notification settings

janoPig/tsp

Repository files navigation

tsp

Combined hill-climbing search with path transformation.

input = random_path()
it = 0
do
  it++
  
  do_mutation(input)
  path = transform(input)
  length = evaluate_path(path)
  
  if (length > bestLength):
    undo_mutation(input)
  if (length < bestLength):
    bestLength = length
while it < limit

return transform(input)

About

Fast and simple heuristic for solving travelling-salesman-problem. Combined HC and path trasformation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages