For The Comparison you should submit a graph (easily created via
Excel or the program of your choice) showing the running time in
milliseconds of both the naive and divide-and-conquer algorithms as a
function of the input size and the minimum, maximum and average value
of the running time of the divide-and-conquer algorithm over 100
randomly generated inputs of size 1000. (Just put a loop in main to
repeat the experiment 100 times. You'll get a different input each
time as long as you don't seed the random number generator in the
loop.) Write a sentence of two about how imprecise the graph is by
not averaging over many inputs for every size tested.
NOTE: In creating the graph, the
assignment tells you to have n go from 25 to 6525 in intervals of
250. These values were selected so that if students run this on
a CEC shared machine (e.g. Hilton, Clarion, ...) that it wouldn't use
too many cycles. If you are running this on your own machine and
would like to go to a value bigger than 6525 feel free to modify
this range. For example you could go from 25 to 26025 in intervals
of 1000. If you want to go even higher, go ahead.