**Random Swapping**
+One easy tour improvement to implement is random swapping. We simply randomly select two nodes which we swap in the tour, if the resulting route has less cost, we use this new route.
+
+--------------------------------------------------------------------------------------------------------------
+
+**2-Opt Improvement**
+
+O
\ No newline at end of file
from graph import calculate_route
from random import sample
-
+# For swapping once
def random_swap(route: list) -> list:
r = route[:]
return r
-
+# check and swap if better n times
def random_swapping(route: list, n: int) -> list:
d = calculate_route(route)
r = route[:]