Lesson 5: Queues Flashcards

1
Q

ordered collection of items from which items may be deleted at one end (front) and into which items may be inserted at the other end (rear)

A

Queue

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

Is Queue LIFO (last-in, first-out) or FIFO (first-in, first-out)?

A

FIFO

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

Queue Operation (clue: EDFR)

A

Enqueue
Dequeue
Queue FRONT
Queue REAR

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

[Queue Operation] inserts an element at the rear of the queue

A

Enqueue

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

[Queue Operation] If there’s not enough room for another element in the queue, the queue is in an __________ state.

A

Overflow

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

[Queue Operation] deletes an element at the front of the queue

A

Dequeue

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

[Queue Operation] If there are no data in the queue when a dequeue is attempted, the queue is in an __________ state

A

Underflow

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

[Queue Operation] examines the element at the front of the queue

A

Queue front

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

[Queue Operation] If there are no data in the queue, then the queue is in an __________ state.

A

Underflow

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

[Queue Operation] examines the element at the rear of the queue

A

Queue rear

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

Implementations of Queues (clue: CIDREFCD)

A

Create queue
Insert data into queue
Delete data from queue
Retrieve data at front of queue
Queue EMPTY
Full queue
Queue COUNT
Destroy queue

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