Queues Flashcards
1
Q
What is a queue?
A
A data structure in which items are stored in the order that they should be accessed
2
Q
What type of data structure is a queue?
A
First in First Out (FIFO)
3
Q
What uses does a queue have?
A
A buffer
A card game
Performing a breadth first search
4
Q
Why is the method IsFull necessary?
A
Queues are static data types (have fixed length) and so the enqueue doesn’t add an item to a full queue