Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's bubble sort good at? [duplicate]

Possible Duplicate:
What is a bubble sort good for?

I'am sure every algorithm has its advantage and disadvantage, so how about buble sort compared to other sorting algorithm? (ofcourse I hope the answer is other than "easy to learn")

like image 723
uray Avatar asked Nov 26 '22 21:11

uray


1 Answers

  1. It is easy to implement for linked lists, since you always swap adjacent nodes while traversing left to right repeatedly.
  2. Bubble sort is a stable sort.
like image 149
Alex B Avatar answered Dec 09 '22 10:12

Alex B