Data Structure

Sorting in Data Structure

What is Sorting in Data Structure Sorting algorithm in data structure refers to ordering data in both ascending and descending order to get a meaningful data which can be analyze easily. we formally define sorting problem as: Input: A sequence of n numbers <$a_{1}.a_{2}…………….a_{n}$> Output: A permutation (re-ordering) < $ a^{‘}_{1},a^{‘}_{2}…………………………..a^{‘}_{n}$> Example of Sorting Problem:

Sorting in Data Structure Read More »