j4: (dodecahedron)
[personal profile] j4
A challenge for the cartographically minded among my readers:

What's the most efficient route for visiting all Oxford's colleges?

Method of transport: bicycle. No other restrictions except that you must pass the lodge of each college. Doubling back on yourself is allowed (despite the title of the post!).

A reminder of the location of all the Colleges can be seen on this hopefully accurate map from the University website.

ETA:

I do realise this is a hard problem (Owen says it may even be an NP-hard problem) but thought it might've been the sort of thing that you clever people had already done... like the "visit all the underground stations in a day" challenge, kind of thing...

Date: 2009-02-11 05:38 pm (UTC)
From: [identity profile] katstevens.livejournal.com
Make it into a weighted graph and I can apply an adaptation of Dijkstra's algorithm for you?

Date: 2009-02-11 07:12 pm (UTC)
From: [identity profile] j4.livejournal.com
Er, um. Can you explain how to make it into a weighted graph?

NB imagine you're explaining it to somebody who didn't do any maths beyond GCSE, because that's precisely what you'll be doing. :-}

Date: 2009-02-11 07:29 pm (UTC)
From: [identity profile] caramel-betty.livejournal.com
A graph is something like this:

http://en.wikipedia.org/wiki/File:6n-graf.svg

So there's a road (edge) from college 6 to college 4, and a road from college 4 to college 5. There's no direct road between 3 and 5, but you can get there going indirectly. A weighted graph is that, with the distance between each college provided as a weight.

So what you're being asked for is basically: "Can you draw me a map with all the allowable cycle routes on, and the distance of each bit?"
Edited Date: 2009-02-11 07:30 pm (UTC)

Date: 2009-02-11 08:17 pm (UTC)
From: [identity profile] katstevens.livejournal.com
Beaten to it! That'll teach me to directly reply via email :)

Date: 2009-02-11 08:09 pm (UTC)
From: [identity profile] katstevens.livejournal.com
Hurray one of the bits of maths that's relatively easy to explain :)

First, make all of the colleges into dots (or nodes).

Second, draw lines between all the dots (or edges) - these represent the possible paths you'd go on your bike between the colleges so if there is more than one way to get between two colleges, you can draw two lines.

Third, put a number (the weight) onto each edge - this number represents the time in minutes (or seconds, whatever) it takes to travel each edge. Obv if you have two edges between the same two nodes, the one with the lowest figure is going to be the one you want if you're trying to do a shortest route thing, and you can get rid of the lengthy ones.

Once you've converted Oxford into this sort of abstract map, you can do lots of horrendous calculations on it! Or better yet, get your computer to do them for you!

Date: 2009-02-11 07:21 pm (UTC)
vatine: Generated with some CL code and a hand-designed blackletter font (Default)
From: [personal profile] vatine
That'd give you a spanning tree, not necessarily the "the shortest route touching all points", but a minimum-cost traversal of the spanning tree would probably not be TOO far off an optimal route for whatever cost metric chosen).

Date: 2009-02-11 08:15 pm (UTC)
From: [identity profile] katstevens.livejournal.com
Well, er, yes. My 'adaptation' would involve looking at said spanning tree and going 'which of these routes has a good pub at the end?'

June 2025

S M T W T F S
1234567
891011121314
15 161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 10th, 2026 10:32 am
Powered by Dreamwidth Studios