A computer for generating an optimized waveform from a given frequency sweep, where said computer comprises:
- input means to determine a number of frequency stacks to be generated from said given frequency sweep;
- means for generating said number of frequency stacks from said given frequency sweep;
- means for combining the frequency stacks in a plurality of ways for the purpose of generating an optimized waveform from among the combinations of plurality of ways for combining the frequency stacks;
- means for selecting an optimized waveform based on a predetermined criteria, where said optimized waveform is of a shorter duration than said given frequency sweep;
- and
- means for outputting said optimized waveform.