Log in Sign up
Back to Discover
🔢

Minimax

math Maturity 7-9

You want to make a good choice.

Minimax.svg
Minimax.svg
Sometimes, things can go wrong. You can plan to lose as little as you can. This helps you stay safe. It is a smart way to play games. Do you like to plan ahead?

42 words

Imagine you are playing a game.

Minimax.svg
Minimax.svg
You want to win. But sometimes, you might lose.

Minimax is a way to plan. It helps you pick the best move. You look at the worst thing that could happen. Then, you try to make that loss very small.

This rule is used in many ways. It helps computers make smart choices. It is also used in math and logic.

Some people call this a saddle point. It helps you make a good choice. Even when things are not certain, you can plan. It is a clever way to stay safe in a game.

102 words

Imagine you are playing a game against a friend.

Minimax.svg
Minimax.svg
You want to win, but you also want to be safe. Minimax is a rule used to make smart choices. It helps you pick a move that keeps your loss small. This is helpful when you face a worst-case scenario. A worst-case scenario is the worst thing that could happen.

There is another way to look at this called maximin. This is when you try to get the most gain. It focuses on making your smallest gain as big as possible.

Plminmax.gif
Plminmax.gif
Scientists and thinkers use these ideas in many ways. They use them in math and in logic. They also use them in artificial intelligence to help computers think.

In a game, you might not know what your friend will do. You can look at every possible move. You find the move that gives you the best result. This works even if you do not know the future. It is a way to plan when things are not certain. This helps players stay safe in many different games.

181 words

Imagine you are playing a game against a friend. You want to win, but you also want to be safe. Minimax is a special rule used to make smart choices. It helps you pick a move that keeps your loss small. This is very helpful when you face a worst-case scenario. A worst-case scenario is the worst thing that could happen to you.

Minimax.svg
Minimax.svg
This idea is used in many areas like artificial intelligence and philosophy. It is also part of decision theory and statistics. It helps people and computers make plans when they are not sure what will happen next.

To understand how it works, think about a player trying to stay safe. This is called the maximin approach. First, you look at every move you could possibly make. For each move, you imagine the other players do their worst to you. You find the smallest value you would get for each of your choices. Then, you pick the choice that makes that smallest value as high as possible.

Plminmax.gif
Plminmax.gif
This way, you maximize your minimum gain. You are choosing the best of the worst outcomes.

There is another way to look at this called minimax. This version is slightly different because the order of thinking changes. In minimax, you look at what the other players might do first. You imagine you know their moves, and then you pick your best response. This puts you in a much better position than the maximin way. The minimax value is the smallest value that others can force you to receive. It is the largest value you can get if you know their actions. The maximin value will always be less than or equal to the minimax value.

We can see this with a real example using numbers. Imagine a row player who can choose moves labeled T, M, or B. A column player can choose moves L or R. If the row player chooses T, they are guaranteed at least 2 points. If they choose M, they might get as little as -10. If they choose B, they could lose 100 points. By using the maximin rule, the row player picks T to stay safe. This gives them a guaranteed value of 2. The column player also looks for their own safe choice.

These ideas started with studying zero-sum games. A zero-sum game is one where players take turns or move at the same time. The rules have since grown to cover much more complex games. They also help with general decision-making when there is a lot of uncertainty. Scientists use these math tools to help computers play games against humans. It turns a scary unknown future into a plan you can follow. Even in a world of chance, these rules help find a steady path.

470 words

Minimax is a strategic decision rule used to manage risk and uncertainty. It is a core concept in artificial intelligence, decision theory, and statistics. Scientists and philosophers use it to minimize possible losses during a worst-case scenario. A worst-case scenario is the most unfavorable outcome possible. When the goal is to increase gains instead of reducing losses, the rule is called maximin. This approach helps agents make logical choices when they cannot predict exactly what will happen next.

Minimax.svg
Minimax.svg

To understand the mechanism, imagine a player trying to find the safest path. This is known as the maximin approach. First, the player considers every possible action they can take. For each specific action, the player looks at all possible responses from other players. The player identifies the smallest possible value they would receive for each action. This represents the worst outcome for that specific choice. Finally, the player selects the action that makes this minimum value as large as possible. This process is often described as maximizing the minimum gain.

Minimax is a related but distinct concept where the order of operations is reversed. In minimax, the player assumes they know the actions of the other players. They first find the maximum value they can achieve for every possible response from their opponents. Then, they look for the response from the opponent that results in the smallest of these maximum values. This is the smallest value that other players can force the player to receive. Because the player acts with knowledge of the opponent's moves, the minimax value is usually higher. Mathematically, the maximin value for a player is always less than or equal to their minimax value.

Plminmax.gif
Plminmax.gif

We can see these rules in action through a mathematical payoff table. Imagine a game with two players: a row player and a column player. The row player has three choices: T, M, or B. The column player has two choices: L or R. The table shows the results for both players in each scenario. For example, if the row player chooses T and the column player chooses R, the row player gets 2 and the column player gets -20.

Let us calculate the maximin value for the row player in this specific game. If the row player chooses T, their lowest possible payoff is 2. If they choose M, they might receive -10. If they choose B, they could lose 100 points. To stay safe, the row player follows the maximin rule and chooses T. This guarantees them a value of 2. Similarly, the column player looks for their own safe move. If the column player chooses L, they are guaranteed at least 0. If they choose R, they risk receiving -20. Therefore, the column player's maximin value is 0.

Now, let us calculate the minimax value for these same players. For the row player, we look at the maximum they can get for each of the column player's moves. If the column player plays L, the row player can get a maximum of 5. If the column player plays R, the row player can get a maximum of 4. The minimax value is the minimum of these two maximums, which is 4. For the column player, the maximum payoffs they can get are 1, 1, or 4. The minimum of these values is 1. This shows how the minimax perspective changes the expected outcome.

Historically, these ideas were originally formulated for several-player zero-sum games. In a zero-sum game, one player's gain is exactly balanced by the losses of the other players. These rules covered games where players take turns or make moves at the same time. Over time, mathematicians have extended these concepts to much more complex games. They are also used in general decision-making when there is high uncertainty. Today, these principles allow computers to navigate complex environments by preparing for the most difficult challenges.

652 words
🖼️ Images & Media (2)
File:Minimax.svg
Minimax.svg
File:Plminmax.gif
Plminmax.gif
Up Next
🔢
Maximum and minimum
Math
More to explore

🔗 What's this?

Concepts mentioned in this article

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.