Apparently, it is impossible to prove, the described algorithm is not a 2-approximation. The Wikipedia article mentions the publication
Rosenkrantz, Daniel J.; Stearns, Richard E.; Lewis, Philip M., II (1977), "An Analysis of Several Heuristics for the Traveling Salesman Problem", SIAM Journal on Computing 6 (5): 563–581, doi:10.1137/0206041
in which apparently the authors show that the Nearest Neighbor heuristic yields an approximation ratio of Theta( log n )
, where n
is the number of locations, even if the instance satisfies the triangle inequality:
Rosenkrantz et al. [1977] showed that the NN algorithm has the
approximation factor Theta(log|V|) for instances satisfying the
triangle inequality.
However, the OP might have described a different algorithm; an analysis of the approximation ratio of different greedy heuristics might be found in the followin article.
SIAM Journal on Computing, 1977, Vol. 6, No. 3 : pp. 563-581 An
Analysis of Several Heuristics for the Traveling Salesman Problem
Rosenkrantz, D., Stearns, R., and Lewis, II, P. (doi: 10.1137/0206041)