Data Structures and Algorithms with Object-Oriented Design Patterns in C#
next up previous contents index

Array Implementation

Program gif introduces an array implementation of a deque. The DequeAsArray class extends the QueueAsArray class introduced in Program gif and implements the Deque interface defined in Program gif. The QueueAsArray class provides almost all the required functionality. Only five of the six operations introduced in the Deque interface need to be implemented.




next up previous contents index

Bruno Copyright © 2001 by Bruno R. Preiss, P.Eng. All rights reserved.