Advantages And disadvantages
Bubble Sort
Advantages
|
Disadvantages
|
The
primary advantage of the bubble sort is that it is popular and easy to
implement.
|
The
main disadvantage of the bubble sort is the fact that it does not deal well
with a list containing a huge number of items.
|
In
the bubble sort, elements are swapped in place without using additional
temporary storage.
|
The
bubble sort requires n-squared processing steps for every n number of
elements to be sorted.
|
The
space requirement is at a minimum
|
The
bubble sort is mostly suitable for academic teaching but not for real-life
applications.
|
Insertion Sort
Advantages
|
Disadvantages
|
The
main advantage of the insertion sort is its simplicity.
|
The
disadvantage of the insertion sort is that it does not perform as well as
other, better sorting algorithms
|
It
also exhibits a good performance when dealing with a small list.
|
With
n-squared steps required for every n element to be sorted, the insertion sort
does not deal well with a huge list.
|
The
insertion sort is an in-place sorting algorithm so the space requirement is
minimal.
|
The
insertion sort is particularly useful only when sorting a list of few items.
|
Selection Sort
Advantages
|
Disadvantages
|
The
main advantage of the selection sort is that it performs well on a small
list.
|
The
primary disadvantage of the selection sort is its poor efficiency when
dealing with a huge list of items.
|
Because
it is an in-place sorting algorithm, no additional temporary storage is
required beyond what is needed to hold the original list.
|
The
selection sort requires n-squared number of steps for sorting n elements.
|
Its
performance is easily influenced by the initial ordering of the items before
the sorting process.
|
Quick
Sort is much more efficient than selection sort
|
Advantages
|
Disadvantages
|
The quick sort is regarded as the
best sorting algorithm.
|
The slight disadvantage of quick sort
is that its worst-case performance is similar to average performances of the
bubble, insertion or selections sorts.
|
It is able to deal well with a huge
list of items.
|
If the list is already sorted than bubble sort is much
more efficient than quick sort
|
Because it sorts in place, no
additional storage is required as well
|
If the sorting element is integers than radix sort is more
efficient than quick sort.
|
Quick Sort
Heap sort
Advantages
|
Disadvantages
|
The Heap sort algorithm is widely used because of its
efficiency.
|
Heap
sort requires more space for sorting
|
The Heap sort algorithm can be implemented as an in-place
sorting algorithm
|
Quick
sort is much more efficient than Heap in many cases
|
its memory usage is minimal
|
Heap
sort make a tree of sorting elements.
|
Merge Sort
Advantages
|
Disadvantages
|
It can be applied to files of any
size.
|
Requires
extra space »N
|
Reading of the input during the
run-creation step is sequential ==> Not much seeking.
|
Merge
Sort requires more space than other sort.
|
If heap sort is used for the
in-memory part of the merge, its operation can be overlapped with I/O
|
Merge
sort is less efficient than other sort
|
Good info
ReplyDeleteGood
ReplyDeleteGood
ReplyDeletereally usefull and the main thing i get all sorting advantage and disadvantage at one place
ReplyDeletereally... lolzz
Deletethanks...
ReplyDeleteit was really helpful
ReplyDeleteThank you so much for this nice information. Hope so many people will get aware of this and useful as well. And please keep update like this.
ReplyDeleteWhat are Data Lake Solutions? How does it work for Business Strategies
STEP BY STEP GUIDE FOR DATA LAKE SOLUTION AND ARCHITECTURE
Modern Strategies & Approaches of Data Lake Solutions
Data Lake vs Data Warehouse Things you need to know
Can Data Lakes be a Game Changer for Businesses?
7 Tips to adopt Data Lake Strategies
Are you confused as to whether you should adopt a Data Lake: Here are the 5 Best Practices that actually Work
6 Reasons to consider while choosing a Data Lake Strategy
3 Best Strategies to get the most out of Data Lake Solutions
THIS IS NOT HELPFUL PLS HELP
ReplyDeleteThank you so much sir
ReplyDeleteThank you sir this is very useful information of mine
ReplyDeleteThank you sir this is very soo useful information of mine
ReplyDeleteThis comment has been removed by the author.
ReplyDeletethx bro
ReplyDeleteVery useful thanks
ReplyDeleteGreaT
ReplyDeletewadi wadi mehrbani
Delete👍🏻❤️👍🏻
Deletethis is adequate and is approved by the lord joe limpenstein himself
ReplyDeleteVery well
ReplyDeleteGood
ReplyDeleteThanks for sharing such a worthy information...
ReplyDeletePython Online Training Hyderabad
Best Python Online Training
SPK Systems is a web design and development Company in India with expertise in Web design, Digital Marketing, Logo & Branding. Call Now for a Free Quote!
ReplyDeletehi
ReplyDeleteGreat sharing!
ReplyDeleteRegards,
BroadMind - Study abroad consultant in Madurai