in DS
23,207 views
0 votes
0 votes

Suppose a dequeue is stored in a circular array with N memory cells. At which of the following condition is the dequeue is full? 


(i) LEFT = N and RIGHT = 1 
(ii) LEFT = RIGHT + 1 
(iii) LEFT = 1 and RIGHT = N 
(iv) LEFT = RIGHT - 1 + N

  1. (i) and (iii)
  2. (iii) and (iv)
  3. (ii) and (iii)
  4. (i) and (iv)
in DS
23.2k views

4 Comments

left means, front pointer position and right means rear pointer position
0
0
then why front=1?

It means front always contain 1 element in the circular array?
0
0
no, it means at particular time, front = 1 and rear=N, indicates queue is full !
0
0

Please log in or register to answer this question.