-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Min-Max Algorithm | ||
|
||
Commonly while you build a tree of options, (say path, decisions, states or anything else), you will have to make a decision at each node of the tree to deepen the search. The min-max algorithm is a nice and easy approach to solve this problem. It might be used in games, decision making, and other fields. | ||
|
||
## Use cases | ||
|
||
Min-Max algorithms shines in places where you will have to maximize the gain and minimize the loss. | ||
|
||
## Algorithm | ||
|
||
![min-max.gif](min-max.gif) [source](https://www.youtube.com/watch?v=l-hh51ncgDI) | ||
|
||
[//]: # (![img.png](img.png) [source](https://en.wikipedia.org/wiki/File:AB_pruning.svg)) | ||
|
||
|
||
[//]: # (## Alpha beta pruning:) | ||
|
||
[//]: # () | ||
[//]: # (![Minmaxab.gif](Minmaxab.gif) [source](https://upload.wikimedia.org/wikipedia/en/7/79/Minmaxab.gif) | ||
|
||
[//]: # () |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters