We may earn an affiliate commission when you visit our partners.

Bubble Sort

Save
May 1, 2024 Updated June 5, 2025 12 minute read

An Introduction to Bubble Sort

Bubble Sort is a fundamental sorting algorithm, often one of the first that students encounter in their computer science education. At its core, it is a simple, comparison-based algorithm that repeatedly steps through a list, compares adjacent elements, and swaps them if they are in the wrong order. This process, or "pass," is repeated until the list is fully sorted and no more swaps are needed.

The algorithm gets its descriptive name from the way smaller or larger elements, depending on the sorting order, "bubble" up to their correct position in the list. Think of it like bubbles in a glass of water rising to the surface; the lightest elements gradually make their way to the top (or beginning) of the list with each pass.

Path to Bubble Sort

Take the first step.
We've curated nine courses to help you on your path to Bubble Sort. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about Bubble Sort: by sharing it with your friends and followers:

Reading list

We've selected 11 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Bubble Sort.
Provides a comprehensive overview of algorithms and data structures, including Bubble Sort and its applications. It is suitable for advanced undergraduates and graduate students.
Provides a comprehensive overview of data structures, algorithms, and applications in Java, including Bubble Sort. It is suitable for advanced undergraduates and graduate students.
Focuses specifically on sorting and searching algorithms, providing a detailed explanation of Bubble Sort and its variations. It is suitable for undergraduate students and practitioners.
Provides a Java-centric approach to data structures and algorithms, including Bubble Sort. It is suitable for undergraduate students and practitioners.
Provides a comprehensive and detailed guide to Bubble Sort, covering its implementation, variations, and applications. It is suitable for intermediate and advanced readers.
Provides a theoretical analysis of Bubble Sort, examining its time complexity and performance characteristics. It is suitable for advanced readers and researchers.
Provides a concise and accessible overview of algorithms, including Bubble Sort. It is suitable for beginners and non-technical readers.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser