Google News
logo
Artificial Intelligence - Quiz(MCQ)
The traveling salesman problem involves n cities with paths connecting the cities. The time taken for traversing through all the cities, without knowing in advance the length of a minimum tour, is _________
A)
O(n)
B)
O(n!)
C)
O(n2)
D)
O(n/2)

Correct Answer :   O(n!)


Explanation : The traveling salesman problem involves n cities with paths connecting the cities. The time taken for traversing through all the cities, without knowing in advance the length of a minimum tour, is O(n!).

Advertisement