]> Skullheadx's Git Forge - The-Traveling-Salesman-Problem.git/commitdiff
Update README.md
authorSkullheadx <704277@pdsb.net>
Mon, 9 Jan 2023 02:29:35 +0000 (21:29 -0500)
committerSkullheadx <704277@pdsb.net>
Mon, 9 Jan 2023 02:29:35 +0000 (21:29 -0500)
README.md

index f4a667e9848b2ee2263e881c7775c88ac22d0282..0c71d0995da307d28a4896f137e5514947ca0f1d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -100,3 +100,17 @@ The Christofides Algorithm creates a tour by:
 5. Construct a TSP tour by going through the Eulerian tour and when we encounter a node we have already visited, simply skip over it and connect the previous node to the next one that has not been visited yet.
 
 --------------------------------------------------------------------------------------------------------------
+
+**Tour Improvement**
+
+Typically, the heuristic solutions can generate a decent solution to the TSP, but they are often constricted simply by the idea that defines them.
+Take this graph for instance, generated by the Christofides Algorithm.  
+
+![](Christofides_bad.png)
+
+If you notice the edge between (273, 269) and (334,510) and the edge between (263, 392) and (510, 143). They cross each other and it would probably be a better solution if they connected differently.
+This method of improving a candidate solution created by a heuristic is called local search.
+--------------------------------------------------------------------------------------------------------------
+
+**Random Swapping**
+