How do I optimize my C++ Rubik’s Cube Solver code?

23 hours ago 3
ARTICLE AD BOX

How do I optimize my C++ code?

In short: I reduced a SAT problem to a Rubik’s Cube, and then I solve that Rubik’s Cube using a solver written in C++. However, the overall environment runs in Google Colab using .ipynb notebooks.

My main question is: how can I further optimize the C++ Rubik’s Cube solver so it runs faster and doesn’t take too long?

The code is SO unbelievably long that I had to paste it into Pastebin because it has 39,130 characters.

https://pastebin.com/wVGVL1U1

Read Entire Article