Sketchplanations

Explaining one thing a week in a sketch

The travelling salesman problem illustration showing a bewildered salesman contemplating the many options he could take to visit all the places the need across America

The travelling salesman problem

You have to drop off 2 things after school, get to the shops and back home — which route should you take? You drive an Amazon delivery van and you have 145 parcels to deliver across London — what’s the most efficient route?

It’s pretty clear that for situations like the first one, with fewer stops, assuming you know travel distances or travel times, you could figure out the best route by trying out the different combinations until you hit on the shortest. The trouble is as you keep adding extra stops it doesn’t get just a little bit harder — instead the difficulty continues to increase along with the time it will take to find an answer.

Figuring out the shortest route to visit all the stops and return back home is known as the travelling salesman problem. It’s a problem formulated over 150 years ago that still has relevance and interest today whether it’s for delivering parcels, stocking shelves or soldering transistors.

Keep exploring

Solstice: illustration showing the paths of the sun in winter, summer and on the equinoxes
Notice when you're happy: advice from Kurt Vonnegut's Uncle Alex to stop and say "If this isn't nice, I don't know what is."
Reef Knot and Clove hitch illustration: arrows highlight the path for a length of rope or string to take when tying a reef knot, often used to tie belts, bandages and bundles (left) and a clove hitch, often used to tie up to a post (right). It is noted that neither should be used when safety is at stake.
The Haversine Formula illustration: a portion of the earth's globe is shown with a green arc drawn between the cities of London, UK and  Seattle, WA. The mathematical Haversine formula takes into account the curvature of the earth's surface when calculating the true distance between two points on a curved surface.
Buy Me A Coffee