Spectral Approach to Modern Algorithm Design