Tuesday, May 9

Final exam: Tuesday, May 16, 6:30-9:30, M-2-423

Bring books, pa’s, hw’s, labs, posted solutions

The final will cover the textbook material for the whole term, all hws and labs, and pa4, pa5, and pa6.  So study the posted solutions for pa4, pa5, and pa6, and bring copies to the final.

 

Textbook Coverage

Chap 1-3—background

Chap 4:

 

Chap 5—Big Oh only, but important!  sequential vs. binary search also important, but skip interpolation search.

 

Chap 6—Collections, the most important JDK classes we studied.

 

Chap. 7  Recursion

 

Chap. 11 –study was related to pa3, so don’t worry about it for final

 

Chap 15—Inner Classes and ArrayList

 

Chap. 16—Stacks and Queues, their implementation by arrays, linked lists

 

Chap 17 LinkedLists

 

Chap 18—Trees: binary and general trees, as we used for XML

 

Chap 19—BSTs

 

Chap 8  Sorting

 

pas covered on final

Note that you can improve a low score on one pa by doing OK on the final’s problem on that pa.

 

pa04 --recursion

Expand: recursive file inclusion

Combo: #combinations by recursion

ComboSet: can ignore

 

pa05—Trees and XML, just elements, attributes and text nodes

don’t worry about attributes for the final

 

pa06—OrderedList API with BSTWRank implementation

Think of model for OrderedList:  sequence of elements in order, with numeric positions as well.  you can insert a new value and it goes into the right spot in the ordering.  You can look up elements by key or position.

Example of implementation of non-JDK Collection class, using help from AbstractCollection, i.e., JDK infrastructure

Example of adapter class:  a BSTOrderedList HAS-A BSTWRank, implements add by calling insert, etc.