THE DESIGN OF DFT ALGORITHMS