User Tools

Site Tools


chess:programming:search:alpha-beta

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
chess:programming:search:alpha-beta [2021/10/11 23:22] – [Savings] peterchess:programming:search:alpha-beta [2021/10/11 23:28] (current) peter
Line 23: Line 23:
  
  
-**number of leaves with depth n and b = 40**+**The minimum number of leaves with depth n and b = 40**
  
 ^Depth^Worst case^Best case^ ^Depth^Worst case^Best case^
-|n|b^n|b^{\lceil n / 2 \rceil} + b^{\lfloor n / 2 \rfloor} - 1|+|n|<nowiki>b^n</nowiki>|<nowiki>b^ceil(n/2+ b^floor(n/2- 1</nowiki>|
 |1|40|40| |1|40|40|
 |2|1,600|79| |2|1,600|79|
Line 36: Line 36:
 |8|6,553,600,000,000|5,119,999| |8|6,553,600,000,000|5,119,999|
  
 +<WRAP info>
 +**NOTE:** Assuming constantly **b** moves for each node visited and search depth **n**, the maximal number of leaves in alpha-beta is equivalent to Minimax, b ^ n.
 +
 +  * Considering always the best move first, it is **b ^ ceil(n/2) plus b ^ floor(n/2) minus one**.
 +  * This table which also demonstrates the odd-even effect.
 +
 +</WRAP>
  
 ---- ----
Line 99: Line 106:
  
 http://web.archive.org/web/20120421170110/http://chessprogramming.wikispaces.com/Alpha-Beta http://web.archive.org/web/20120421170110/http://chessprogramming.wikispaces.com/Alpha-Beta
 +
 +http://web.archive.org/web/20120222165548/http://chessprogramming.wikispaces.com/Odd-Even+Effect
chess/programming/search/alpha-beta.1633994560.txt.gz · Last modified: 2021/10/11 23:22 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki