Computer Science, asked by abiramiramesh09, 5 months ago

A circular queue has a size of 5 and has 3 elements 10, 20 and 40 where F=2 and R=4. After inserting 50 and 60, what is the value of F and R.Trying to insert 30 at this stage what happen. Delete 2 elements from the queue and insert 70,80 and 90. Show the sequences of steps with necessary diagram with the value of F & R

Answers

Answered by vandanajha90667
9

Answer:

The Regular, static queues in data structures have a very big drawback, that once the queue is FULL, even though we delete few elements. Initially when such a circular queue is empty ,the “Front” and the “rear” values are-1 and -1 respectively; and the queue has a null value of all us element. ...

Answered by steffiaspinno
3

A circular queue radius can only be found out by the method given below

A five-element circular queue, with F = 2 and R = 4, has three elements: 10, 20, and 40. What are the values of F and Rafter inserting 50 and 60? What happens if you try to insert 30 at this point. Remove two components from the queue and replace them with 70, 80, and 90. Apply the Circular Queue algorithm and display the steps in order with the relevant diagrams and the F and R values.

Similar questions