Bubble Sort Algorithm || Data structure and Algorithm

Veröffentlicht am: 18 November 2021
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Bubble Sort Algorithm || Data structure and Algorithm mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Codiator 18 November 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 59 Mal angesehen und es wurde von 11 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!