Data Structures Laboratory-18CSL38
Data Structures Laboratory-18CSL38
BY:
Abhishek – 005
Anurag - 032
Chandan - 051
Anurag Sharma (1RN19IS032)
Chandan Parmar (1RN19IS051)
Abhishek Kumar Singh(1RN19IS005) 1
CONTENTS
Introduction
Objective of the project
Data Structure
System requirements
Implementation modules
Results
Advantages
Future Enhancements
References
SOFTWARE SPECIFICATION
• Operating System : OSx
• Frontend : C programming
• Backend : C programming
• IDE : Visual Studio Code
Department of ISE,RNSIT 12
Implementation modules
int cancel(int reg) while(ptr->reg_no!=reg && ptr->next!=NULL)
{ {
preptr=ptr;
node *ptr, *preptr, *new;
ptr=ptr->next;
ptr=start;
}
preptr=NULL;
if(ptr==NULL && ptr->reg_no!=reg)
if(start==NULL) return -1;
return -1; else
if(ptr->next==NULL && ptr- preptr->next=ptr->next;
>reg_no==reg) free(ptr);
{ new=deq();
start=NULL; while(preptr->next!=NULL)
num--; preptr=preptr->next;
free(ptr); preptr->next=new;
num--;
return 1;
return 1;
}
}
else{ }
13
Implementation modules
void enq(node *new_node) node* deq(){
{ node *front1;
if(rear==NULL) front1=front;
{ if(front==NULL)
rear=new_node; return NULL;
rear->next=NULL; else{
front=rear; count-- ;
}
if(front->next!=NULL){
else
front=front->next;
{
front1->next=NULL;
node *temp;
return front1;
temp=new_node;
}
rear->next=temp;
else{
temp->next=NULL;
front=NULL;
rear=temp;
rear=NULL;
}
count++; return front1;
} }}}
14
Implementation modules
void display()
{
node *temp;
temp=start;
while(temp!=NULL)
{
printf("\nRegistration
Number: %d\n", temp->reg_no);
printf("Name : %s\n\n", temp-
>name);
temp=temp->next;
}
15
Results
www.youtube.com
www.tutorialspoint.com
www.greeksforgreek.org