
algorithm that puts elements of a list in a certain order
A sorting algorithm is a step-by-step procedure that arranges items in a list into a specific order, such as from smallest to largest. Sorting matters because it makes data easier to work with and helps computers find information quickly.
AI-generated from the Wikipedia summary — may contain errors.
Merge sort
In computer science, a sorting algorithm is an algorithm that puts elements of a list into an order. The most frequently used orders are numerical order and lexicographical order, and either ascending order or descending order. Efficient sorting is important for optimizing the efficiency of other algorithms (such as search and merge algorithms) that require input data to be in sorted lists. Sorting is also often useful for canonicalizing data and for producing human-readable output.
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).