I decided to study a little bit more into Knuth's node types to measure the frequency in which a type does not do what it was expected to do and I am now trying to wrap my mind around the basic data.
I've read a few dozen posts, thought I read at one time what it means when a node type changes, but just cannot seem to find it.
My implementation:
* The root position is a PVNode. I am performing the PVS zero window search at the root.
* The first move is searched as a PV node, however, all following moves made are flagged as cut nodes when searched in a zero window.
* In the case of a research, the move is flagged as a PV node.
* All children of cut nodes are all nodes.
* All children of all nodes are cut nodes.
* If an expected cut node does not cut in the first move then it becomes an all node and continues searching moves.
* If an expected all node cuts then the node is done searching.
At the end of each node, I am tallying some counters. At the end of searching a position for a few seconds, I will see something like this:
All Nodes encountered: 3112
All Nodes that Failed High: 1261
All Nodes First Move Fail High: 839
Cut Nodes encountered: 15807
Cut Nodes that Failed Low: 177
Cut Nodes First Move Fail High: 9570
Here's what I feel I can conclude:
* My cut nodes are successfully cutting, percentage could be better.
* The all nodes are cutting at a high rate, but I did not expect this to happen.
From what I read about node types, in perfect move ordering, we search all moves in an all node but in a cut node we'll only end up searching the first move. Also, it is mentioned that move ordering in an all node can be insignificant.
But, since move ordering is not perfect, I believe what I am seeing is expected - there will be some cut nodes that do not cut, some all nodes that do cut.
My question here is how to treat this? Can an all node's move ordering not be improved? Maybe I am doing something wrong - maybe the count of fail highs for the all nodes should be reduced while the count of fail lows for cut nodes should also be reduced?
Ty
-Cheney