Algebraic methods in spectroscopy.