(Latest Revision: 04/14/2002 )
HW_3_ResultsByCode
This file shows grades on homework #3, along with indications of
the problems and point deductions.
Find your code number below.
Look at the the codes, scores, and comments below your code
number.
See me if you have any questions, if you find an error, or if you
want further explanation of your grade.
0303:
- Score: 92/100
- I had to correct three minor syntax errors to get the
program to compile. (-3)
- I had to remove the first "y" from each input file to get
the program to give correct output. (-3)
- After that, the program worked fine in tests.
- Bad programming practice: function "quickMedian" uses a
gratuitous "goto" (break). It also appears to access an
out-of-bounds location in an array -- something which could
cause the program to crash under certain circumstances. (-2)
- I read the code. it appears not to have any other problems
with how it functions. It appears to implement the
algorithm correctly.
0971:
- Score: 97/100
- I tried and failed to get output from the program. You sent
me e-mail explaining the input format your program requires.
(-3)
- The program then worked fine in tests.
- I read the code and it appears to implement the algorithm
correctly.
2238:
- Score: 80/100
- The program "sort of" works but gets a segmentation fault on
one of my tests files and also hangs up on one of my tests. (-10)
- adHocMed seems to do the wrong thing, and pseudoMed calls
adHocMed in the situation where it should be making a
recursive call to selection2 to calculate the median of the
medians. (-10)
2336:
- Score: 97/100
- program failed to compile at first. I changed a comma to a
semicolon and then it compiled. (-3)
- After that, the program worked fine in tests.
- I read the code and it appears to implement the algorithm
correctly.
- You included a nice feature -- you performed some timing
tests.
2833:
- Score: 100/100
- program worked fine in tests.
- I read the code and it appears to implement the algorithm
correctly.
- You included a nice feature -- your program deallocates the
array of medians after calculating the median of the
medians.
3168:
- Score: 50/100
- The program does not compile.
- There is selection2 function pseudo-code -- same as in my
notes-- but there is no pseudoMed function.
- The goal of the exercise is that you show you understand the
algorithm well enough to make it work, so this effort falls
short of the main goal.
3197:
- Score: 77/100
- The program was turned in two days late. (-10)
- I had to remove the first "y" from each input file to get
the program to give correct output. (-3)
- After that, the program worked fine in tests.
- pseudoMed calls adHocMed in the situation where it should be
making a recursive call to selection2 to calculate the
median of the medians. (-10)
9382:
- Score: 92/100
- The program was turned in a day late. (-5)
- I had to remove the first "y" from each input file to get
the program to give correct output. (-3)
- After that, the program worked fine in tests.
- I read the code and it appears to implement the algorithm
correctly.
- You included a nice feature -- your program deallocates the
array of medians after calculating the median of the
medians.