Bubble Sort Algorithm || Data structure and Algorithm

Publicado el: 18 noviembre 2021
en el canal de: Codiator
59
11

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


En esta página del sitio puede ver el video en línea Bubble Sort Algorithm || Data structure and Algorithm de Duración hora minuto segunda en buena calidad , que subió el usuario Codiator 18 noviembre 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 59 veces y le gustó 11 a los espectadores. Disfruta viendo!