The next possibility is to solve the Traveling Salesman by converting it into a Linear Program (LP).
However, this was not an approach that I have used.
A very popular algorithm is the Branch and Bound algorithm.
This algorithm finds the set of Hamiltonian paths that are minimal and is considered an exact algorithm.
The Branch and Bound algorithm is a widely popular choice for solving TSP.
It is known for its strong practical performance and its ability to be parallelized with ease.
This makes it an excellent approach for my work.
## Approximation
The most efficient way to obtain a good solution for a Traveling Salesman Problem instance is not by solving it exactly, but by finding a path that, while not necessarily optimal, is still very good.
The most efficient way to get a good solution for a Traveling Salesman Problem instance is not by solving it exactly, but by finding a path that, while not necessarily optimal, is still very good.
This method, known as approximation, can be performed much more quickly than exact methods.
In real-life scenarios, approximation is often preferred over exact solutions, especially when dealing with large instances that contain many nodes and edges (e.g., 1,000 or 10,000 nodes).

...
...
@@ -57,14 +86,6 @@ Branch and Bound (B&B) are a powerful algorithms for finding exact solutions to
It systematically explores the search space while eliminating branches (subproblems) that cannot lead to a better solution than the current best.
We will be using the B&B algorithm for solving the Traveling Salesman Problem (TSP).
The solution time with Branch and Bound is significantly better when compared to the brute-force approach:

However, even with B&B, we cannot always guarantee that the problem will be solved in a reasonable amount of time.
### Steps
1.**Initialization**
...
...
@@ -82,6 +103,24 @@ However, even with B&B, we cannot always guarantee that the problem will be solv
5.**Termination**
- The algorithm terminates when all tours have been either explored or pruned, and the current best solution is the optimal solution for the Traveling Salesman Problem (TSP).
#### My bounding function
I will use a basic bounding function due to its simplicity and fast execution.
While it is quick to implement and runs efficiently,
its main drawback is that it does not provide as aggressive a bound as more sophisticated methods,
such as those based on Minimum Spanning Trees (MST).
As a result, it may not prune the search space as effectively,
potentially leading to less optimal performance in comparison to more advanced bounding techniques.
The function:
$ N_v = \{v_1, v_2, \dots, v_n\} $ is the subpath chosen by the algorithm,
$ N_u = \{v_1, v_2, \dots, v_m\} = N \setminus N_v $ is the set of nodes not yet included in the path.