twsearch icon indicating copy to clipboard operation
twsearch copied to clipboard

Request Support for Multiple Solved States

Open DougCube opened this issue 1 year ago • 5 comments

This is probably a huge ask, but for my use case, I would very much like a mode of operation where for the "same puzzle" (same set of pieces and same moves), I can define multiple "solved states" with different subsets of what are considered identical pieces.

Let me elaborate. Currently, what I'm doing is writting multiple definition files and executing multiple runs with the same ScrambleAlg then finding the best solution among them with post-processing of the results.

I'll give a concrete example. For 3x3, I can define 6 solved states for color-neutral Cross (solves all 4 edges around a center piece), one on each of the 6 faces. I have to run the program 6 times, gather and parse the solutions, then output the shortest solutions among them. I do have a way to automate this now, but the runtimes are rather long. When I profile the performance of it, there is tremendous overhead in I/O operations. If this mode of operation was to be natively supported in the tool, then I can reduce the multiple program calls to just one and greatly improve the performance -- presumably there are optimizations in the tool to leverage the puzzle being the same.

In this toy example, it's only 6 calls, but in practice, I am running usages with hundreds or even thousands of calls.

DougCube avatar Dec 11 '24 19:12 DougCube