2082 4

BIT201 ยท 2082 ยท 5 marks

Why do we need circular queue? Explain.

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

Data Structures and AlgorithmsChapter 3: Linear Data Structures: Stacks and QueuesCircular queue advantages and implementation

In a simple linear queue implemented using an array, two pointers are maintained: - Front - points to the first element - Rear - points to the last element Consider a queue of size 5: After Enqueue A, B, C, D, E and then Dequeue A, B: Now if we try to Enqueue F, the condition Rear == MAX - 1 is T...