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

Linked List Implementation

Program gif defines a linked-list implementation of a deque. The DequeAsLinkedList class extends the QueueAsLinkedList class introduced in Program gif and implements the Deque interface defined in Program gif. The QueueAsLinkedList implementation provides almost all of the required functionality. Only five of the six operations defined in the Deque interface need to be implemented.

   program7956
Program: DequeAsLinkedList class ``Head'' operations.




next up previous contents index

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