CC104 Chapter 4 Queues
CC104 Chapter 4 Queues
QUEUES
CHAPTER
4
MARIANNE C. SOLERO
Instructor
Search . . .
What is Queues?
A queue is a linear data structure where elements are stored in the
FIFO (First In First Out) principle where the first element inserted
would be the first element to be accessed.
Representation of Queues
A queue abstract data types can also be implemented using arrays,
linked lists, or pointers.
Queue uses two pointers − front and rear. The front pointer
accesses the data from the front end (helping in enqueueing) while
the rear pointer accesses data from the rear end (helping in
dequeuing).
Search . . .
For Example:
Search . . .
• https://www.geeksforgeeks.org/introduction-to-queue-data-structure
-and-algorithm-tutorials/
• https://www.tutorialspoint.com/data_structures_algorithms/dsa_queu
e.htm
• https://www.geeksforgeeks.org/different-types-of-queues-and-its-app
lications/
Search . . .
THANK YOU
END SLIDE
MARIANNE C.
SOLERO
Instructor