Chapter 7
Queues
Chapter 7 discusses about queues and its variants such as circular queues and doubly ended queues. The static, dynamic representation and operations of all the types of queues are explained and exemplified. Various applications of the queues are listed, and one of the applications called Simulation of Time-Sharing System is explained in detail.
7.1 INTRODUCTION
Queue is a linear data structure in which insertions are made at one end called rear, and deletions are made at the other end called front. A queue is also known as a structure that models the first-come first-serve order or equivalently the first-in first-out (FIFO) order. That is, the element that is inserted first into the queue will be the element to be deleted first, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access