In aima4e-algorithms.pdf, in the pseudocode for Alpha-Beta-Search, the conditions for stopping the search in Max-Value and Min-Value are:
if v >= beta then return v, move
if v <= alpha then return v, move
There is nothing wrong with that, but I think it would be easier to understand using the conditions:
if alpha >= beta then return v, move
if beta <= alpha then return v, move
Unless, there is some subtlety that I am not seeing that makes these conditions different.
In aima4e-algorithms.pdf, in the pseudocode for
Alpha-Beta-Search, the conditions for stopping the search inMax-ValueandMin-Valueare:if v >= beta then return v, moveif v <= alpha then return v, moveThere is nothing wrong with that, but I think it would be easier to understand using the conditions:
if alpha >= beta then return v, moveif beta <= alpha then return v, moveUnless, there is some subtlety that I am not seeing that makes these conditions different.