Travelling sales man problem belongs to which of the class?

Thành Nguyễn

New member
Travelling sales man problem belongs to which of the class?
A. P
B. NP
C. Linear
D. None of the mentioned
 
Answer: B
Explanation: Travelling Salesman Problem: Given an input matrix of distances between n cities, this problem is to determine if there is a route visiting all cities with total distance less than k.
 

Tìm kiếm

Back
Top