Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

God's Number Search for X-Cross, Bug in Position Counts with Identical Pieces #113

Open
DougCube opened this issue Feb 24, 2025 · 37 comments

Comments

@DougCube
Copy link

DougCube commented Feb 24, 2025

I am running this search for god's number for a specific X-Cross (cross + first pair).
However, it has been running for over 6 hours. A similar search for Cross took only a few seconds.
./twsearch -g -t 11 xcross_UFR.tws

So far, it's output these position counts:

Dist 0 cnt 1 tot 1 in 2.69413e-05
Dist 1 cnt 15 tot 16 in 1.19209e-05
Dist 2 cnt 172 tot 188 in 2.90871e-05
Dist 3 cnt 1950 tot 2138 in 0.000377893
Dist 4 cnt 21535 tot 23673 in 0.00474715
Dist 5 cnt 220368 tot 244041 in 0.0606499
Dist 6 cnt 1989591 tot 2233632 in 0.86908
Dist 7 cnt 13431990 tot 15665622 in 11.9216
Dist 8 cnt 40963892 tot 56629514 in 24.3731
Dist 9 cnt 16325184 tot 72954698 in 7.37705
<misc output omitted>

However, there are just 4 edge pieces and 1 corner piece involved so the total number of positions is 4,561,920 which I derive from the following product:
CP = 8
CO = 3
EP = 12 * 11 * 10 * 9
EO = 2^4
The problem is that the counts and totals given exceeds this number of positions.

Definition file is on stickers instead of pieces (i.e. no orientations):

Name xcross_UFR

Set CORNER 24 1
Set EDGE 24 1

Solved
CORNER
4 4 4 1 4 4 4 4 4 4 2 4 4 3 4 4 4 4 4 4 4 4 4 4
EDGE
1 2 3 4 11 11 11 11 11 11 5 6 11 7 8 11 11 11 9 11 11 11 10 11
End

Move U
CORNER
4 1 2 3 5 6 7 8 9 14 15 12 13 18 19 16 17 22 23 20 21 10 11 24
EDGE
4 1 2 3 5 6 7 8 9 10 15 12 13 14 19 16 17 18 23 20 21 22 11 24
End

Move D
CORNER
1 2 3 4 8 5 6 7 21 10 11 24 9 14 15 12 13 18 19 16 17 22 23 20
EDGE
1 2 3 4 8 5 6 7 21 10 11 12 9 14 15 16 13 18 19 20 17 22 23 24
End

Move R
CORNER
1 2 11 12 5 6 17 18 9 10 7 8 16 13 14 15 3 4 19 20 21 22 23 24
EDGE
1 2 3 12 5 6 7 18 9 10 11 8 16 13 14 15 17 4 19 20 21 22 23 24
End

Move L
CORNER
19 20 3 4 9 10 7 8 1 2 11 12 13 14 15 16 17 18 5 6 24 21 22 23
EDGE
1 20 3 4 5 10 7 8 9 2 11 12 13 14 15 16 17 18 19 6 24 21 22 23
End

Move F
CORNER
24 2 3 23 5 13 14 8 12 9 10 11 4 1 15 16 17 18 19 20 21 22 6 7
EDGE
24 2 3 4 5 6 14 8 12 9 10 11 13 1 15 16 17 18 19 20 21 22 23 7
End

Move B
CORNER
1 15 16 4 22 6 7 21 9 10 11 12 13 14 8 5 20 17 18 19 2 3 23 24
EDGE
1 2 16 4 22 6 7 8 9 10 11 12 13 14 15 5 20 17 18 19 21 3 23 24
End

The definition file has been throughly tested in solving scrambles and Ihave high confidence in it. But in case needed the ordering is:

Corner Stickers:
UFL, UBL, UBR, UFR,
DBL, DFL, DFR, DBR,
FDL, FUL, FUR, FDR,
RDF, RUF, RUB, RDB,
BDR, BUR, BUL, BDL,
LDB, LUB, LUF, LDF

Edge Stickers:
UF, UL, UB, UR,
DB, DL, DF, DR,
FD, FL, FU, FR,
RD, RF, RU, RB,
BD, BR, BU, BL,
LD, LB, LU, LF
@DougCube
Copy link
Author

Earlier, the one I ran for Cross yielded results identically matching the results published by others:

Cross:
Dist 0 cnt 1 tot 1 in 1.53394
Dist 1 cnt 15 tot 16 in 0.540655
Dist 2 cnt 158 tot 174 in 0.533582
Dist 3 cnt 1394 tot 1568 in 0.535519
Dist 4 cnt 9809 tot 11377 in 0.538135
Dist 5 cnt 46381 tot 57758 in 0.614591
Dist 6 cnt 97254 tot 155012 in 0.730761
Dist 7 cnt 34966 tot 189978 in 0.903893
Dist 8 cnt 102 tot 190080 in 0.729984
Dist 9 cnt 0 tot 190080 in 0.7331

And I had also run one for 2x2x2 block which has total positions matching expected value of 8 * 3 * (12 * 11 * 10) * 2^3.

2x2x2:
Dist 0 cnt 1 tot 1 in 4.29153e-05
Dist 1 cnt 9 tot 10 in 4.05312e-06
Dist 2 cnt 90 tot 100 in 3.19481e-05
Dist 3 cnt 852 tot 952 in 0.000323057
Dist 4 cnt 7169 tot 8121 in 0.00399399
Dist 5 cnt 44182 tot 52303 in 0.0523069
Dist 6 cnt 131636 tot 183939 in 0.743832
Dist 7 cnt 68940 tot 252879 in 10.066
Dist 8 cnt 561 tot 253440 in 28.9637
Dist 9 cnt 0 tot 253440 in 8.47705

And there are other cases I ran that match expectation, but the X-Cross one does not match expectation.

@DougCube
Copy link
Author

NEVERMIND, I forgot about the FR edge piece in my calculation.

@DougCube
Copy link
Author

DougCube commented Feb 24, 2025

I spoke too soon. Next line of output was this:

Dist 10 cnt 36023 tot 72990721 in 13.6056

But:
CP = 8
CO = 3
EP = 12 * 11 * 10 * 9 * 8
EO = 2^5
product = 72,990,720

And it's been running for 10 hours now.

@rokicki
Copy link
Collaborator

rokicki commented Feb 24, 2025 via email

@DougCube
Copy link
Author

Maybe not, because it's total at 10 moves or less is 1 OVER the expected count already.
I'm going to wait for this to finish and then run it again, because it could be a glitch.

@rokicki
Copy link
Collaborator

rokicki commented Feb 24, 2025 via email

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

I didn't know about the -F option. How does it impact the runtime?

The number of positions is 72,990,720 but the current total it is giving uo to distance 10 is already 1 greater than this number.
Also, even if these numbers are fine, it has been running for nearly 18 hours now, which would indicate a serious performance issue. I should rerun with -F (and -t 23). Btw, what is the default thread usage when there is no -t given?

Dist 10 cnt 36023 tot 72990721 in 13.6056

But:
CP = 8
CO = 3
EP = 12 * 11 * 10 * 9 * 8
EO = 2^5
product = 72,990,720

I do agree that Dist 1 cnt 15.

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

I just ran something else to verify that the totals are correct up to distance 5.

gods_number_for_xcross_log.txt
xcross_UFR_(change ext to tws).txt

@DougCube DougCube reopened this Feb 25, 2025
@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

Okay, at this point I suspect it's stuck in an inf-loop so I killed it after letting it run for 19 hours.

I reluanched using $ time ./twsearch -g -F -t 23 xcross_UFR.tws and it finished in about 1m37s.

Dist 0 cnt 1 tot 1 in 3.09944e-05
Dist 1 cnt 15 tot 16 in 0.00141907
Dist 2 cnt 172 tot 188 in 0.000622988
Dist 3 cnt 1950 tot 2138 in 0.00113797
Dist 4 cnt 21535 tot 23673 in 0.00416207
Dist 5 cnt 220368 tot 244041 in 0.028065
Dist 6 cnt 1989591 tot 2233632 in 0.270671
Dist 7 cnt 13431990 tot 15665622 in 2.58588
Dist 8 cnt 40963892 tot 56629514 in 17.723
Created 375100830 elements in 2.09046
to 15655787 in 15.4481
Created 375100847 elements in 1.59775
to 16324704 in 35.3007
Dist 9 cnt 16325184 tot 72954698 in 1.48727
Dist 10 cnt 36022 tot 72990720 in 20.4117
Dist 11 cnt 0 tot 72990720 in 0.0672741
<snip>

real    1m37.032s
user    5m2.072s
sys     0m3.151s

@DougCube
Copy link
Author

The point of what I'm trying to do is to find some gods numbers to different subgoals and append --maxdepth <N> to my searches, hoping that will improve runtimes, but I don't even know if it matters when it's probably doing BFS.

@cs0x7f
Copy link

cs0x7f commented Feb 25, 2025

Okay, at this point I suspect it's stuck in an inf-loop so I killed it after letting it run for 19 hours.

I reluanched using $ time ./twsearch -g -F -t 23 xcross_UFR.tws and it finished in about 1m37s.

Dist 0 cnt 1 tot 1 in 3.09944e-05
Dist 1 cnt 15 tot 16 in 0.00141907
Dist 2 cnt 172 tot 188 in 0.000622988
Dist 3 cnt 1950 tot 2138 in 0.00113797
Dist 4 cnt 21535 tot 23673 in 0.00416207
Dist 5 cnt 220368 tot 244041 in 0.028065
Dist 6 cnt 1989591 tot 2233632 in 0.270671
Dist 7 cnt 13431990 tot 15665622 in 2.58588
Dist 8 cnt 40963892 tot 56629514 in 17.723
Created 375100830 elements in 2.09046
to 15655787 in 15.4481
Created 375100847 elements in 1.59775
to 16324704 in 35.3007
Dist 9 cnt 16325184 tot 72954698 in 1.48727
Dist 10 cnt 36022 tot 72990720 in 20.4117
Dist 11 cnt 0 tot 72990720 in 0.0672741
<snip>

real    1m37.032s
user    5m2.072s
sys     0m3.151s

I think these numbers are correct, they are consistent with another calculation result from more than ten years ago: http://www.mf8-china.com/forum.php?mod=viewthread&tid=93127

@DougCube
Copy link
Author

Yes, I started having confidence in these numbers when I manually tried dist=2 and ran a different tool that matched up to dist=5.

Comparing this correct table, with the version run without -F, it diverges at dist=10 and gives this inccorrect line instead:
Dist 10 cnt 36023 tot 72990721 in 13.6056 and then I think it just infinite-loops.

@DougCube
Copy link
Author

DougCube commented Feb 25, 2025

I changed definition files to run similar search but for a 2x2x3 block. It keeps crashing due to running out of memory.

$ time ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
# This is twsearch v0.6.6-143-gd3621b5 (C) 2022 Tomas Rokicki.
# ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
Created new moves U2 U' D2 D' R2 R' L2 L' F2 F' B2 B'
State size is about 6.89703 x 10^20 log2 69.2245
Requiring 161 bits 24 bytes per entry; 32 from identity.
Found 7 canonical move states.
Calculated canonical states in 0.000111103
Using sorting bfs and arrays.
Dist 0 cnt 1 tot 1 in 3.29018e-05
Dist 1 cnt 12 tot 13 in 0.00113106
Dist 2 cnt 141 tot 154 in 0.00108409
Dist 3 cnt 1746 tot 1900 in 0.00120497
Dist 4 cnt 20935 tot 22835 in 0.00329089
Dist 5 cnt 243092 tot 265927 in 0.020803
Dist 6 cnt 2698935 tot 2964862 in 0.218474
Dist 7 cnt 27258179 tot 30223041 in 2.74685
Created 327956796 elements in 3.01091
to 161981604 in 13.9112
Dist 8 cnt 216204042 tot 246427083 in 20.5663
Created 114451686 elements in 0.66789
to 55362257 in 5.59231
Created 114451685 elements in 0.322043
to 80247849 in 6.96348
Created 114451701 elements in 0.186485
to 94441887 in 6.11235
Created 114451695 elements in 0.106997
to 102607201 in 5.60856
Created 114451687 elements in 0.07144
to 107380002 in 6.40387
Created 114451698 elements in 0.039526
to 110130399 in 6.52557
! out of memory

real    1m19.096s
user    6m32.798s
sys     0m3.954s
$ time ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
# This is twsearch v0.6.6-143-gd3621b5 (C) 2022 Tomas Rokicki.
# ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
Created new moves U2 U' D2 D' R2 R' L2 L' F2 F' B2 B'
State size is about 6.89703 x 10^20 log2 69.2245
Requiring 161 bits 24 bytes per entry; 32 from identity.
Found 7 canonical move states.
Calculated canonical states in 0.000104904
Using sorting bfs and arrays.
Dist 0 cnt 1 tot 1 in 3.00407e-05
Dist 1 cnt 12 tot 13 in 0.00110698
Dist 2 cnt 141 tot 154 in 0.00089407
Dist 3 cnt 1746 tot 1900 in 0.00112987
Dist 4 cnt 20935 tot 22835 in 0.00310898
Dist 5 cnt 243092 tot 265927 in 0.0202291
Dist 6 cnt 2698935 tot 2964862 in 0.217447
Dist 7 cnt 27258179 tot 30223041 in 2.59254
Created 327956814 elements in 2.48277
to 161981611 in 13.4103
Dist 8 cnt 216204042 tot 246427083 in 19.9385
Created 114451704 elements in 0.161602
to 55362262 in 5.89678
Created 114451708 elements in 0.27744
to 80247872 in 6.77853
Created 114451706 elements in 0.172443
to 94441896 in 6.07879
Created 114451704 elements in 0.097373
to 102607206 in 179.863
Created 114451710 elements in 0.061398
to 107380014 in -167.603
Created 114451710 elements in 0.0403171
to 110130402 in 6.35392
! out of memory

real    1m16.860s
user    6m8.993s
sys     0m3.089s

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

So would it be -M 64000 to allow it to use up to 64 GB? Or is it -M 65536?

@cs0x7f
Copy link

cs0x7f commented Feb 25, 2025

I changed definition files to run similar search but for a 2x2x3 block. It keeps crashing due to running out of memory.

$ time ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
# This is twsearch v0.6.6-143-gd3621b5 (C) 2022 Tomas Rokicki.
# ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
Created new moves U2 U' D2 D' R2 R' L2 L' F2 F' B2 B'
State size is about 6.89703 x 10^20 log2 69.2245
Requiring 161 bits 24 bytes per entry; 32 from identity.
Found 7 canonical move states.
Calculated canonical states in 0.000111103
Using sorting bfs and arrays.
Dist 0 cnt 1 tot 1 in 3.29018e-05
Dist 1 cnt 12 tot 13 in 0.00113106
Dist 2 cnt 141 tot 154 in 0.00108409
Dist 3 cnt 1746 tot 1900 in 0.00120497
Dist 4 cnt 20935 tot 22835 in 0.00329089
Dist 5 cnt 243092 tot 265927 in 0.020803
Dist 6 cnt 2698935 tot 2964862 in 0.218474
Dist 7 cnt 27258179 tot 30223041 in 2.74685
Created 327956796 elements in 3.01091
to 161981604 in 13.9112
Dist 8 cnt 216204042 tot 246427083 in 20.5663
Created 114451686 elements in 0.66789
to 55362257 in 5.59231
Created 114451685 elements in 0.322043
to 80247849 in 6.96348
Created 114451701 elements in 0.186485
to 94441887 in 6.11235
Created 114451695 elements in 0.106997
to 102607201 in 5.60856
Created 114451687 elements in 0.07144
to 107380002 in 6.40387
Created 114451698 elements in 0.039526
to 110130399 in 6.52557
! out of memory

real    1m19.096s
user    6m32.798s
sys     0m3.954s
$ time ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
# This is twsearch v0.6.6-143-gd3621b5 (C) 2022 Tomas Rokicki.
# ./twsearch -g -F -t 23 def_files/2x2x3_DL.tws
Created new moves U2 U' D2 D' R2 R' L2 L' F2 F' B2 B'
State size is about 6.89703 x 10^20 log2 69.2245
Requiring 161 bits 24 bytes per entry; 32 from identity.
Found 7 canonical move states.
Calculated canonical states in 0.000104904
Using sorting bfs and arrays.
Dist 0 cnt 1 tot 1 in 3.00407e-05
Dist 1 cnt 12 tot 13 in 0.00110698
Dist 2 cnt 141 tot 154 in 0.00089407
Dist 3 cnt 1746 tot 1900 in 0.00112987
Dist 4 cnt 20935 tot 22835 in 0.00310898
Dist 5 cnt 243092 tot 265927 in 0.0202291
Dist 6 cnt 2698935 tot 2964862 in 0.217447
Dist 7 cnt 27258179 tot 30223041 in 2.59254
Created 327956814 elements in 2.48277
to 161981611 in 13.4103
Dist 8 cnt 216204042 tot 246427083 in 19.9385
Created 114451704 elements in 0.161602
to 55362262 in 5.89678
Created 114451708 elements in 0.27744
to 80247872 in 6.77853
Created 114451706 elements in 0.172443
to 94441896 in 6.07879
Created 114451704 elements in 0.097373
to 102607206 in 179.863
Created 114451710 elements in 0.061398
to 107380014 in -167.603
Created 114451710 elements in 0.0403171
to 110130402 in 6.35392
! out of memory

real    1m16.860s
user    6m8.993s
sys     0m3.089s

Here is a 2x2x3 depth distribution calculated by other cubers years ago.

0 1
1 12
2 141
3 1746
4 20935
5 243092
6 2698935
7 27258179
8 216204042
9 830686751
10 453825501
11 1865784
12 1

@cs0x7f
Copy link

cs0x7f commented Feb 25, 2025

Image
And this is the 12f position.

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

DougCube commented Feb 25, 2025

Funny thing. I got same isssue but on a different definition file.

And thanks to Chen, we know where it diverges from correct.
In the below, Dist 10 is +1 from the correct value.
It then does weird stuff and runs out of memory.

$ time ./twsearch -g -F -t 23 -M 65536 def_files/2x2x3_DL.tws
# This is twsearch v0.6.6-143-gd3621b5 (C) 2022 Tomas Rokicki.
# ./twsearch -g -F -t 23 -M 65536 def_files/2x2x3_DL.tws
Created new moves U2 U' D2 D' R2 R' L2 L' F2 F' B2 B'
State size is about 6.89703 x 10^20 log2 69.2245
Requiring 161 bits 24 bytes per entry; 32 from identity.
Found 7 canonical move states.
Calculated canonical states in 0.000421047
Using sorting bfs and arrays.
Dist 0 cnt 1 tot 1 in 3.48091e-05
Dist 1 cnt 12 tot 13 in 0.00090003
Dist 2 cnt 141 tot 154 in 0.000636101
Dist 3 cnt 1746 tot 1900 in 0.000864029
Dist 4 cnt 20935 tot 22835 in 0.00327301
Dist 5 cnt 243092 tot 265927 in 0.0198879
Dist 6 cnt 2698935 tot 2964862 in 0.224359
Dist 7 cnt 27258179 tot 30223041 in 2.73444
Dist 8 cnt 216204042 tot 246427083 in 30.4197
Created 2619849276 elements in 25.7704
to 694876500 in 125.196
Dist 9 cnt 830686751 tot 1077113834 in 146.079
Created 1816420716 elements in 9.65677
to 233650322 in 97.4081
Created 1816420706 elements in 7.96838
to 332360584 in 81.9052
Created 1816420714 elements in 7.912
to 387056536 in 85.349
Created 1816420714 elements in 7.44941
to 414692315 in 91.7252
Created 1816420715 elements in 7.31139
to 432632488 in 93.8854
Created 1816420702 elements in 7.76155
to 441917062 in 95.9229
Created 1816420714 elements in 7.41433
to 448573938 in 106.248
Created 1816420704 elements in 180.574
to 451076104 in -41.2412
Created 1816420708 elements in 7.79261
to 452503717 in 142.801
Created 1816420705 elements in 6.82965
to 453593933 in 138.601
Dist 10 cnt 453825502 tot 1530939336 in 225.869
Created 1578799242 elements in -165.384
to 1765369 in 69.924
Created 1578799243 elements in 8.14429
to 1864328 in 71.9242
Created 1578799256 elements in 8.15398
to 1865764 in 76.9873
Created 1578799252 elements in 8.18128
to 1865802 in 98.8022
Created 1578799254 elements in 8.8017
to 1865802 in 130.097
Dist 11 cnt 1865802 tot 1532805138 in 22.5837
Dist 12 cnt 244 tot 1532805382 in 2.62979
Dist 13 cnt 3223 tot 1532808605 in 0.00437903
Dist 14 cnt 42225 tot 1532850830 in 0.002949
Dist 15 cnt 542131 tot 1533392961 in 0.032984
Dist 16 cnt 6755688 tot 1540148649 in 0.481853
Dist 17 cnt 79994952 tot 1620143601 in 6.86368
Dist 18 cnt 840537691 tot 2460681292 in 92.5681
Created 1942778862 elements in 10.7022
to 1147085709 in 107.814
Created 1942778859 elements in 4.00402
to 1569478748 in 98.4076
Created 1942778858 elements in 2.03172
to 1753685605 in 101.867
Created 1942778863 elements in 1.0436
to 1846906011 in 111.509
! out of memory

real    42m57.873s
user    264m23.230s
sys     1m26.984s

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

@cs0x7f It didn't occur to me to google the numbers I'm getting. I should start doing that from now on. There wass only one place I found the information for 2x2x3 and it was posted by Bruce N, someone I used to know!

However, my next search is 2x2x3+EO, and those values are not found by Google.

@DougCube
Copy link
Author

@rokicki

(Changed extension since it won't allow TWS files.)
2x2x3_DL.txt

@DougCube
Copy link
Author

Not necessarily a bug, it could still be a hardware problem on my end... which would be embarassing for me. It is not even an overclocked system.

I asked this question earlier: Does running normal searches to solve scrambles with --maxdepth N where N is the god's number somehow improve performance or does it not matter (due to how BFS works)? The main purpose of my -g runs are to set max depth values.

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

I'm running God's Number search on FTO. I googled some values and cannot find anything.
It crashed from running out of memory and due to the bug under discussion, I don't know how much I can even trust the results.

Should I have run this one without -F?

# This is twsearch v0.6.6-143-gd3621b5 (C) 2022 Tomas Rokicki.
# ./twsearch -g -F -t 23 -M 65536 --moves U,R,L,F,Uw,Rw,Lw,Fw ../twsearch/fto/fto_doug.tws
Created new moves U' R' L' F' Uw' Rw' Lw' Fw' Us' Rs' Ls' Fs'
State size is about 3.14081 x 10^22 log2 74.7336
Requiring 104 bits 16 bytes per entry; 20 from identity.
Found 9 canonical move states.
Calculated canonical states in 0.000156164
Using sorting bfs and arrays.
Dist 0 cnt 1 tot 1 in 3.00407e-05
Dist 1 cnt 16 tot 17 in 0.000580788
Dist 2 cnt 208 tot 225 in 0.000740051
Dist 3 cnt 2688 tot 2913 in 0.00116014
Dist 4 cnt 34752 tot 37665 in 0.00282788
Dist 5 cnt 448336 tot 486001 in 0.0180371
Dist 6 cnt 5772360 tot 6258361 in 0.191999
Dist 7 cnt 74200286 tot 80458647 in 2.49132
Dist 8 cnt 952855390 tot 1033314037 in 36.5187
Created 3267911600 elements in 20.7157
to 2755004926 in 88.2917
Created 3267911598 elements in 2.58311
to 3180184546 in 87.2667
! out of memory

real    3m58.196s
user    38m6.906s
sys     0m24.033s

@DougCube
Copy link
Author

@rokicki If I do not give a -t N, what does it default to doing?

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

DougCube commented Feb 25, 2025

Rerunning the 2x2x3 case with -t 1 fixed it (at least up to Dist 10).

# This is twsearch v0.6.6-143-gd3621b5 (C) 2022 Tomas Rokicki.
# ./twsearch -g -F -t 1 -M 65536 def_files/2x2x3_DL.tws
Created new moves U2 U' D2 D' R2 R' L2 L' F2 F' B2 B'
State size is about 6.89703 x 10^20 log2 69.2245
Requiring 161 bits 24 bytes per entry; 32 from identity.
Found 7 canonical move states.
Calculated canonical states in 0.000284195
Using sorting bfs and arrays.
Dist 0 cnt 1 tot 1 in 8.58307e-05
Dist 1 cnt 12 tot 13 in 3.40939e-05
Dist 2 cnt 141 tot 154 in 6.00815e-05
Dist 3 cnt 1746 tot 1900 in 0.000498772
Dist 4 cnt 20935 tot 22835 in 0.00626612
Dist 5 cnt 243092 tot 265927 in 0.050251
Dist 6 cnt 2698935 tot 2964862 in 0.623706
Dist 7 cnt 27258179 tot 30223041 in 7.66635
Dist 8 cnt 216204042 tot 246427083 in 84.4156
Created 2619849308 elements in 130.896
to 694876506 in 339.87
Dist 9 cnt 830686751 tot 1077113834 in 300.168
Created 1816420736 elements in 85.6516
to 233650324 in 237.069
Created 1816420736 elements in 72.8703
to 332360585 in 235.454
Created 1816420736 elements in 69.3403
to 387056537 in 228.945
Created 1816420736 elements in 65.6055
to 414692316 in 229.096
Created 1816420736 elements in 65.3803
to 432632490 in 229.365
Created 1816420736 elements in 64.6381
to 441917064 in 229.818
Created 1816420736 elements in 63.4875
to 448573939 in 228.338
Created 1816420736 elements in 63.0933
to 451076103 in 228.372
Created 1816420736 elements in 62.3082
to 452503716 in 228.733
Created 1816420736 elements in 64.1557
to 453593932 in 226.665
Dist 10 cnt 453825501 tot 1530939335 in 114.428
Created 1578799277 elements in 72.8051
to 1765369 in 205.557
Created 1578799277 elements in 72.6772
to 1864328 in 204.454
Created 1578799277 elements in 71.914
to 1865764 in 203.201
Created 1578799277 elements in 72.5441
to 1865784 in 208.222
Created 1578799277 elements in 72.2068
to 1865784 in 206.431
Dist 11 cnt 1865784 tot 1532805119 in 50.4451
Dist 12 cnt 1 tot 1532805120 in 6.01323
Dist 13 cnt 0 tot 1532805120 in 0.00168419
Showing 1 antipodes.
Scramble noname
   CORNER
   7 7 1 2 7 7 7 7 7 7 3 7 7 6 5 7 7 4 7 7 7 7 7 7
   EDGE
   4 11 6 8 11 11 11 11 11 11 3 10 11 5 2 7 11 9 1 11 11 11 11 11
End
Twsearch finished.

real    90m3.059s
user    89m48.961s
sys     0m13.835s

EDIT: Added remaining output for sake of completeness now that it finished running.

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@rokicki
Copy link
Collaborator

rokicki commented Feb 25, 2025 via email

@DougCube
Copy link
Author

That is interesting. I don't really know about using symmetry or why it's a good idea to add rotations in definition files yet. I ran the node command given and was able to generate that definition file myself. (I still had to install npm after installing node so the cubing.js README.md is wrong.)

This definition file uses much different notation than my preferred.

Comparing it to the one I created manually, this new one doesn't separate the two orbits of triangles pieces into different piece sets like I did, and I wonder how doing so would impact performance.

I've attached my tws file for reference. I defined the middle slice moves, but I always run with --moves U,R,L,F,Uw,Rw,Lw,Fw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants