Posts

Showing posts from October, 2021

Sorting

Image
  Sorting Defination :- A Sorting Algorithm is used to rearrange a given array or list elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of element in the respective data structure. Defination:-  Sorting is the process of arranging the elements of an array so that they can be placed either in ascending or descending order. Sorting Defination:-  दिये गये elements को ascending (आरोही) descending (अवरोही) रखना sorting कहलाता है| Sorting एक important operation है.|  Normally इसके लिए बहुत सारी application को use मे लिया जाता है| Sorting प्रायः एक list ऑफ elements पर perform की जाती है| ऐसे list की sorting को internal sorting कहते है ।  List के छोटे छोटे भागो को sort किया जाता है । List पूर्ण रूप से computer की primary memory मे रहती है| इसके विपरीत जब sorting को secondary memory मे perform किया जाता है| तो इस प्रकार की sorting external sorting कहते है । Advantage of sorting:- Data sensitiveness:- कुछ...