http://www.perlmonks.org?node_id=1083926


in reply to Sorting problem

Smells like the Travelling Salesman, see some discussion here Travelling problem