On the algebraic theory of scattering