Draw the sequences of the static queue AFTER every action. Assume the MAX location size for the static queue is 25 with
Posted: Sat Jul 09, 2022 11:48 am
Draw the sequences of the static queue AFTERevery action. Assume the
MAX location size for the static queue is 25 with starting indexor head is
[0].
(a) Initial static queue including alphabet B, A, C, K andU.
(b) DEQUEUE three items from the queue.
(c) ENQUEUE items X, Y, G, L and W into the queue.
(d) DEQUEUE four items from the queue.
(e) ENQUEUE items Q, D, S, N and P into the queue.
(f) DEQUEUE four items from the queue.
(g) ENQUEUE items X, L, Q, T and R into the queue.
(h) DEQUEUE five items from the queue.
(i) ENQUEUE M, I, N and E.
(j) DEQUEUE three items from the queue
MAX location size for the static queue is 25 with starting indexor head is
[0].
(a) Initial static queue including alphabet B, A, C, K andU.
(b) DEQUEUE three items from the queue.
(c) ENQUEUE items X, Y, G, L and W into the queue.
(d) DEQUEUE four items from the queue.
(e) ENQUEUE items Q, D, S, N and P into the queue.
(f) DEQUEUE four items from the queue.
(g) ENQUEUE items X, L, Q, T and R into the queue.
(h) DEQUEUE five items from the queue.
(i) ENQUEUE M, I, N and E.
(j) DEQUEUE three items from the queue