Skip to content

sohirata/rubik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubik

See S. Hirata, “Probabilistic estimates of the diameters of the Rubik's Cube groups,” (14 pages), arXiv:2404.07337 (2024), https://arxiv.org/abs/2404.07337 .

2x2x2 Rubik's Cube

It enumerates all 3,674,160 configurations of 2x2x2 Rubik's Cube by performing all possible turns in each step, thereby determining its God's number (the minimal number of turns to solve the Cube in any initial configuration; the diameter of the Cayley graph of the Rubik's Cube group) in various metrics. It also reports the frequency of the appearances of duplicate configurations and the numbers of the turns used to reach all configurations.

how to compile

cd rubik2x2x2

make

how to run

2x2x2

available metrics

half-turn metric (God's number is 11)

R, D, B, R-1, D-1, B-1, R2, D2, B2 in the Singmaster notation.

quarter-turn metric (God's number is 14)

R, D, B, R-1, D-1, B-1 in the Singmaster notation.

semi-quarter-turn metric (God's number is 19)

R, D, B in the Singmaster notation.

bi-quarter-turn metric (God's number is 10)

R, D, B, R-1, D-1, B-1, R2, D2, B2, RD, R-1D-1, DB, D-1B-1, BR, B-1R-1 in the Singmaster notation.

available algorithms

bisection search in sorted list

The list of configurations is sorted and new configurations are rapidly compared against it by a bisection search.

linear search in unsorted list

The list of configurations is unsorted and new configurations are compared sequentially.

3x3x3 Rubik's Cube

It enumerates unique configurations of 3x3x3 Rubik's Cube by performing all possible turns in each step, starting from the completely solved configuration. The numbers of unique configurations in the first few steps can be used to determine the branching ratio.

how to compile

cd rubik3x3x3

make

how to run

3x3x3

half-turn metric (God's number is 20 according to Rokicki et al., SIAM J. Discrete Math. 27, 1082-1105 (2013))

R, D, B, L, U, F, R-1, D-1, B-1, L-1, U-1, F-1, R2, D2, B2, L2, U2, F2 in the Singmaster notation.

quarter-turn metric (God's number is 26 according to Rokicki et al., SIAM J. Discrete Math. 27, 1082-1105 (2013))

R, D, B, L, U, F, R-1, D-1, B-1, L-1, U-1, F-1 in the Singmaster notation.

4x4x4 Rubik's Cube

It enumerates unique configurations of 4x4x4 Rubik's Cube by performing all possible turns in each step, starting from the completely solved configuration. The numbers of unique configurations in the first few steps can be used to determine the branching ratio.

how to compile

cd rubik4x4x4

make

how to run

4x4x4

half-turn metric (God's number is unknown)

R1, R2, R3, D1, D2, D3, B1, B2, B3, R1-1, R2-1, R3-1, D1-1, D2-1, D3-1, B1-1, B2-1, B3-1, R12, R22, R32, D12, D22, D32, B12, B22, B32.

quarter-turn metric (God's number is unknown)

R1, R2, R3, D1, D2, D3, B1, B2, B3, R1-1, R2-1, R3-1, D1-1, D2-1, D3-1, B1-1, B2-1, B3-1.

5x5x5 Rubik's Cube

It enumerates unique configurations of 5x5x5 Rubik's Cube by performing all possible turns in each step, starting from the completely solved configuration. The numbers of unique configurations in the first few steps can be used to determine the branching ratio.

how to compile

cd rubik5x5x5

make

how to run

5x5x5

half-turn metric (God's number is unknown)

R1, R2, D1, D2, B1, B2, L1, L2, U1, U2, F1, F2, R1-1, R2-1, D1-1, D2-1, B1-1, B2-1, L1-1, L2-1, U1-1, U2-1, F1-1, F2-1, R12, R22, D12, D22, B12, B22, L12, L22, U12, U22, F12, F22.

quarter-turn metric (God's number is unknown)

R1, R2, D1, D2, B1, B2, L1, L2, U1, U2, F1, F2, R1-1, R2-1, D1-1, D2-1, B1-1, B2-1, L1-1, L2-1, U1-1, U2-1, F1-1, F2-1.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published