After months of trying, finally I could write a program that got all the algorithms may lead to a particular state.
For example, to solve this case algorithms are calculated as follows.
algorithms are here
these are about 10000 algorithms!!!
All the possible algorithms are these and there is...