|
ADS
Algorithms and Data Structures
|
A QUEUE realized as a singly linked list with a pointer to the first cell, the front, and one to the last cell, the back (exercise 4.10 of the book). More...
Files | |
| file | ADS/queue/LinkedQueue.h |
| A QUEUE [see ADT.h] realized as a singly linked list with a pointer to the first cell, the front, and one to the last cell, the back (exercise 4.10 of the book): enqueue() appends a cell after the back and dequeue() removes the front, both in \( O( 1 ) \) time, and the queue has no bound on its size, unlike the circular vector of ArrayQueue. | |
Classes | |
| class | ADS::LinkedQueue< T > |
| a QUEUE realized as a singly linked list with a front and a back More... | |
A QUEUE realized as a singly linked list with a pointer to the first cell, the front, and one to the last cell, the back (exercise 4.10 of the book).
The definitions, the invariants and the costs of the area are in Theory of queues.