r/computerscience • u/theron- • Mar 22 '25
City walking algorithm
NOTE: This is not a homework assignment, rather a business problem we are trying to solve for a maintenance contract in the downtown core of a major city.
Given a square grid/map of the downtown of a modern city, what is the most efficient way to walk the entire surface area of the sidewalks (two on each street, north/south and east/west) with the least amount of overlap and in the least amount of time?
Assumptions:
- a constant speed is assumed
- 4 people are available to do the walking
72
Upvotes
View all comments
Show parent comment
1
u/theron- Mar 22 '25
That was my initial thinking. Since it would take ~7hrs to complete this pattern per person or 21hrs total, I figured if there's a way to shave an hour or two off it would be worth investigating.