Evolution. Some details are taught in schools, some more at the college level. By the way, there are non-deterministic algorithms, which out of chaos either create complex and information-rich data (e.g. programs for de novo design of peptides/proteins, based on Monte Carlo or genetic algorithms) or even self-program certain capabilities (e.g. artificial neural networks).
As I understand it, many evolutionist will say that evolution cannot, nor is within the scope of evolution, to explain the origin of the first DNA. So I would say evolution does not explain it.
Algorithms are intelligently designed and always, when looked at closely, infused with intelligence with an end in site, or at least a defined goal.