That was a straightforward example that required only a few steps.

Algorithms go through many more examples of data and try thousands of ways to achieve the desired output.