Chapter 34 - Queues Flashcards

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

What type of data structure is a Queue?

A

A queue is a First In First Out (FIFO) data structure

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

How does the FIFO structure work?

A

New elements get added on the end of the end of the queue (enqueue) and elements can be retrieved from the front of the queue (deenqueue).

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

Priority Queue

A

Where new items can instantly jump to the front of the queue

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