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
70
Upvotes
View all comments
Show parent comment
2
u/theron- Mar 26 '25
Following up to say we've separated the area into smaller zones and reasoned about the best approach. I think running real-world tests over a defined period (say 1 week) would be the next step.