I was hoping there were some Meta-Rules that could be applied to avoid a search, but apparently the only alternative is to work on 24 different cube orientations in tandem.
Well, we're not "combining" orientations here, or even dealing with
orientations at all (except for fixing one of the slices to *prevent*
full-cube rotations). If you don't want to prevent whole-cube
rotations in this fashion, then much of this may not apply.
So a few questions I have are:
1. Given that there are some transposing move sequences which can:
a) create the same position on a solved cube,
and...
b) create a different position from a randomly scrambled cube...
...does this imply that the total number of unique moves possible as a function of depth from any given position might vary?
The last few messages I've written have *only* concerned themselves
with pruning the search tree of redundant move sequences, and the
only reasonable way to do this is on the supercube, which is a group,
and thus worrying about the "starting position" is not relevant.
Taking the actual position into account when pruning move sequences
is probably not going to be a win (but who knows, I might be
surprised).
It's pretty easy to evaluate, though. Just perform a search to a
particular depth using your sequence pruning, and compare the count
of sequences (equivalently, leaves in your search tree) against the
number of distinct positions found. If they are very close, then further
pruning is probably not helpful. This is assuredly the case for the 3x3x3
to extremely deep plies, and is probably the case on the 4x4x4 to the
depths we can reasonably search to.
Essentially, you define a set of canonical sequences (those generated
by your pruned tree search), and compare the count of canonical
sequences of a given length, with the count of distinct positions at a
particular distance from some particular position (typically the solved
position).
2. This goes along with question 1 somewhat. In chess, we can list every possible legal move to a certain depth, such as 1. e4 e5 2. Nf3 and 1. e4 c5 2. d4 cxd4 3. c3 dxc3 4. Nxc3, etc. Has anyone performed any auditing of the move generator output to determine if, in fact, they are all in agreement? Or has there only been node count level verification?
In general, when writing tree pruning, you *always* compare distinct
position counts both with and without the tree pruning enabled, as
deeply as you can, to ensure you're not pruning excessively. I would
assume this is being done even by you as you add whatever pruning
you are considering.
is it possible to extrapolate the list to the next depth . . .
Absolutely; this is exactly the information
codified by the finite state machine. You can easily turn it into a matrix
that will give you the count of canonical sequences of any length.
I have two matrices:
legal_move[state][move] -> boolean
In reality, this is a single-dimension array with bitmasks.
next_state[state][move] -> state
Initial state is "0". Each move gives you a bitmask of legal
next moves; picking a legal move, you can combine it with
the current state through the next_state array to get the
subsequent state.
Last edited: