Skip to main content

Section 7.2 Array-Based vs Linked Queues

Both the array-based and linked implementations of queues offer constant-time member functions. The considerations regarding space usage are similar to their respective stack implementations. However, unlike the array-based stack implementation, it is not straightforward to store two queues in the same array unless items are consistently transferred directly from one queue to the other.
The linked queue implementation is a straightforward adaptation of the linked list. In terms of time efficiency, both implementations provide constant-time operations, ensuring efficient queue functionality. However, the choice between array-based and linked implementations may depend on specific space requirements and the need for dynamic resizing.
Here is a link to the OpenDSA textbook that has more practice on linked queues: Read Me 1 
You have attempted of activities on this page.
opendsa-server.cs.vt.edu/OpenDSA/Books/Everything/html/QueueLinked.html