QUEUE
- A queue is a linear data structure that stores items in First In First Out (FIFO) order.
- It is also known as a First Come, First Serve (FCFS).
- It is opened at both the ends (Rear and Front Ends).
- The elements can be inserted at the rear end and deleted from the front end.
- Queue maintains two variables Front and Rear. Initial value of Front and Rear are -1.
Basic operations performed on queue are:
- Insertion-Inserts the element at rear end of the queue .
- Deletion- deletes the element from front end of the queue.
If the PDF does not load, click here to download it.