Bubble Sort Algorithm || Data structure and Algorithm

Publicado em: 18 Novembro 2021
no 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


Nesta página do site você pode assistir ao vídeo on-line Bubble Sort Algorithm || Data structure and Algorithm duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Codiator 18 Novembro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 59 vezes e gostou 11 espectadores. Boa visualização!