Frequency-Domain Algorithm