Skip main navigation

Examples of bubble sorts from the web

Find a few examples of bubble sort across the web, and investigate how it works.

There are pleanty of interactive bubble sort demonstrations available on the web. Before you go ahead and program your own bubble sort algorithm, have a look at one of the web pages below.

While playing with the visualisations, ask yourself some of the following questions.

How well does the bubble sort algorithm work when sorting a list that is:

  • Randomly ordered?
  • Sorted, but from highest to lowest?
  • Nearly sorted (just one item out of place)?
  • Already sorted?

Discuss your findings in the comments.

This article is from the free online

Programming 102: Think Like a Computer Scientist

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education