Contents of email submission for Recitation 2:
Your last name, Your first name; CS 3343; Recitation 2.
3. Answer to the question 3.
4. Code for 2 functions, non-recursive and recursive,
each calculating partial sums of the harmonic function.
You should show two separate runs, each including the
value calculated for harmonic(10).
5. Include a printout of the six values of
harmonic(n) - ln(n) for each of the two functions
and for each of the three values
n = 1000, 1000000, 1000000000.
[Or a printout of what happened;
in one of the calculations of a billion terms of the series,
my computer at home started smoking and blew up.]
6. Include all your souce code for the selection sort,
but especially code for the three new functions
maxind, selectionsort, exchange.
Then give the results of sorting an array of 15 random numbers.
(Remember, just a single .txt file, with the
parts concatenated together.)
|