Alpha–beta pruning
Alpha-beta pruning is a Search algorithm that tries to remove options that it can take. This algorithm is commonly used for a computer to play two player games,…
Alpha-beta pruning is a Search algorithm that tries to remove options that it can take. This algorithm is commonly used for a computer to play two player games, such as chess, go, and checkers. The algorithm stops analyzing a move when it finds another possible move that is proven to be better, and that move will not be analyzed again. This algorithm is a modification of minimax algorithm.
Algorithm

The algorithm keeps track of two values, Alpha and Beta, and assigns "points" to possible moves where the greater the amount of points a move has, the higher chance that choosing that move will lead to victory. Alpha represents the minimum amount of points the player the algorithm wants to win can have(the maximizing player), while beta is the maximum amount of points the algorithm wants to lose can have(the minimizing player). Alpha and Beta start as negative infinity and infinity respectively. Whenever a move is found such that the maximizing player's score improves or the minimizing player's score decreases, then Alpha and Beta will be replaced with those new values.
In the best case, the complexity of the algorithm is O() while the worst case is O() where b is the branching factor, that is how much each move splits into future options on average, and d is the depth, as in on average how many possible moves are made into the game.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.