What is sorting in data structures? What are the objectives of sorting?
Answers
Answered by
5
Answer:
In computer science, a sorting algorithm is an algorithm that puts elements of a list in a certain order. The most frequently used orders are numerical order and lexicographical order.
Answered by
1
Sorting in data structures refers to the process of arranging the given data in a particular order or format. It can be least to most, alphabetical or reverse order, etc.
The objectives of sorting are as follows-
- It allows arranging the data in a relevant order to make comparing and understanding easy.
- It saves time in finding, rearranging, locating data.
- It increases the efficiency of the algorithm and the ability to work with huge data.
Similar questions
Hindi,
4 months ago
Physics,
4 months ago
Physics,
9 months ago
Computer Science,
9 months ago
Computer Science,
1 year ago
English,
1 year ago