[WPI] [cs2223] [cs2223 text] [News] [Syllabus] [Problems] [Problem 1]
A program which performs n-digit doubling is contained in the CCC directory
/cs/cs2223/problems/problem1/problem1_1
A README
file explains how the program works and it contains
a listing of the output, which shows that the number of multiplies is linear
in n.
The best case of the insertion sort is an inversely-sorted array (large numbers come first) - the sorting is linear in n. The worst case is a sorted array (smallest numbers come first) - it is approxmiatelyof order n2/2. The average case, is s approxmiatelyof order n2/4. A program which performs insertion sorting is contained in the CCC directory
/cs/cs2223/problems/problem1/problem1_2
A README
file contains the detailed calculation. It also
explains how the program works and contains a listing of the output, which
verifies the calculated results..
To put the nine functions in their proper order, eight binary comparisions - or pairs of binary comparisions - have to be made. They can be done in any order. Here they are in the order shown in the problem set.
Combining everything,
The grading criteria are available. These are subject to interpretation by the grader. As we stated in class, our primary goal in the grading of these exams is consistency. If your intrepretation differs from the grader's and the grader has applied her/his criteria uniformly, then the grader's interpretation will prevail.
[cs2223 text] [News] [Syllabus] [Problems] [Problem 1] |