Note that there are some explanatory texts on larger screens.

plurals
  1. POCalculate shortest path through a grocery store
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. CO@Bart: You want to solve the TSP ... on a smartphone ... in a second or so. I think you are going to have a hard time - unless it is a very short list :) Have you tried a simple heuristic/greedy approach? Since most supermarkets have euclidean distance it might give a "good enough" solution. Also I think it might make more sense for humans viewing the result if you do something, that resembles what we would actually do. It might mean a 15 meter longer walk, but I still think most humans would do something akin to what is described by ndp. And be baffled if they were told to do otherwise.
      singulars
    2. COEdit: 'Since most supermarkets have euclidean distance it might give a "good enough" solution' should read 'Since distances in supermarkets will satisfy the triangle in ineq., it might give a "good enough" solution'
      singulars
    3. COThanks. An imperfect path would be fine, but it would be nice if it could find the optimal path when the number of items it small, and an approximation if the number of items is large. This is just a theoretical assignment by the way, so I don't have to implement anything. I'm thinking maybe Ant Optimization would be good, since I can just cut it off at some time limit and get the best approximation found so far.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload