Quantum Algorithms, Symmetry, And Fourier Analysis