home.social

#travellingsalesmanproblem — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #travellingsalesmanproblem, aggregated by home.social.

  1. Comparing a naive "nearest neighbor" #TravellingSalesmanProblem solver with a #2optSwap one, adding a #DelaunayTriangulation mesh, it shows how often the better solution falls into the triangulation!

    The #py5 sketch is interactive, you can generate other random nodes and move them around dragging with the mouse.

    Code at: github.com/villares/sketch-a-d
    More sketch-a-day: abav.lugaralgum.com/sketch-a-d
    If you like this, support my work: paypal.com/donate/?hosted_butt
    #scipy #Processing #Python #TSP #CreativeCoding

  2. Naive "nearest neighbor" #TravellingSalesmanProblem approximation with just #SciPy, fast but crude. Maybe tomorrow I'll try to implement something from a scientific paper on the problem, or maybe a naive genetic algorithm just for fun. Code at: github.com/villares/sketch-a-d
    More sketch-a-day: abav.lugaralgum.com/sketch-a-d
    If you like this, support my work: paypal.com/donate/?hosted_butt #Processing #Python #py5 #CreativeCoding

  3. Legend of #Zelda, the #WindWaker is making me solve a #TravellingSalesmanProblem. Well, a travelling waterboy problem, but same idea. I have to go around the world watering trees and I'm on a time limit.

    Nobody tell me the solution. I'm actually considering writing a program to solve this.