Do bubble sorts have any real world use? Every time I see one mentioned, it’s always either:
- A sorting algorithm to learn with.
- An example of a sorting algorithm not to use.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on the way your data is distributed – if you can make some assumptions.
One of the best links I’ve found to understand when to use a bubble sort – or some other sort, is this – an animated view on sorting algorithms:
http://www.sorting-algorithms.com/