The exercises will help
you to master the basic concepts for the given week. Each assignment consists of an
etude and the main part.
Work out the etudes on your own before you meet with
your partner. When you meet, compare your solutions and discuss any problems you encountered. If you are
unable to complete the etudes by Tuesday, ask questions in class, or see someone during their office hours.
Etudes are designed to give you a practice with the basic skills you need to understand for each week.
Keep your solutions in your portfolio, but do not hand them in. We will check them
when we check your portfolio.
Work on the main part of the assignment with your partner. Hand in
one joint program.
DUE DATES:
Homework assignments must be submitted electronically by 9:40 am on Friday 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:
Omission of this information leads to immediate loss of all credit for the homework.
Week | Assignments | Due Date |
---|
|
Review HtDP: data definitions and class diagrams to represent classes; containment, union.
| 9/15 |
|
Designing classes for self-referential and mutually referential data, Methods for simple classes including composition and conditional; Methods for containment.
| 9/22 |
|
Methods for self-referential and mutually referential data; Using libraries: The World teachpack.
| 9/29 |
|
Abstracting classes: lifting fields, lifting methods, creating a super class, a union.
| 10/6 |
|
Deriving classes; Circular data.
| 10/13 |
|
Eclipse IDE; Encapsulation.
| 10/20 |
|
Stateful classes, equality, testing the effects; imperative World.
| 10/27 |
|
Abstracting over data types and behavior: genericity and function objects.
| 11/3 |
|
Designing programs with iterators: recursion vs. iteration; Java loops.
| 11/10 |
|
Algorithms that used index-based data access; Stress tests: Sorting out Sorting.
| 11/17 |
|
Maps, hash tables, trees; JUnit.
| 11/30 |
|
Graph traversals: DFS, BFS, shortest path, minimum spanning tree -- optimizing the performance, designing reusable code;
| 12/7 |
|
Portfolio Review
| END |