← Back

March 21, 2008

#399: Travelling Salesman Problem explain

Travelling Salesman Problem

[There is a linked black web, with a path in red; it appears to be a map of the United States.]

Brute-force solution: O(n!)

[The web continues in this one. A man with a brown hat and a case is drawing it.]

Dynamic programming algorithms: O(n22n)

[Another man, with a brown hat too, is at a computer, looking back over the chair.]

Selling on eBay: O(1)

eBay salesman: Still working on your route?

Drawing salesman: Shut the hell up.