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/amazingabyrd Mar 23 '25
It becomes the multi-agent version. But it depends on context how he wants to implement it. Do they get dropped off and picked up or is there a start/stop hub (post office). Splitting the network and having subproblems is a classic way to solve it with multi agents. There's more sophisticated AI solutions but they're only marginally better than the traditional.