UK24727: a shortest-possible walking tour through the pubs of the United Kingdom
math.uwaterloo.ca
math.uwaterloo.ca
Find 23 given [1, 2, 2, 3, 1...] Find 40 given [35, 15, 98, ...]
A lot of situations where you might give up on trying to compute an exact solution can turn out to have underlying data that makes it possible.
Edit: also, if you are gonna go to Eriskay you might as well take the ferry to Barra and go to the Castlebay Bar to watch the Vatersay Boys ;)
For our data set, we pruned the full list. First, based on names, we removed establishments that seemed more like restaurants than public houses. So TGI Friday's was out and the The Plough and Horses was in. Second, we took only the first location of pubs that had a number of branches in the same town. Third, we removed any pub that was marked as permanently closed by the members of Pubs Galore. Finally, we removed several pubs that could not be reached by foot, such as those located in airport terminals.
It's taking two separate paths to get from the pub in the bottom-left of the loop to the intersection that creates the loop. One of these paths must be shorter, so why isn't that path taken both to and from that pub?
http://www.pubsgalore.co.uk/towns/nairn/highland/ http://www.pubsgalore.co.uk/towns/forres/grampian/ http://www.pubsgalore.co.uk/pubreviews/51349/
EDIT: maybe these were added after they snapshotted the data.