Queues Flashcards

1
Q

What is a queue?

A

A first in first out (FIFO) data structure where the first item added/pushed is the first item to be removed/popped off

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

What is a queue overflow? ⚠️

A

A queue overflow is an attempt to enqueue and item onto a full queue

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

What is a queue underflow?⚠️

A

A queue underflow is an attempt to dequeue an item onto a empty queue

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

What are some uses of queues?

1.
2.
3.

A
  1. Process scheduling
  2. Transferring between processors
  3. Performing breadth first search on graphs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly