The Manhattan Tourist Problem

Explore the Manhattan Tourist Problem and see how it’s represented using directed graphs.

What is the best sightseeing strategy?

Imagine you’re a tourist in Midtown Manhattan, and you want to see as many sights as possible on your way from the corner of 59th Street and 8th Avenue to the corner of 42nd Street and 3rd Avenue (figure below). However, you’re short on time, and at each intersection, you can only move south (↓) or east (→). You can choose from many different paths through the map, but no path will visit all the sights. The challenge of finding a legal path through the city that visits the most sights is called the Manhattan Tourist Problem.

Get hands-on with 1200+ tech skills courses.