Tutorials  Articles  Notifications  Login  Signup

Introduction Introduction to Sorting algorithms Selection sort algorithm Bubble sort algorithm Insertion sort algorithm Merge sort algorithm Analysis of merge sort algorithm Quicksort algorithm Analysis of quicksort


Sorting algorithms - Bubble sort algorithm







Video credits: MyCodeSchool

 

In our previous lesson, we had discussed Selection Sort algorithm.

Now in this lesson, we are going to discuss another sorting algorithm, named Bubble Sort.

Bubble sort is a slow sorting algorithm, it's as good as Selection Sort but both Bubble sort and Selection sort are slow sorting algorithms. 

Bubble Sort is in place and stable sorting algorithm and it's time complexity which is Big-Oh(n^2) in the worst case. 


No problems available for this topic.




HackerFriend Logo

Join the community of 1 Lakh+ Developers

Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.


Create a free account