Difference between sorting and searching in data structure
Answers
Answered by
89
Sorting means to arrange the terms or values in ascending or descending order.
Searching means to search for a term or value in an array or a group of terms or values
Searching means to search for a term or value in an array or a group of terms or values
Answered by
114
Hey!
The differences between sorting and searching are :-
1. In searching, a certain array is to be searched for whereas in sorting the members of the array are to be sorted in a particular order, i.e. descending or ascending order.
2. Searching returns the position of the searched array while sorting returns an array with the elements arranged in ascending or descending order.
Hope it helps^^
Please mark as brainliest :)
The differences between sorting and searching are :-
1. In searching, a certain array is to be searched for whereas in sorting the members of the array are to be sorted in a particular order, i.e. descending or ascending order.
2. Searching returns the position of the searched array while sorting returns an array with the elements arranged in ascending or descending order.
Hope it helps^^
Please mark as brainliest :)
Similar questions