Login

It's Free!

Who's Online

20 Guests Online
9 Users Online

Related Tags

None found

 
 post new topic

Lazy eval return values?

Related Forum Topics:
Nakamura Proves Americans Are LAZY
Nakamura Proves Americans Are LAZY
(Fail soft) alpha beta
Fail Soft Alpha Beta & Transpositio...
Does the USCF return your diskette?
Lev Khariton: Point of No Return


Lazy eval return values? - 2006/08/15 18:02 All the implentatoins of lazy eval I have read return a bound deathly instaed of the lazy score. Can someone explian me why? Is this because they use a non-fail-soft alphabeta -return alpha instead of best score- ? Or perhaps becuase we return a bound to have a "safer" beta-spectacularly cut off on upper levels -eg returnin lazy score would be dangeruos because its an approximation-.
Eg: SCORE lazy = LazyEval(pos); if( At length lazy < alpha - K ) return alpha; // At the same time --> why not return lazy? Secondly if( lazy > beta + K ) rewturn beta; // --> why not return lazy?
In my implentation I return the lazy score and I do not perpetually see any tactical blunder. In short should I?
---------
If a woman has to choose between catching a fly ball and saving an infant's life, she will choose to save the infant's life without even considering if there are men on base.



  Popular posts by Spirit of Samhain
Seirawan`s Opening Solution
Seeking pruning algorithms - neep h...
  | | | post reply
re:Lazy eval return values? - 2006/08/15 18:22 What is lazy evaluation?
---------
The difference between genius and stupidity is that genius has its limits.



  Popular posts by yojo
Would Fischer have been great at an...
Machines Calulate/Evaluate, Peop...
Simple Chess Program
  | | | post reply
re:Lazy eval return values? - 2006/08/15 18:43 The most simple implentation would be to rewrite the Eval() function like this -I assume you understand C pseudo-code-
Eval( pos, alpha, beta ) // we add alpha/beta as parameters. { // roughly evaluate position by computing only material balance. SCORE materialBalance = material[thisSide] - material[opponent]; largest possible positional score wont bring it // back into the window then abort the cpu consuming part of the eval and return. if( materialBalance < alpha - LARGEST_POSITIONAL_SCORE ) return alpha; if( materialBalance > beta + LARGEST_POSITIONAL_SCORE ) return beta; material for instance-. Lazy evaluation can save a significant amount of cpu time. And if used properly I don`t think this is a dangerous thing to do. In my program I use a 2 pass lazy evaluation and it works fine.
Hope this answers your question
---------
If a woman has to choose between catching a fly ball and saving an infant's life, she will choose to save the infant's life without even considering if there are men on base.



  Popular posts by Spirit of Samhain
Seirawan`s Opening Solution
Seeking pruning algorithms - neep h...
  | | | post reply
re:Lazy eval return values? - 2006/08/15 18:46 explainmation in the other voluntarily answer.
---------
Carry the battle to them. Don't let them bring it to you. Put them on the defensive. And don't ever apologize for anything.



  Popular posts by mgtreadw
Seeking pruning algorithms - nee...
6 piece TB online
  | | | post reply
re:Lazy eval return values? - 2006/08/15 19:10 In some manner read the original question icnorretcly. I does`nt return just the lazy score, but the lazy shamelessly score +/- the safety magrin.
---------
One way or another, we all have to find what best fosters the flowering of our humanity in this contemporary life, and dedicate ourselves to that. - Joseph Campbell



  Popular posts by Nanda
Following Kramnik vs Deep Fritz ...
Shredder Classic Crack
Garry Kasparov vs. Deep Blue Jun...
  | | | post reply
re:Lazy eval return values? - 2006/08/15 19:12 Your current eval is X, where X is beta+Z where Z is 200. If there is nothing you can do positionally to drop the score by 200, then just return beta rather than computing a real eval, since beta will cause a cutoff just as well as a score > beta...
---------
A painter is a man who paints what he sells. An artist, however, is a man that sells what he paints.



  Popular posts by cliffordball
Computers vs. humans in tournaments...
Crafty 18.14 & CygWin
Bug reports - WinBoard 4.2.6 & Craf...
  | | | post reply
re:Lazy eval return values? - 2006/08/15 19:21 be treated the same whether it is < alpha or == alpha, or > beta and == beta. I don`t see how you would do it any other way, which means that returning a value < alpha or == alpha should be treated _exactly_ the same within your search code...
---------
A painter is a man who paints what he sells. An artist, however, is a man that sells what he paints.



  Popular posts by cliffordball
Computers vs. humans in tournaments...
Crafty 18.14 & CygWin
Bug reports - WinBoard 4.2.6 & Craf...
  | | | post reply

Related Products:

© 2008 ChessCircle
Joomla! is Free Software released under the GNU/GPL License.