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
Draw the sequences of the static queue AFTER every action. Assume the MAX location size for the static queue is 25 with
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am