Skip to content

Commit

Permalink
fix: min-max for ai
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstenko committed Mar 4, 2024
1 parent 79409d8 commit 71c721f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions docs/artificialintelligence/09-minmax/README.md
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)

[//]: # ()
Binary file added docs/artificialintelligence/09-minmax/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/artificialintelligence/09-minmax/img_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/artificialintelligence/09-minmax/min-max.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ nav:
- Pathfinding: artificialintelligence/06-pathfinding/README.md
- Maze Data Structure: blog/posts/MazeDataStructure/MazeDataStructures.md
- AI for Testing: artificialintelligence/07-automatedtesting/README.md
- MinMax: artificialintelligence/09-minmax/README.md
- Assignments:
- artificialintelligence/assignments/README.md
- Setup: artificialintelligence/assignments/README.md
Expand Down

0 comments on commit 71c721f

Please sign in to comment.