Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jdmg718
· 7y ago · 0 comments
I've been thinking about this problem for a while with a little twist. What if you wanted to run/walk all the streets in your city? What is the shortest path to do it? How do you calculate the number of kilometers of streets in a city?
Comments
[–]
hxhxhrra
7y ago
This problem is called Chinese Postman Problem and can be solved in polynomial time using matching algorithms:
https://en.m.wikipedia.org/wiki/Route_inspection_problem