Title: Queue Data Structure (FIFO)
A queue is a linear data structure that follows the FIFO (First In First Out) principle.
Basic operations:
- Enqueue (insert element)
- Dequeue (remove element)
Queues are used in real-life situations like waiting lines. The person who comes first is served first.
Queues are also used in CPU scheduling, buffering, and networking.
Comments
Post a Comment