0% found this document useful (0 votes)
11 views10 pages

Bubble Sort PP

Bubble Sort is a simple sorting algorithm that repeatedly compares and swaps adjacent elements in a list to sort them. It is mainly used for educational purposes, small datasets, and almost sorted data, but it is slow for large datasets and not commonly used in practical applications. The algorithm is easy to implement and stable, but other sorting methods like Quick Sort and Merge Sort are generally faster.

Uploaded by

Tayebur Fahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views10 pages

Bubble Sort PP

Bubble Sort is a simple sorting algorithm that repeatedly compares and swaps adjacent elements in a list to sort them. It is mainly used for educational purposes, small datasets, and almost sorted data, but it is slow for large datasets and not commonly used in practical applications. The algorithm is easy to implement and stable, but other sorting methods like Quick Sort and Merge Sort are generally faster.

Uploaded by

Tayebur Fahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

UNDERSTANDING BUBBLE SORT

Author
Riful Hassan Tonmoy, Afifa Tabassum
Bishal Sarkar

Department of Software Engineering,Green University of


Bangladesh

Presented To:
ABRAR HASAN
OUTLINES

Definition
How Does Bubble Sort
Work
Example of Bubble Sort
 When to Use Bubble
Sort
WHAT IS BUBBLE
SORT
Bubble Sort is a simple sorting algorithm that repeatedly
iterates through a list, comparing adjacent elements and
swapping them if they are in the wrong order

5 3 8 4 6

3 5 8 4 6
HOW BUBBLE SORT
WORK

The image is an animation of the Bubble Sort


algorithm. Here's a breakdown of what's
happening

3 1
1 2 3 4
4 2
EXAMPLE OF BUBBLE
SORT
WHEN TO USE BUBBLE
SORT

 Educational purpose
 Small datasets
 Almost sorted data
ADVANTAGES &
DISADVANTAGES
✅Advantages:
 Simple and easy to implement.
 Stable sorting algorithm.
 Works well for small lists.

❌ Disadvantages:
 Very slow for large datasets.
 Not used in practical applications.
 Other sorting algorithms like Quick
Sort & Merge Sort are much faster.
GRAPHICAL REPRESENTATION OF
BUBBLE SORT

4 3 2 1
2 3 1 4
3 4 2 1
2 1 3 4
3 2 4 1
1 2 3 4
3 2 1 4
CONCLUSION
THANK YOU!
ANY QUESTION?

You might also like