A Spectral Approach for the Design of Experiments: Design, Analysis and Algorithms