I have read that the classic travelling salesman problem (TSP) is NP-Hard. And there are some approximation algorithms and also a specific algorithm running in O(N^2 * 2^N) time. But AFAIK, these are for TSP in a general graph.
So my question, is there a better (preferable polynomial time) algorithm for solving the TSP in a M x N grid?
For example, say there's a grid of 3x4 and there are different costs of travelling from one cell to each of the 2 adjacent (bottom and right) cells. So I want to find the minimum cost to visit all the cells, starting from cell (0, 0) and returning to cell (0, 0).
EDIT: Just to clear things up, I'm pretty sure this not an Euclidean TSP. For simplicity, think of the below example. A rectangle is divided in to M rows and N columns. The salesman is at cell 0, 0 (the top-left cell). He has to visit all the cells and still come back to his starting cell (0, 0). But he can only travel from one cell to each of its 4 adjacent cells (top, left, bottom, right). And the cost from one cell to any one of its adjacent cells may not be the same.
Thanks.