Home
Teaching
 
CS U213 Sp '06
General
Texts
Syllabus
Assignments
Communication
Blog
Labs
Ofc Hrs
Advice

Assignments

The exercises will help you to master the basic concepts for the given week. The links to the text and to additional resources, such as diagrams, or Java code are given below.

DUE DATES: Homework assignments must be submitted electronically by 8:00 pm on Monday unless otherwise specified.

Turn in each assignment with a Java comment on the top of the assignment that specifies the following pieces of information:

  • Assignment: (number)
  • Name:
  • ID: (last 4 digits only)
  • Name:
  • ID:
  • Instructor: (Proulx - 9:15, Proulx - 10:30, or Barzilay)
  • Head Lab TA
  • Lab time: (if partners in different labs, add extra info below!!)
Omission of this information leads to immediate loss of all credit for the homework.

WeekAssignmentsDue Date
1     

Review HtDP: data definitions and class diagrams to represent classes; containment.

1/17
2     

Designing classes of data: unions, self-reference, complex class hierarchies.

1/23
3     

Complex self-referential data; Methods for simple classes including composition and conditional; Methods for containment.

1/30
4     

Methods for unions, self-referential and mutually referential data.

2/6
5     

Abstracting classes: lifting fields, lifting methods, creating a super class, a union, deriving subclasses; Using libraries: The World teachpack.

2/13
6     

Eclipse IDE.

2/20
7     

Intergrity of data: constructors, privacy modifiers, exceptions; Cyclical data; ADT for a data 'container' with traversal.

2/27
8     

Mutating structures, Testing the effects; Abstracting over data types: genericity.

3/13
9     

Algorithms for generics; Function objects, iterators; In-situ algorithms; Stress tests.

3/20
10     

Converting structural recursion to iteration; Algorithms that use direct access; Graph traversal: path in an acyclic graph.

3/27
11     

Linear structures; Graph traversals: DFS, BFS, shortest path, minimum spanning tree (optimizing the performance); Overriding toString(), equality tests, JUnit.

4/3
12     

Project: MapQuest - part 1.

4/10
13     

Project: MapQuest - part 2.

4/18

last updated on Wed Jan 11 12:28:29 EST 2006generated with PLT Scheme