Sp08FinalCrit - CS307 Spring 2008 Final Solution and Grading Criteria Grading acronyms ABA Answer by Accident AIOBE Array Index out of Bounds

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

View Full Document Right Arrow Icon
CS307 Spring 2008 Final 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. NPE - Null Pointer Exception may occur OBOE - Off by one error. Calculation is off by one. 1. 1.5 points per question. No partial credit. On Big O question if answer is O(N) N is acceptable. No constants or extra terms on Big O. For example if answer is O(N) then O(4N) is counter wrong as is O(N + 10). A. 7 / 0 / \ -5 5 / 3 B. CAKAJSEM C. KJASACME D. JSAKAMEC E. No F. 4 G. O(logN) H. The declared type of the get method for the raw ArrayList is Object. Object does not have a charAt method. I. There is an infinite loop if the target is found due to the short circuiting of the or (||). J. THAAHT K. O(N) L. O(logN) M. O(N) N. O(N) O. O(N^2) P. O(N^2) Q. 16 seconds R. Sort the data. Work if sort first = 1*10^6 * log base 2 1*10^6 + 10,000*log base 2 1*10^6 = 1*10^6 * 20 + 10,000 * 20 = 20,000,000 + 200,000 = 20,200,000 Work without sorting = 10,0000 * 500,0000 = 1 * 10^4 * 5 * 10^5 = 5 * 10^9
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.

This note was uploaded on 11/30/2010 for the course CS 307 taught by Professor Scott during the Spring '08 term at University of Texas at Austin.

Page1 / 5

Sp08FinalCrit - CS307 Spring 2008 Final Solution and Grading Criteria Grading acronyms ABA Answer by Accident AIOBE Array Index out of Bounds

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