, .
- NP-, : ) , k, NP, b) - TSP ( 1 0 ).
, TSP , - NP-hard ( NP-), , : " , c?", - NP-.
The NP-complete solution to the Knapsack problem solution is independent and can be resolved sequentially with the TSP task.
So, the whole problem is NP-complete, and if we reduce the problem of TSP and Knapsack problems with SAT (reduction is usually not performed in this direction, but this is theoretically possible), then we can encode the two together as one instance of SAT.
Imran source
share