Sp09m2Crit - CS307 Spring 2009 Midterm 2 Solution and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS307 Spring 2009 Midterm 2 Solution and Grading Criteria. Grading acronyms ABA - Answer by Accident AIOBE - Array Index out of Bounds Exception may occur BOD - Benefit of the Doubt. Not certain code works, but, can't prove otherwise ECF - Error carried forward. Gacky or Gack - Code very hard to understand even though it works or solution is not elegant. (Generally no points off for this.) GCE - Gross Conceptual Error. Did not answer the question asked or showed fundamental misunderstanding NAP - No answer provided. No answer given on test NN - Not necessary. Code is unneeded. Generally no points off NPE - Null Pointer Exception may occur OBOE - Off by one error. Calculation is off by one. 1. As written or -2. No partial credit unless stated. On Big O, missing O() is okay. A. O(N^2) B. O(N) C. O(sqrtN) or O(N^1/2) D. O(N) E. 80 seconds F. 9 seconds G. 9 H. UTCSSSS I. 23 J. O(N) K. O(1) L. When the list is already sorted in the proper order. (or words to that effect) partial credit possible. M. 12 (11 - 13 okay) N. accessing all of the elements in order of position (or words to that effect) partial credit possible. O. KIGGOM EXTRA CREDIT: P. too long (1 point extra credit) 2. I thought this was the most difficult problem on the test due to having to deal with the abstraction of the FrequencyList and the pair objects, finding duplicates, knowing how to use the .equals method, and then shifting items forward in the list and updating size. There were MANY different approaches to the problem: one of the great things about programming. It was okay to create a new array as temporary storage. Common problems:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Sp09m2Crit - CS307 Spring 2009 Midterm 2 Solution and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online