Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您关心所需的时间而不是路径的长度时,什么是好的路径查找算法。
如果您根本不关心路径而只想检查可达性,是否还有更快的算法。
(对于这类东西来说,洪水填充是一个很好的算法吗?)
您在哪种图表上寻找路径?是网格吗?是重量图吗?
这些事情都很重要。
一些可能有用的算法包括