
Review: Final Exam — CS 261: Data Structures
Midterm date: Monday, June 10, 6:00 PM (in class).
Covering: Chapters 1 through 17 (except Chap. 5) and Chap. 20 in the book and the corresponding lecture material
with a major focus on the material covered since Midterm # 2.
It will be closed book and closed notes—except three pages (both sides) of handwritten notes.
Sit with at least one empty seats between you and the next person.
You may bring a calculator, though you probably won’t need it.
Possible topics to expect:
Chapter 1: Management of Complexity
• Abstraction, Information Hiding, and Layering — Definitions and how they are related.
• Creating structure through Layering — Definitions, distinctions, examples
Specialization
Division into Parts
Multiple Views
• Division into Parts
Encapsulation and Interchangeability — Definitions and how they are related.
Interface and Implementation — Definitions, distinctions, relationship to software design.
Service view — Examples, Patterns, relationship to software engineering (ADTs).
Repetition
- Components
- Behavior — Mathematical induction, Recursion, Iteration
Composition
- Similarities and differences with Division into Parts.
- Difference (in terms of relationship between layers) with Specialization.
• Into which subtopic of Layering does the concept of the Java “interface” fit best?
Chapter 2: Abstract Data Types
• What is a Type
Values, Operations, and Properties
Primitive types and classes
Interfaces and Polymorphism
• Abstract Data Type (ADT) — Definition, Primary concern, Language construct (in Java)
• Point example.
• Interfaces and Classes (in Java) — Distinctions and relationship.
• Fundamental ADTs — Methods defined, relationship to each other, possible uses.
Collection — What does Serializable provide?
Bag — What does it add to Collection?
Set — Difference with a Bag.
Sorted — Describes a property of the type rather than (additional) behavior.
Comparator, Comparable — Distinctions and relationship
- DefaultComparator
Stack, Queue, Deque
FindMin, FindNth
Indexed
SortAlgorithm
Map