Since the algorithm fails often, we could run simulations in parallel and take the first one that succeeds.
Another option to avoid failure might be to run until failure, then progressively backtrack until a solution can be found (if it is possible).
Since the algorithm fails often, we could run simulations in parallel and take the first one that succeeds. Another option to avoid failure might be to run until failure, then progressively backtrack until a solution can be found (if it is possible).