A queue is implemented with a sequence $Q[1\ldots n]$ and two indices $\def\head{\operatorname{head}}\head[Q]$ and $\def\end{\operatorname{end}}\end[Q]$ such that the elements of the queue are the following:
$$Q[\head[Q]], Q[\head[Q]+1], \ldots , Q[\end[Q]-1]$$
Initial $\head[Q]=\end[Q]=1$
When $\head[Q]=\end[Q]+1$ the queue is complete.
Does ”Initial $\head[Q]=\end[Q]=1$” stand when there is one element in the queue?
Could you explain me what the following means?
”When $\head[Q]=\end[Q]+1$ the queue is complete.”