Why the Traveling Salesperson cannot find the best route

Do you know the Traveling Salesperson problem? The Traveling Salesperson is supposed to find the shortest route to visit all 15 largest German cities. The problem is: there are 43,589,145,600 possible routes through the 15 cities. And in computer science, no general solution has been found yet, as it is impossible to test all 43,589,145,600 possibilities.

There are dozens of such difficult problems in computer science

The Traveling Salesperson is not the only one. Such high computational effort to solve a problem is also required for other problems:

All these problems represent the same problem

All of these hard problems have one thing in common: they represent the same problem and can be converted into one another. For example, the traveling salesman problem can also be represented as a knapsack problem, where the weight of the items for the knapsack represents the 15 cities to be reached and the value of the items represents the negated distance between the cities.

Symbolic Computation

One of these hard problems (also NP-hard called) is the so-called SAT problem: Given a logical formula, it must be checked whether it is solvable. Brilliantly, each of these optimization and search problems can be represented as a logical formula that can be solved as a SAT problem. Furthermore, SAT is very handy due to the simple 3-SAT-notation. A program that can solve SAT problems is called a SAT solver. The basic principle of a SAT solver is simple: the given logical formula is rearranged until the solution can be read from the formula. However, for unknown values (either 1 or 0), a SAT solver must try both variants to find the solution. For two unknown values, that is already 4 variants; for 10 unknowns, 1024 possibilities; and for 20 unknowns, already one million.

Connection to a database

The art of applying SAT in practice lies in defining problems as SAT problems. For example, facts from a database can be encoded as formulas to later draw conclusions from the data. At Launix, we can help you manage data digitally and prepare it for SAT solvers. With our databases, new paths for planning and optimization open up.
Категории