# Bubble Sort In Hindi – Sorting Algorithms in Hindi

Bubble Sort in Hindi – Data Structures In HINDI – Iss Post Mein Hum Dekhenge Bobble Sort Ke Baare Mein Ki Ye Kis Kaam Mein Aati Hai, Isko Use Kaise Karte Hai Aur Ye Kis Tarah Se Useful Hoti Hai Sorting Karne Ke Liye.

Also Read – Introduction to Sorting

## Bubble Sort In Hindi

Bubble Sort Ek Simple Sorting Algorithm Hai, Ye Algorithm Basically Pairs ke Comparison karke Elements ko Sort Karti Hai, Or Agar Elements Order mein Naa Ho Toh Unko Swap Kar Dete Hai, Iska Example hum Aage Dekhenge

Example:

Humne Unsorted Data Liya Hai Example ke Liye, Isko Hum Bubble sort Ki Help Se Sort Karenge

Step 1 : Hum Pehle 2 Elements Ko Lenge Or Unko Check Karenge ke Unme Se Konsa Greater Hai, Yha Par Kyuki 33 greater Hai 14 Se, Isliye ye Pehle se Hi Sorted Hai

Step 2 : Ab Hum Next two Elements Lenge Or Unko Compare Karenge i,e. 33 And 27, Yha Par 27 Smaller hai 33 Se Isliye Hum Dono Ko Swap Kar Denge or Hamara Data Aisa Ho Jaega

Step 3 : Ab Compare Karenge Agle 2 Elements ko Jo hai 33 and 35,Lekin Ye Pehle se hi Sorted Hai

Step 4 : Ab Hum Agle 2 Check Karenge i,e. 35 and 10, Kyuki Isme 10 Smaller Hai 35 Se Isliye Hum INN dono Ko aapas mein Swap Kar Denge

Step 5 : Kyuki Hum Last Tak Chale Gaye Hai isliye Hum Phirse shuru Krenge 1st Element se Or Swap Kar denge Agar Unsorted Aega toh, Check Karte Karte hum Phuchenge 33 and 10 Par Aur Inko Swap Kar Denge

Step 6 : Ab Hum Phirse Shuru Se Shuru Karenge or Hum Pahuchenge 27 and 10 Par Aur Inn Dono Ko Swap Kar Denge Aapas Mein

Step 7 : Ab Hamara Last Iteration Hai, Kyuki 10 Smaller Hai 14 Se Isliye Hum Inn Dono Ko Bhi Apas Mein Swap Kar Denge

Finally Iteration Ko Execute Karke Humko Sorted Data Mil Jaega,Ye Algorithm Bahut Simple Hai Execute Karne Mein Lekin Iski Time Complexity Order Of N Square Hoti .

Aage Ke Posts Mein Hum, Bachi Hui Sorting Algorithms Ko Padhenge Detail Mein Or Dekhenge Ki Vo Kaise Kaam Karti Hai,Kyuki Har ek Algorithm Ki Execution Alag Hoti Hai

Friends Mujhe Umeed Hai Ki Aapko Bubble Sort And Sorting Algorithm In Hindi Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |