Data Structure

Selection Sorting in Data Structure

Selection Sorting in data structure refers to find the largest ( or smallest ) element in an array repeatedly and move that element to its final position. Advantage of Selection Sorting Disadvantage of Selection Sort Selection Sort C++ The program of selection sort in c++ is as follows: Output of the program selection sort in

Selection Sorting in Data Structure Read More »

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 »

Scroll to Top