Travelling salesman problem

Can we always find the shortest path visiting all cities?

Travelling salesman problem

Can we always find the shortest path visiting all cities?

Imagine planning a road trip to visit several friends spread across different cities. You want to minimize driving time by finding the shortest route that visits each friend once and returns home.

Even though finding the absolute shortest route is tough, we can use smart shortcuts to get close to it. These shortcuts are called approximation algorithms.

Example

If the shortest route is 300 miles, an approximation algorithm might find a route that's 270 miles, which is still pretty close.

Remember this

Approximation algorithms help us quickly find nearly the best routes without spending endless time on calculations.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath