Professional Documents
Culture Documents
BY
D CS SARATH
16BCI0128
SCOPE
CERTIFICATE
This is to certify that the project work entitled “AN APPLICATION ON MERGE
SORT ALGORITHM ” that is being submitted for Data Structures and
Algorithms is a record of bonafide work done under my supervision. The contents
of this Project work, in full or in parts, have neither been taken from any other
source nor have been submitted for any other CAL course.
Place: Vellore
Prof.Murali S
ACKNOWLEDGEMENT
It gives us immense pleasure to express our deepest sense of gratitude and sincere
thanks to our highly respected and esteemed guide Professor Murali s Vellore
Institute of Technology, Vellore for her valuable guidance, encouragement and
help for completing this work. Her useful suggestions for this whole work and
cooperative behavior are sincerely acknowledged.
We are also highly indebted to VIT University for their guidance and constant
supervision as well as for providing necessary information regarding the project &
also for their support in completing the project.
We also wish to express our indebtedness to our parents as well as our family
members whose blessings and support always helped us to face the challenges
ahead.
At the end we would like to express our sincere thanks to all our friends and others
who helped us directly or indirectly during this project work.
OBJECTIVE
Merge sort is a sorting technique based on divide and conquer technique. With
worst-case time complexity being Ο(n log n), it is one of the most respected
algorithms. Merge sort first divides the array into equal halves and then combines
them in a sorted manner.
In this code our aim is to optimise Time complexity and Space complexity .
We use structure in that we give paitent name , age , token number , height , weight
Void mergesort as function , left recursion and right recursion and merge those both
sorted sub arrays
Beginning of the first list & second list then copy remaining elements of the first list
and second lists then we transfer elements from temp[] back to a[]
If (a[j]=p[i].tnumber ) Copy tokens number to Array and then sorting token number by
merge sort
printf(“\n%d\t\t|%d \t |%d \t |%d \t|%d”,p[i].hno,
p[i].pname,p[i].age,p[i].tnumber,p[i].height,p[i].weight);
RESULT & OUTPUT