Eventually, one of them is successful in not only solving the problem but doing so in an optimal way. That will be the fittest algorithm.

It's through techniques like these that AGI will eventually develop into ASI.