Beruflich Dokumente
Kultur Dokumente
Insert ( ):
Description: Here QUEUE is an array with N locations. FRONT and REAR points to the front
and rear of the QUEUE. ITEM is the value to be inserted.
8. Print: ITEM
inserted [End of
Step 1 If]
9.Exit
Delete ( ):
Description: Here QUEUE is an array with N locations. FRONT and REAR points to the front
and rear of the QUEUE.
8. Print: ITEM
deleted [End of
Step 1 If]
9. Exit
1. Begin
temp-> info =x
temp->next=null
current =SEARCH()
current->next=temp
7. End.
Create :
1. Begin
2. Read the element into x
3. Create a temp node in the memory temp =(struct node )sizeof (node)
temp ->next=null
1. Push left parenthesis onto stack and add right parenthesis at the end of
Q.
2. Scan Q from left to right and repeat step 3 to 6 for each element of Q
until the STACK is empty.
7. Exit
5. check whether head is null or not if (head=null)
head=temp
current=temp
6. else
8. End.
DISPLAY :
1. Begin
current=head
while (current != null)
2.
{
5. End