Scrambles: How Do They Work? (US Nationals 2016 Seminar)

Lucas Garron

Premium Member
Joined
Jul 6, 2007
Messages
3,757
Location
California
WCA ID
2006GARR01
YouTube
Visit Channel
The WCA has gone through a variety of scrambles since 2003, and a lot of the history is not common knowledge. I gave a seminar at Nationals yesterday to gather some of the history in one place.

Thanks to Chris Olson, I have a nice recording of it, so I'm sharing it here.
Watch it and I promise you'll learn something new. :-)

 
I am slightly disappointed by the lack of reaction to this post (and video).
I think it was a great addition to the seminars and even though you didn't go too much in depth on how the scrambling process actually worked (which I would be interested to see) to not alienate 90% of the crowd, I think enough good information was displayed for people to be interested and learn new things.

For people who watched it here, I leave two URLs:
Presentation and Notes
Explanation on TNOODLE's name

I would like to suggest a seminar for the future that is exactly about the opposite (the past).
One of the "old timers" could go through the history of the WCA and speedcubing and give out the highlights of the evolution we've been through, for those that were almost not even born when things started and hopefully document it on a webpage for future reference. It would be great to have a reference of the past and credit the people that brought us to where we are today. hint: history.cubing.net? :P
 
Ah, that's the reference I was looking for. Thanks for finding it!

I would like to suggest a seminar for the future that is exactly about the opposite (the past).
One of the "old timers" could go through the history of the WCA and speedcubing and give out the highlights of the evolution we've been through, for those that were almost not even born when things started and hopefully document it on a webpage for future reference. It would be great to have a reference of the past and credit the people that brought us to where we are today. hint: history.cubing.net? :p
We have Story Time with Uncle Tyson (also see this post on scramble orientation). Macky is too busy to maintain it, but perhaps someone else could take the torch?

Ian Sheffler's book is also coming out soon, and it might cover some interesting parts of the history (I don't know, I haven't read it yet).
 
Nice talk. Darn, missed another US nats. I miss you people, please still be around next year :-)

At 7:30 in the video you say there are alternative approaches to the usual random state scrambling. What did you mean?
 
Cool stuff! So for big cubes is the problem writing software to solve a scramble optimally? I guess so or your scramble would be really long. I think solving one like a human solve would be doable, that's why I ask.
 
Last edited:
To generate a random state scramble, what the program basically does is find a random position and then solve the cube to that position, and invert it, so you can reach that state from a solved cube.
The problem is for big cubes you can't easily find a solution for a given state of the cube in usable time and with a usable number of moves for a scrambling purpose, with the hardware that we have now, because it's just too large of a verification, so what is currently being done is generate a sufficiently large number of random moves, which is very simple to generate randomly.
Doing random moves is not the same as generating a random state, as it's not "random enough", but for big cubes that has to be accepted for the time being.
 
A 7x7 solver that gives 1000+ move solutions in a fraction of a second isn't hard to write at all. The problem is that 7x7 at a competition would involve a lot of sitting around waiting for the scramblers to finish. Anyway, the chance of making several mistakes in 1000 moves is fairly high, which means you aren't really any better off than if you'd just done random moves anyway.
 
I actually wrote a 5x5x5 solver about two months ago that runs in a few seconds (usually) and generates solutions of around 85 to 95 moves, but this is still much higher than the number of moves currently used for 5x5x5 random-move scrambles.

It'd be pretty funny if we adopted random-state scrambles for the 5x5x5 and the average 5x5x5 scramble ends up longer than the 6x6x6 scrambles!
 
If we had an optimal solver for edges and corners on 5x5, ignoring centres, would we expect its solutions to do a good enough job of scrambling centres when inverted? In other words, use random state scrambles based only on inverting a solution for random state edges and corners.

I suspect it would be OK, as the solutions would have plenty of moves, including slices/wide turns, and with so many duplicate centre pieces this would way exceed the number of moves required to solve a random centre pattern, on average.
 
Hmm, I vaguely remember us talking about this a while back, but can't really remember and I've also been gone for a while...

My actual target is big cubes, but let me first show the idea with the 3x3. Consider scrambling a 3x3 by applying a random-edges-state scramble and then applying a random-corners-state scramble. Extracting some statistics from Domain of the Cube:
Code:
depth     edge states    corner states
 0                  1             1
 1                 18            18
 2                243           243
 3              3,240         2,874
 4             42,807        28,000
 5            555,866       205,416
 6          7,070,103     1,168,516
 7         87,801,812     5,402,628
 8      1,050,559,626    20,776,176
 9     11,588,911,021    45,391,616
10    110,409,721,989    15,139,616
11    552,734,197,682        64,736
12    304,786,076,626
13        330,335,518
14                248

The edges average 11.17 moves, the corners average 8.76 moves, and together they average 19.93 moves. With this distribution:
Code:
12 moves:  0.000%
13 moves:  0.001%
14 moves:  0.010%
15 moves:  0.070%
16 moves:  0.393%
17 moves:  1.844%
18 moves:  7.142%
19 moves: 21.176%
20 moves: 38.259%
21 moves: 25.683%
22 moves:  5.393%
23 moves:  0.029%
24 moves:  0.000%
The 19.93 moves are pretty much what we achieve with Cube Explorer, right? And it's close to the average ~17.70 moves for optimal solving/scrambling, computed from cube20.org's distribution:
Code:
 0    1
 1    18
 2    243
 3    3,240
 4    43,239
 5    574,908
 6    7,618,438
 7    100,803,036
 8    1,332,343,288
 9    17,596,479,795
10    232,248,063,316
11    3,063,288,809,012
12    40,374,425,656,248
13    531,653,418,284,628
14    6,989,320,578,825,358
15    91,365,146,187,124,313
16    about 1,100,000,000,000,000,000
17    about 12,000,000,000,000,000,000
18    about 29,000,000,000,000,000,000
19    about 1,500,000,000,000,000,000
20    about 490,000,000
As I see it, Kociemba's two-phase solver needs to preserve in the second phase what it achieved in the first phase, i.e., the particular subgroup state or what it's called. But that's because it's solving. When we're scrambling, a second phase doesn't need to preserve a subgroup state or so. All it needs to preserve is the already achieved "randomness". If the edge scrambles and corner scrambles are related, it could create bias and not preserve the randomness. But I suspect it would be fairly good. And have a look at the distributions for Kociemba's two phases:
Code:
 0               1               1
 1               1               3
 2               5              10
 3              44              52
 4             487             285
 5            5841            1318
 6           68364            5671
 7          776568           26502
 8         7950748          115467
 9        52098876          470846
10        76236234         1853056
11         3771112         6535823
12             129        18349792
13                        32843350
14                        34118883
15                        15974563
16                         1290346
17                           19777
18                              15

Phase 1 averages 9.53 moves, phase 2 averages 13.27 moves, together that's 22.80 moves. So that's longer than simply applying a random-edges scramble and a random-corners scramble (the above 19.93 moves). Meaning longer scrambles and harder computation. Why is it longer? I'd say because the second phase preserves a specific subgroup (?), while in the edges+corners idea, the corners-scramble doesn't care what happens to the edges. (Of course cube explorer actually explores more combinations and easily averages about 20 moves as well)

Now back to my actual target, big cubes, let's say 5x5. What if we apply a 3x3 scramble to scramble the corners and midges, then a wings scramble, then an X-centers scramble, and then a T-centers scramble? Each phase disregarding the other phases. Again, they could be related and cause bias, but again I suspect it's not that bad. Also, not having to preserve the previously achieved stuff leads to shorter sequences, which is good both because we like few moves and because it's easier to compute. And not even having to track the already scrambled pieces of the previous phases makes the computation easier still.

Has this been explored yet? Do we know distributions for example for solving 5x5 wings (ignoring all other pieces)? I believe I've seen a distribution (or at least upper bound) for solving 4x4 centers, but I just tried finding it and failed.
 
Last edited:
Now back to my actual target, big cubes, let's say 5x5. What if we apply a 3x3 scramble to scramble the corners and midges, then a wings scramble, then an X-centers scramble, and then a T-centers scramble? Each phase disregarding the other phases. Again, they could be related and cause bias, but again I suspect it's not that bad. Also, not having to preserve the previously achieved stuff leads to shorter sequences, which is good both because we like few moves and because it's easier to compute. And not even having to track the already scrambled pieces of the previous phases makes the computation easier still.
It makes sense to me. Given the comments above about keeping scrambles to a reasonable length, my thought was whether a random state scramble for the corners, midges and wings - whether done together or in consecutive phases as you suggest - acts as a sufficiently long and unbiased random move scramble for the centres. That way you would avoid extending the scramble with sequences to apply further random state permutations to X and T centres.
 
Has this been explored yet?
Yes. Both I and Tom Rokicki have tried to use this idea somewhere on this forum, and tricked ourselves into making absolutely stupid mistakes (which you even pointed out ;-). Here's a better overview.

Here's a proper implementation for Pyraminx, which was briefly used for WCA Pyraminx scrambles.

Each phase disregarding the other phases. Again, they could be related and cause bias, but again I suspect it's not that bad.
Yes, they could. They will. I don't think you can safely assume that it's not bad. To use the example from the overview I linked above, you can't assume that the light switches are independent.

*However*, it could turn out that the scrambles using an idea like this are at least less bad than an equivalent amount of random moves. We should write a tool for trying variants of this idea and analyzing aspects of the resulting distributions.
 
Actually, it seems that the description in that thread doesn't match the implementation adopted by the WCA.
And the description describes a faulty alg. Need to look into it some more.

The WCA scramble program from 2009 has:
  • Randomize the edges in two of the edge slots (preserving centers, ignoring other edges)
  • Randomize remaining 4 edges (preserving centers)
  • Randomize centers
  • Randomize tips
Which, unlike the description in the speedsolving.com is, critically, uniform random-state. I think I fixed it after making that post.
 
Can you please define a random state? I don't understand this definition:

"A random-state scramble is a move sequence that, a priori, is equally likely to be any valid state of the puzzle."

... because I believe it was determined random move scrambles were not random state by analyzing the scrambles, which seems to conflict with a priori. I also don't know what is meant by a valid puzzle state.

Another question on the analysis that determined the states were not random, was that done on different random scramble programs written independently by different people? I would not be surprised for different applications to produce different results.
 
It's easy to tell when this is the case: check if the URSS distribution is an equilibrium.

Incidentally, this makes it much easier to prove that our big cube scramblers converge on the "right" distribution.

You have to expand the notion of state to include both puzzle state and scrambler state (e.g. some information to keep track of axes), but it works out.

Similarly, all states reachable using our Megaminx scramble system will have an even probability in the long term. I don't know if anyone has calculated whether all states are reachable, but it's plausible (cuberBruce, up for some GAP calculations?).

In any case, for real-world scrambles it doesn't actually matter if you can reach every state, as long as no one can tell the difference between a scramble from a scrambler and a perfect random-state scramble (whatever the target distribution is). But that's a different topic; see this post.
 
Last edited:
Do we know distributions for example for solving 5x5 wings (ignoring all other pieces)? I believe I've seen a distribution (or at least upper bound) for solving 4x4 centers, but I just tried finding it and failed.

Chen Shuang's analysis gives an upper bound of 1 (parity) + 7 (EO) + 16 (pairing) + 14 (3x3x3 edges) = 38 moves for 4x4x4/5x5x5 wings, I think.

Jaap gave an upper bound of 22 SSTM for 4x4x4 centres.

If we're looking at "partial random-state" scrambles, it might be good to make sure the centres are fully randomised, as almost every method (reduction or direct solving) does two opposite centres first, and the process of solving the centres will automatically mess up the rest of the cube for us even if the non-centre pieces weren't originally "well scrambled". (5x5x5 centres take about 34 moves with my solver on average, so we could do a random-state scramble for the centres then tack on 30-ish more random moves or something.)

BLD might be an exception to this and we probably should be more careful there, though. If it turns out that random-move scrambles cause certain cycle structures to appear more often than they should, switching to random-state might make 5BLD considerably harder (or easier, who knows).
 
Back
Top