Math, asked by Anonymous, 3 months ago

4.
Characters of a string of length 'm' are inserted into a CIRCULAR QUEUE implemented using an array of
size 'n = 10' characters (where m > n). Write a program such that the enqueue(insert) and dequeue
(delete) operations on the queue are performed in the following sequence:
First 'n' characters of the string are inserted into the circular queue.
Since (m>n), one character is removed and one is inserted into the queue at a time until all the
characters of the string are inserted.
All the characters are removed from the queue.

.
N
1
1
V
E
חיות
R
For Example: string such as
Seq 1 M
A
N
Seq 2 A
N
1
Seq3 N
1
P
Seq 4 1
P
А
Seg 5 P
A
L
Seg 6 А
L
U
Seg 7 L
U
N
Seq 8 U
N
1
Seg 9 N
1
V
Seq 10 1
V
E
Seg 11 V
E
R
And Seq 12, 13, 14...
....So on
"MA, N, I, P, A,L,U,NI.V,E,R,S,1,1,Y”.
1
P
A
L
U
P
А
L
U
N
A
L
U
N
1
L
U
N
I
V
U
N
1
V
E
N
1
V
E
R
1
V
E
R
S
V
E
R S
1
E
R
S
1
T
R
S
1
T
Y
S
T
T
Y
till queue become empty.
S
S
1
T
1
I
T
Y
Y
..
In this case m= 17, n= 10​

Answers

Answered by amankumar991123
0

Answer:

Mark as the Nrainliest Answer Please please......................

Thank you for free points..

Mark as the brainliest answer....

Step-by-step explanation:

Similar questions