Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

WithoutBook Forum

Ques. What are the Sorting types are there?

- What are the sorting algorithms are there in Data structures and what are they?
Can I create my own sorting algorithm also?

Posted on Jul 28, 2014 by Muvin
Ans. A sorting algorithm is an algorithm that puts elements of a list in a certain order where it could be required to get sorting order of an array of elements or could be better efficiency during searching mechanisms.

There are different sorting mechanisms are there:

Simple sorts
1. Insertion sort
2. Selection sort

Efficient sorts
1. Merge sort
2. Heapsort
3. Quicksort

Bubble sort and variants
1. Bubble sort
2. Shell sort
3. Comb sort

Distribution sort
1. Counting sort
2. Bucket sort
3. Radix sort

And Yes. You can create your own sorting algorithm. Most of the cases you can use the existing algorithm. But for few cases if you see some complex algorithm which is not possible on these sorting mechanisms, you can write your own sorting algorithm.
Posted on Aug 01, 2014 by Shelly

Enter your Answer

Name
Email Address
Answer
©2024 WithoutBook