Queues Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a queue?

A

A data structure in which items are stored in the order that they should be accessed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What type of data structure is a queue?

A

First in First Out (FIFO)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What uses does a queue have?

A

A buffer
A card game
Performing a breadth first search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly