Class SalesmanPruningTest
java.lang.Object
topics.backtracking.tsp.SalesmanPruningTest
@DisplayName("Traveling Salesman (Optimization WITH Pruning)")
class SalesmanPruningTest
extends Object
Validation Suite for Pruned TSP
Proves that bounding (pruning branches that exceed the best cost) is a safe operation that dramatically improves speed without compromising the global optimum.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SalesmanPruningTest
SalesmanPruningTest()
-
-
Method Details
-
testSalesmanPruning
@Test @DisplayName("Should find the exact global optimal cost using Branch & Bound logic") void testSalesmanPruning()
-