Algorithms and OOD (CSC 207 2014S) : Assignments
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Partners] [Readings]
Reference: [Java 7 API] [Java Code Conventions] [GNU Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2013F (Rebelsky)] [CSC 207 2013S (Walker)] [CSC 207 2011S (Weinman)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] [Issue Tracker (Course)] [Issue Tracker (Textbook)]
These are my quick notes on exam 2. They are not intended to be comprehensive; it's mostly a collection of things I noted that you might also want to note. I may be making my solutions available in the near future.
Please be more careful about citations! It's not a minor issue. For your sanity, incorrect with citations is better than correct with no citations.
Once again, I was a bit more generous on bad formatting than I should have been. People who regularly violated formatting standards lost a point (rather than having their exams rejected). People who only violated formatting standards on one problem (a bid odd, in my pespective) usually lost 1/2 point. People who ocasionally violated formatting standards may have lost partial credit.
There were also a number of other programming problems: Uncommented fields and methods, fields in the wrong place (e.g., in the methods section), incorrect capitalization, etc. Again, I may not be so sympathetic in the future.
A surprising number of you used private as a modifier for fields and
methods. Since I almost never use private, I'm wondering where you
developed the habit. (I generally recommend against private; it's
often useful for subclasses or friendly classes to be able to access
your fields and methods.)
I hope to never again see anything like the following code
if (pred.test(param))
return true;
else
return false;
I also hope to never see anyting like the following code
if (pred.test(param) == true)
...;
There were fewer explicit loop invariants than I would have liked, and some of the ones that were there were careless enough that they were unlikely to be helpful.
Many of you need to start the next examination sooner.
If your code passed the tests, but wasn't O(nlogn), you were unlikely to receive credit. (See last Friday's CS table.)
People who changed the meaning of the parameters in the helper but did not change the documentation also likely lost credit.
This problem had more private fields (which were often uncommented,
badly placed, and inconsistently initialized) than any other.
A few of you chose to implement methods that were already implemented
(e.g., add and remove). The goal was really to find a way to wrap
those methods appropriately. (In this case, you did need to access the
underlying data structure for the next and hasNext methods.)
A few of you implemented this by passing integer indices to the
partition method and then advancing the iterator to those
indices. But if you do that for each recursive call, your procedure
is no longer O(n). The partition method needs to take the iterators
as parameters.
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Partners] [Readings]
Reference: [Java 7 API] [Java Code Conventions] [GNU Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2013F (Rebelsky)] [CSC 207 2013S (Walker)] [CSC 207 2011S (Weinman)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] [Issue Tracker (Course)] [Issue Tracker (Textbook)]
Copyright (c) 2013-14 Samuel A. Rebelsky.

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this
license, visit http://creativecommons.org/licenses/by/3.0/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.