Close
Register
Close Window

Show Source |    | About   «  5.12. Queues   ::   Contents   ::   5.14. Linear Structure Summary Exercises  »

5.13. Linked Queues

5.13.1. Linked Queues

The linked queue implementation is a straightforward adaptation of the linked list. Here is the linked queue class declaration.


Settings

Proficient Saving... Error Saving
Server Error
Resubmit


Settings

Proficient Saving... Error Saving
Server Error
Resubmit

5.13.2. Linked Dequeue

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

5.13.3. Comparison of Array-Based and Linked Queues

All member functions for both the array-based and linked queue implementations require constant time. The space comparison issues are the same as for the equivalent stack implementations. Unlike the array-based stack implementation, there is no convenient way to store two queues in the same array, unless items are always transferred directly from one queue to the other.

5.13.3.1. Stack and Queue Summary Questions

   «  5.12. Queues   ::   Contents   ::   5.14. Linear Structure Summary Exercises  »

nsf
Close Window