Queue Flashcards

1
Q

Graph explains FIFO & LIFO

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

Picture of operation of EnQueue and DeQueue implemented with array

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

Pseudocode of function Enqueue implemented with array

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

Pseudocode of function Dequeue implemented with array

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

Pseudocode of function front implemented with array

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

Queue : Struct Queue - Array

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

Queue : Create_new_queue - Array

1.malloc
2.capacity(unsigned)
3.front,size
4.rear
5.array
6.return

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

Queue : isfull && isempty - Array

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

Queue : enqueue - Array

Hint: size= queue->capacity: Calculates the remainder of dividing the incremented rear pointer by the capacity of the queue. This ensures that if the rear pointer reaches the end of the array, it wraps around to the beginning, thus implementing a circular queue.

1.isfull
2.rear
3.item
4.size

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

Queue : dequeue - Array

Hints:
1.isempty
2.item
3.front
4.size
5.return item

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

Queue : front - Array

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

Queue : rear - Array

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

Queue: define structure - Link List

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

Queue: newnode - Link List

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

Queue: create_queue - Link List

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

Queue: enqueue - Link List

A
17
Q

Queue: dequeue - Link List

A
18
Q

Queue: printf front &&rear - Link List

A
19
Q

A detail you should know when you traversal queue from rear to head:

A