Question: A- Suppose that you have circular queue with size 50 .answer the following questions: ( 6 points) 1- If the Front equals 40 and Rear

A- Suppose that you have circular queue with size 50 .answer the following questions: ( 6 points) 1- If the Front equals 40 and Rear equals 39 , after adding one element to the queue (if it possible) what are the values of Front and Rear? 2- If the Front equals Rear which equals 35 , how many elements in the queue then? 3- If the Front cquals 49 and Rear equals 5 , after deleting two elements (if it possible) what are the values of front and Rear? 4- If the Rear equals 27 and Font equals 28 , after adding one element (if it possible) what are the values of front and rear
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
