Вопрос

Я внедрил алгоритм Floyd-Warshall-алгоритма для решения всей самой короткой проблемы пути.Теперь я узнал, что я также могу вычислить MiniMax или Maximin Path с легкими модификациями.Но я не понимаю, что означает результат (что такое минимаксный путь).Я нашел некоторые Объяснения в Интернете, но они путают меня.

miniMax - MiniMax в графиках Проблемы включают в себя поиск пути между двумя узлами, которые минимизируют максимальную стоимость по пути.

Максимин - наоборот - наоборот от MiniMax - здесь у вас есть проблемы, где вам нужно найти путь, максимизирует минимальную стоимость по пути.

может кто-нибудь, пожалуйста, попробуйте дать другое объяснение или пример?

Это было полезно?

Решение

To understand maximin paths (often called bottleneck paths) in a graph, consider the following problem. You have a road map of a country as a graph where each node represents an intersection and each edge represents a road. Each road has a weight limit, and if you drive a truck that exceeds the limit over that road it will break. You have a truck that you want to drive from some start location to some end location, and you want to put the maximum possible amount of weight on it. Given this, what path should you drive the truck in order to send the maximum possible weight?

If you think about this problem, for any path that you take in the graph, the maximum weight you can send along that path is going to be determined by the edge on that path with the minimum capacity. As a result, you want to find the path from the start to the destination whose minimum-capacity edge is maximized. The path with this property is called the maximin path or bottleneck path, and can be found with a straightforward set of modifications to mot shortest-path algorithms.

The minimax path represents the opposite idea - the path between two points that minimizes the maximum edge capacity.

Hope this helps!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top