DEV Community

Cover image for Why sorting Algorithm is so important ?
Keshav Kumar
Keshav Kumar

Posted on

Why sorting Algorithm is so important ?

Sorting is important because it make access of data more easier for doing operations on sorted array or any other data Structure.

All of us read books right, so could you imagine what will happen if the page numbers on the book are randomly arranged. For e.g. after page no. 5 next will be 267 and then 138. Won't it make it very difficult for reader to read the book because after reading one page he will be keep finding the other.

So similarly the after sorting, the data arranges in a well manner to do any kind of operations on that for e.g. we will be knowing minimun element and maximum element, we will be able to search for a particular element.

Top comments (0)