Queue Flashcards
Graph explains FIFO & LIFO
Picture of operation of EnQueue and DeQueue implemented with array
Pseudocode of function Enqueue implemented with array
Pseudocode of function Dequeue implemented with array
Pseudocode of function front implemented with array
Queue : Struct Queue - Array
Queue : Create_new_queue - Array
1.malloc
2.capacity(unsigned)
3.front,size
4.rear
5.array
6.return
Queue : isfull && isempty - Array
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
Queue : dequeue - Array
Hints:
1.isempty
2.item
3.front
4.size
5.return item
Queue : front - Array
Queue : rear - Array
Queue: define structure - Link List
Queue: newnode - Link List
Queue: create_queue - Link List