1 votes 1 votes If $(rear==maxsize-1)$ $rear=0;$ else $rear=rear+1;$ is required in : circular queue linear queue stack deque Databases ugcnetcse-dec2008-paper2 data-structures circular-queue + – rishu_darkshadow asked Sep 26, 2017 edited Jun 19, 2020 by soujanyareddy13 rishu_darkshadow 2.9k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 1 votes 1 votes Algorithm For Insertion in Circular Queue Step 1: If REAR = SIZE-1 then REAR = 0 Else REAR=REAR + 1 Step 2: If FRONT = REAR then Write ("Circular Queue Overflow") Step 3: CQ[REAR]=X Step 4: If FRONT = -1 then FRONT=0 So option A Rishi yadav answered Oct 9, 2017 selected Oct 9, 2017 by Sankaranarayanan P.N Rishi yadav comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes It is in circular queue.. but also required to check overflow condition ..i.e. rear==front Devendra Patel answered Sep 26, 2017 Devendra Patel comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Circular queue Priyanka Agarwal answered Sep 26, 2017 Priyanka Agarwal comment Share Follow See all 0 reply Please log in or register to add a comment.