The final exam has been graded. There is a fair amount of information in this post, so please read through carefully.
 Your total score on the final exam has been uploaded to UBLearns.
 You can pick up your final from Diane in the CSE main office. You will need to show her your UB card to pick up the final. (In case you do not know where Diane sits, you can get to her desk as follows: if you are going towards Jaynee’s office in the long corridor from the elevators, then Jaynee office is the last door on the left. Diane’s is the door on the left just before Jaynee’s.) You can pick up your final during normal office hours starting tomorrow, Wednesday, Dec 19.
 I will be in my office from 25pm on Thursday, Dec 20 in case you have any questions on the final grading. (However, please go through the rubric below first.) In case you cannot make it during that time, you can email me a scanned copy of the part of the final that you have a question with. Please note: Regrading requests will only be entertained if there is some obvious mistake (e.g. a totaling mistake)– please do not quarrel about the rubric: it was the same for everyone.
 My plan is to get the rest of the grading (mini project, piazza, overall letter grade) done by tomorrow, Wed, Dec 19. I’ll put up blog post(s) once I have done so.
 The graded finals have solution sketches written on them in case you’re interested in the solutions.
The rest of the post is specific to grading.
The stats are as follows:
 Mean: 48.1
 Median: 53
Below is the grading rubric that was used for the different questions. As usual these are general guidelines. Things might change slightly for specific cases.
 2 for a correct answer and 0 for wrong answer.
 0/6 if the T/F answer is incorrect (irrespective of the justification). As mentioned in the exam: 2 points were for the T/F answer and 4 points were for justification. As a general rule: a justification that was incorrect/had no real information would get 0/4; a halfway correct justification would get 2/4. Below are more details for the specific parts:
 Mention GS algorithm runs in or or it’s linear are fine. Fail to mention or fail to distinguish and will lead a deduction of 4 points.
 Mention linear scan or scan will get full points. Listing the procedure but not mention what kind of scan will get a deduction of 1 point.
 You should clearly state how long it takes to shift and do summation, otherwise you will get a deduction of 2 points each for not correctly stating shift and summation time.
 All 4 points deducted if answers says binary search without specifying how one gets an upper bound on .
 This question a easy if you know what is. If you state the meaning of it, you will get full points. If you state nothing about but something else that is not wrong, you will get a deduction of 3 points. In other cases, your points depend on how much your statement related to the meaning of .

 15/25 is for algorithm.
 7/25 is for correctness.
 3/25 is for running time.
There are two common approaches to solve Q3.The first one is greedy strategy by picking golds as large as possible.
The other one is that by expressing into a binary representation. Then, pick the corresponding gold weights in the binary representation of . For example, , binary representation is . So, you should include gold weights into your bag. For this approach, you should deal with two cases: and . For , you must include all gold bars. If you don’t deal with this case specifically, you will lose 5 points. For correctness of greedy strategy, you should use the property below
to prove your greedy strategy works. If you don’t do this, you will lose 3~4 points.  For both parts, 8/10 for the algorithm and 1 each for correctness and query bound
 2 if you do not take care of pairs that never boxed
 1 if you do not take care of pairs that never boxed and 1 if you do not verify at the end whether your candidate champion is indeed the undisputed champion.
 This one had three parts: (If you just got part (c) correct then the points for part (a) and (b) were moved to part (c)).
 binary: 0 or 1 depending on whether the algorithm was correct or not.
 7/9 for the algorithm and 1 each for correctness and run time. 7 if your algorithm runs in time and 4 if your algorithm runs in time .
 4 points for the algorithm and 0.5 each for correctness and run time. 1 if you do not sort before applying part (b).
Leave a Reply