Circular Queue
Circular Queue
Dr.M.Praneesh
Professor
Sri Ramakrishna College of Arts & Science
Stack and Queue / Slide 2
Representation of Queue
There are two ways to represent a queue in
memory
Using an array
Using a linked list
Stack and Queue / Slide 3
Queue is Empty
FRONT = REAR = HEADER
HEADER -> RLINK = NULL
Queue contains at least one element
HEADER -> RLINK ≠ NULL
Stack and Queue / Slide 5
Types of Queue
Stack and Queue / Slide 6
Circular Queue
Circular Queue is not a linear structure but
instead of its circular.
Stack and Queue / Slide 7
Circular Queue
Stack and Queue / Slide 8
Insert
Delete
Priority Queue
It is a special type of queue in which the
elements are arranged based on the priority.
It is a special type of queue data structure in
which every element has a priority associated
with it.
Suppose some elements occur with the same
priority they will be arranged according to the
FIFO principle.
Stack and Queue / Slide 11
Deques
Stack and Queue / Slide 13
Thank You……….