I am implementing alpha-beta pruning which is an optimization of the min-max algorithm used in game theory. Alpha-beta pruning helps to reduce computation time.
The code is available here: https://www.geeksforgeeks.org/minimax-al...a-pruning/
I just want the user to enter the leaf node values instead of the fixed values as in the link above.
After the leaf nodes inputs i.e ( 3, 5, 6, 9, 1, 2, 0, -1 }, The code should print value is : 5 .
The code is available here: https://www.geeksforgeeks.org/minimax-al...a-pruning/
I just want the user to enter the leaf node values instead of the fixed values as in the link above.
After the leaf nodes inputs i.e ( 3, 5, 6, 9, 1, 2, 0, -1 }, The code should print value is : 5 .