Data Structures and Algorithms with Object-Oriented Design Patterns in Python
next up previous index

Linked-List Implementation

This section presents a queue implementation which makes use of the singly-linked list data structure, LinkedList, that is defined in Chapter gif. Program gif introduces the QueueAsLinkedList class. The QueueAsLinkedList extends the abstract Queue class.

   program6666
Program: QueueAsLinkedList class __init__ and purge methods.




next up previous index

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