Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Alpha-Beta pruning is not actually a new algorithm, rather an optimization technique for minimax algorithm. It reduces the computation time by a huge factor. This

image text in transcribedimage text in transcribedimage text in transcribed

Alpha-Beta pruning is not actually a new algorithm, rather an optimization technique for minimax algorithm. It reduces the computation time by a huge factor. This allows us to search much faster and even go into deeper levels in the game tree. It cuts off branches in the game tree which need not be searched because there already exists a better move available. It is called Alpha-Beta pruning because it passes 2 extra parameters in the minimax function, namely alpha and beta. Following the following the pseudo code for minimax function, please answer the question, assuming that we call the function minimax(0,0, true, -INFINITY, +INFINITY) for the first time. \begin{tabular}{|l|} \hline function minimax(node, depth, isMaximizingPlayer, alpha, beta): \\ if node is a leaf node: \\ \hline return value of the node \\ \hline if isMaximizingPlayer: \\ \hline bestVal = -INFINITY \\ \hline for each child node: \\ \hline value = minimax(node, depth +1, false, alpha, beta) \\ \hline bestVal = max( bestVal, value) \\ \hline alpha = max( alpha, bestVal) \\ \hline if beta +1, true, alpha, beta) \\ \hline bestVal = min(bestVal, value) \\ \hline beta = min( beta, bestVal) \\ \hline if beta

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions