2081 11

CSC211 ยท 2081 ยท 5 marks

What is linear queue? Why do we need circular queue? Explain.

What is linear queue? Why do we need circular queue? Explain. [5]

Data Structures and AlgorithmsChapter 3: QueueLinear Queue, Circular Queue, Priority Queue, Queue Applicat

A linear queue is a linear data structure that follows the FIFO (First In First Out) principle, where: - Elements are inserted from the REAR end - Elements are deleted from the FRONT end In an array-based linear queue, two pointers are maintained: - FRONT: points to the first element - REAR: poin...