5.36 |
Write an abstract class ArrayBasedStructure which is extended by ArrayStack, ArrayQueue, and ArrayList. How much of the implementation can be moved up into this abstract superclass? Discuss whether this makes the overall code more or less clear. |
5.37 |
Write an array-based implementation of the Deque interface from Problem 4.18. |
Part I: Object-Oriented Programming
Encapsulation
Polymorphism
Inheritance
Part II: Linear Structures
Stacks and Queues
Array-Based Structures
Linked Structures
Part III: Algorithms
Analysis of Algorithms
Searching and Sorting
Recursion
Part IV: Trees and Sets
Trees
Sets
Part V: Advanced Topics
Advanced Linear Structures
Strings
Advanced Trees
Graphs
Memory Management
Out to the Disk
Part VI: Appendices
A. Review of Java
B. Unified Modeling Language
C. Summation Formulae
D. Further Reading
Index