Alpha-beta pruning for Minimax

前端 未结 5 1523
春和景丽
春和景丽 2020-12-31 10:51

I have spent a whole day trying to implement minimax without really understanding it. Now, , I think I understand how minimax works, but not alpha-beta pruning.

Thi

5条回答
  •  悲哀的现实
    2020-12-31 11:32

    Here's a short answer -- you can know the value of a node without computing the precise value of all its children.

    As soon as we know that a child node cannot be better, from the perspective of the parent-node player, than the previously evaluated sibling nodes, we can stop evaluating the child subtree. It's at least this bad.

提交回复
热议问题