Algorithms and OOD (CSC 207 2014F) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [Learning Outcomes] [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Student-Curated Resources] [Java 8 API] [Java 8 Tutorials] [Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2014S (Rebelsky)] [CSC 207 2014F (Walker)] [CSC 207 2011S (Weinman)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)] [Issue Tracker (Textbook)]
Held: Tuesday, 11 November 2014
Back to Outline 38 - Implementing Queues with Arrays. On to Outline 40 - Designing a Dictionary API.
Summary
We consider priority queues, one of the important linear structures.
Related Pages
Overview
Administrivia
What interesting (or not so interesting) design ideas did you get
from ReportingLinearStructure.java?
Here are some of the things I see as important ideas:
ReportingLinearStructure.java shows another mechanism for adding
functionality, one that works for an arbitrary class that implements
an interface.Here's my really bad ASCII art diagram.
Wrapper
+-------------------+
Client ---> fun: wrapped.fun |
| |
| wrapped |
| +---------+ |
| | fun | |
| +---------+ |
+-------------------+
Uses
put twice each time it is called. (I have no
idea why you would want such behavior.)Back to our favorite repository. (And we're not done with it yet!)