From analysis to algorithm
So far the physics has been diagnostic: it tells you which phase you are in. The remarkable turn is that the same machinery produces algorithms, and in many cases the best efficient algorithms known.
The logic connecting them is worth stating, because it explains why one set of tools does both jobs.
The quantity you want is the posterior distribution over the signal given the data. Computing it exactly requires summing over exponentially many configurations, which is infeasible.
Statistical physics faced the identical obstacle a century earlier. Computing the properties of a magnet requires summing over every configuration of its spins. The response was a family of mean-field methods: approximate the effect of all other variables on a given variable by an average, and solve the resulting self-consistent equations.
That approximation is a computation you can actually run. So the analysis of the problem and the algorithm for solving it come from the same source, which is why the theory predicts algorithmic thresholds rather than merely observing them.

