sketch-a-day/2025/sketch_2025_02_17 at main · villares/sketch-a-day

One visual idea a day. Contribute to villares/sketch-a-day development by creating an account on GitHub.

GitHub
sketch-a-day/2025/sketch_2025_02_16 at main · villares/sketch-a-day

One visual idea a day. Contribute to villares/sketch-a-day development by creating an account on GitHub.

GitHub

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: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_02_15
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work: https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
#scipy #Processing #Python #TSP #CreativeCoding

sketch-a-day/2025/sketch_2025_02_15 at main · villares/sketch-a-day

One visual idea a day. Contribute to villares/sketch-a-day development by creating an account on GitHub.

GitHub
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: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_02_10
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work: https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724 #Processing #Python #py5 #CreativeCoding
sketch-a-day/2025/sketch_2025_02_10 at main · villares/sketch-a-day

One visual idea a day. Contribute to villares/sketch-a-day development by creating an account on GitHub.

GitHub

"Branch-And-Cut Algorithms For The Covering Salesman Problem", 2023, a generalization of the #TravellingSalesmanProblem #TSP

https://www.rairo-ro.org/articles/ro/pdf/2023/03/ro220416.pdf

cpp code & data at https://www.ic.unicamp.br/~fusberti/problems/csp/

traveling_salesman_problem — NetworkX 3.4.2 documentation

Solving the #TravellingSalesmanProblem Using a #GeneticAlgorithm : Medium

#Exotic New #Superconductors Delight and Confound : Quanta Mag

#Einstein wins again: Exotic #Gravity theories take a blow from new #Observations : Big Think

Check our latest #KnowledgeLinks

https://knowledgezone.co.in/resources/bookmarks

Bookmarks

Knowledge Zone Bookmarks - Links to latest articles

Knowledge Zone

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.