Bubble sort works on the repeatedly swapping of adjacent elements until they are not in the intended order. It is called bubble sort because the movement of array elements is just like the movement of air bubbles in the water. Bubbles in water rise up to the surface; similarly, the array elements in bubble sort move to the end in each iteration.
Although it is simple to use, it is primarily used as an educational tool because the performance of bubble sort is poor in the real world. It is not suitable for large data sets. The average and worst-case complexity of Bubble sort is O(n2), where n is a number of items.
-----------------------------------------------------------------------------------------------------------
1.Find the minimum and the maximum:- • Find the minimum and maximum in the array|...
Swapping of two number:- • SWAP TWO NUMBERS IN C/C++/PYTHON | WITH TH...
Reverse a number – • How to reverse a number in C, C++ and Pyth...
Basic Programming series - • basic programming series
1.Even odd – • Even Odd Program in C,C++ and Python|Basic...
2. Prime Numbers – • Program to check Prime Number in C , C++ ,...
3. Reverse a number – • How to reverse a number in C, C++ and Pyth...
4. Swap two numbers- • SWAP TWO NUMBERS IN C/C++/PYTHON | WITH TH...
5. palindrome - • Check a number/string is a Palindrome in H...
6. Armstong Number - • How to Check Armstrong Number in C/C++/PYT...
Interview Question
• Array Questions
Do Like Share and Subscribe for more videos like this
code is in the comment section
Sur cette page du site, vous pouvez voir la vidéo en ligne Bubble Sort Algorithm || Data structure and Algorithm durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Codiator 18 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 59 fois et il a aimé 11 téléspectateurs. Bon visionnage!