Stupid question about alpha beta and aspiration windows

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
cms271828
Posts: 316
Joined: Wed Apr 12, 2006 10:47 pm

Stupid question about alpha beta and aspiration windows

Post by cms271828 »

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
Colin
Gian-Carlo Pascutto
Posts: 1260
Joined: Sat Dec 13, 2008 7:00 pm

Re: Stupid question about alpha beta and aspiration windows

Post by Gian-Carlo Pascutto »

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
What you say is fully correct. If you start with -inf,+inf you cannot end with eval outside the window.
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Stupid question about alpha beta and aspiration windows

Post by Matthias Gemuh »

Gian-Carlo Pascutto wrote:
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
What you say is fully correct. If you start with -inf,+inf you cannot end with eval outside the window.
(@ colin) ... and that is what you wanted to achieve with the re-search.

Matthias
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de