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.
如果我们有 5 个城市和 5 只蚂蚁。所有蚂蚁都必须从同一个城市开始吗?如果他们从不同的城市出发,有什么区别。我将蚂蚁随机放置在不同的城市作为起点。我尝试使用这两种情况,但我的结果是一样的。我想知道它是否正确或我的代码有问题。
你可以从不同的节点开始,每次都会更新信息素。