This is incomputable. Both because of the enormous number of possible algorithms and the Halting problem.