Hi, I was looking at the code for aspiration windows on mediocre chess.
It basically says if eval<= alpha or beta<=eval do a full width search starting with the window (-infinity, infinity) at the same depth just searched.
But at the root node, if we start with (-infinity, infinity), then beta = infinity.
But inside this node, we only raise alpha, beta stays the same, so my point is, after the search is done, the alpha beta window in the root node will be (alpha, infinity), so I don't get how we can test if eval is outside of this window.
I must be mixed up somewhere, any advice? Thanks
Stupid question about alpha beta and aspiration windows
Moderator: Ras
-
- Posts: 316
- Joined: Wed Apr 12, 2006 10:47 pm
-
- Posts: 1260
- Joined: Sat Dec 13, 2008 7:00 pm
Re: Stupid question about alpha beta and aspiration windows
What you say is fully correct. If you start with -inf,+inf you cannot end with eval outside the window.cms271828 wrote:Hi, I was looking at the code for aspiration windows on mediocre chess.
It basically says if eval<= alpha or beta<=eval do a full width search starting with the window (-infinity, infinity) at the same depth just searched.
But at the root node, if we start with (-infinity, infinity), then beta = infinity.
But inside this node, we only raise alpha, beta stays the same, so my point is, after the search is done, the alpha beta window in the root node will be (alpha, infinity), so I don't get how we can test if eval is outside of this window.
I must be mixed up somewhere, any advice? Thanks
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Stupid question about alpha beta and aspiration windows
(@ colin) ... and that is what you wanted to achieve with the re-search.Gian-Carlo Pascutto wrote:What you say is fully correct. If you start with -inf,+inf you cannot end with eval outside the window.cms271828 wrote:Hi, I was looking at the code for aspiration windows on mediocre chess.
It basically says if eval<= alpha or beta<=eval do a full width search starting with the window (-infinity, infinity) at the same depth just searched.
But at the root node, if we start with (-infinity, infinity), then beta = infinity.
But inside this node, we only raise alpha, beta stays the same, so my point is, after the search is done, the alpha beta window in the root node will be (alpha, infinity), so I don't get how we can test if eval is outside of this window.
I must be mixed up somewhere, any advice? Thanks
Matthias
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de