Python Tutorials - Bubble Sort Program

  Рет қаралды 100,377

Amulya's Academy

Amulya's Academy

5 жыл бұрын

In this Python programming video tutorial we will learn about bubble sort program in detail.
Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed which indicates that the list is sorted.
The algorithm which is a comparison sort is named for the way smaller or larger elements "bubble" to the top of the list. Although the algorithm is simple, it is too slow and impractical for most problems even when compared to insertion sort. Bubble sort can be practical if the input is in mostly sorted order with some out-of-order elements nearly in position.
Here we are writing the program using bubble sort algorithm.
Selection Sort Algorithm And Program:
• Python Tutorials - Sel...
• Python Tutorials - Sel...
• Python Tutorials - Sel...
• Python Tutorials - Sel...
Bubble Sort Algorithm:
• Python Tutorials - Bub...
#PythonProgramming #BubbleSort
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy

Пікірлер: 202
@syedalikhan5173
@syedalikhan5173 4 жыл бұрын
I am telling you i have watched several videos on bubble sort none has explained better then you full marks. i am totally impressed. Surely i will recommend all my friends. Best Python tutorial on any channel
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@rohit2761
@rohit2761 3 жыл бұрын
Amulya are you from Kerela ?
@YHarshaVardhanaReddy
@YHarshaVardhanaReddy 2 ай бұрын
Best programming channel out there , nothing can beat the tutors explanation.
@yasmeenkarachiwala9612
@yasmeenkarachiwala9612 4 жыл бұрын
Amazing for people from non programming background trying to learning coding. You make sure the concept is understood. You have earned my subscription. Please keep doing this amazing work. Loads of Love from San Francisco!!
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@stringswithakshat3405
@stringswithakshat3405 4 жыл бұрын
when you teach,,, each and every time I fall in love with python... thank you .. for your dedication 🤗🤗
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@jeezz4128
@jeezz4128 3 жыл бұрын
@@AmulsAcademymam also make videos on dynamic programming, brute force ..... asap
@sadiasiddiqua8793
@sadiasiddiqua8793 3 жыл бұрын
When I watched other videos I was having difficulty understanding the optimization part. Finally I got it from your video. Thank You. Loved it.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Glad it helped! :)
@jasonchia8484
@jasonchia8484 3 жыл бұрын
I struggled with this part so much. You are the only one who explained it so perfectly.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@ershadramezani6716
@ershadramezani6716 4 жыл бұрын
the most perfect explanation I've seen for bubble sort. thank u so much. i will definitely follow your channel from now on.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@prasadshete781
@prasadshete781 2 жыл бұрын
Wow , you have explain it in simple way and in-depth . Thank you sooo much .
@deutschnacharabischemgeschmack
@deutschnacharabischemgeschmack Жыл бұрын
Best explanation so far on bubble sort. God bless you. Thanks
@eaindraykyaw1351
@eaindraykyaw1351 Жыл бұрын
thanks a lot you just helped me out. I've been searching for the most basic one as I don't really have any background knowledge of coding. Finally, i found my savior. Thanks a lot. I'll be willing for the rest related to python too.
@SuperKapil1981
@SuperKapil1981 2 жыл бұрын
आपके जैसी वीडियोस एक्सप्लेनेशन किसी के नहीं देखे कुछ और सिंपल सी ,सी प्लस प्लस में जैसे प्रोग्राम करवाते थे वैसे पाइथन के बनाये क्योंकि राजस्थान बोर्ड में पहली बार पाइथन प्रोग्रामिंग लैंग्वेज लगी है 11th एंड 12th में
@poojanbhavsar2246
@poojanbhavsar2246 4 жыл бұрын
What an explanation ability you have got, brilliant, amazing and outstanding. Totally excellent experience for those who are beginners in Python programming. I am your huge fan, no doubt I have subscribed you. Keep up the good work, Amulya. I really appreciate your work.
@eagleofsharm
@eagleofsharm 4 жыл бұрын
Well done, best explanation for the vague . it's easier than the others when you explain something, GO ON. Thank u
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@jayasreenelluri7029
@jayasreenelluri7029 5 жыл бұрын
Ur amazing and ur teaching was excellent keep going and make more videos ......☆☆☆☆☆
@Kia780
@Kia780 4 жыл бұрын
This is freaking great. Thank you very very very much!
@jsllsj9871
@jsllsj9871 3 жыл бұрын
A fantastic, well articulated video explaining bubble sort. The python solutions and the variations of what the code can do is very informative. Many thanks
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Glad you liked it! :)
@mulasnehapriyanka447
@mulasnehapriyanka447 Жыл бұрын
Flawless explanation mam thanks a ton for your crystal clear explanation
@sagarrajkumargupta5168
@sagarrajkumargupta5168 2 жыл бұрын
your teaching way very efficient. Thank you for this video. You give your best while teaching any topic.
@asifsiddique7543
@asifsiddique7543 5 жыл бұрын
Masha Allah!!! incredible depth of knowledge ...stunning ability to teach ...10 out of 10
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@TheTeenKitchen
@TheTeenKitchen 4 жыл бұрын
Thank you so much mam... tomorrow is my practical exam and I luckily found this one...😊😊😊
@chandramouli5469
@chandramouli5469 4 жыл бұрын
Great work, keep going !!!
@Shashikantyadav-tm9ix
@Shashikantyadav-tm9ix 4 жыл бұрын
I have seen many tutorial but not understood. This vedio really amazing to understand.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@mohittrivedi1112
@mohittrivedi1112 3 жыл бұрын
seriously the quality of knowledge i get is far better any other video
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@premavathy2340
@premavathy2340 3 жыл бұрын
There is no word to explain. Suuuuuperb mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot :)
@saravananraja8615
@saravananraja8615 5 жыл бұрын
If anyone asks me to suggest the best python tutorial youtube channel, I will suggest this channel only. Your Interpretation is in a good way.
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you:)
@kemhor277
@kemhor277 5 жыл бұрын
@@AmulsAcademy Bravo I hope you will do lessons about Data Structures. Thanks for the good job !!! 👏👏👏👏👏
@darshanshinde514
@darshanshinde514 Жыл бұрын
Your all videos are very much helpful and you make it look simple 😊😊😊
@riyajadon9794
@riyajadon9794 4 жыл бұрын
Amazing explanation and pls make more videos on different algorithms in python like greedy algo, BFS, DFS etc
@cyberenginee
@cyberenginee 2 жыл бұрын
Amulya's Academy is so good at teaching. It explains everything easily that anybody can understand. Also, the way of teaching also amazes me. I am happily going through my "Data Structure" course from "Amulya's Academy" and this helps me a lot in my studies as a CSE student. Moreover, I have recommended my friends sharping their knowledge from this channel. Thank you so much and Love from Bangladesh!
@mulekondareddy933
@mulekondareddy933 2 жыл бұрын
You killed it.
@azarudeena6467
@azarudeena6467 11 ай бұрын
such a great explaination
@yayanguyen7991
@yayanguyen7991 Жыл бұрын
Very great explanation.
@surajagasti2309
@surajagasti2309 4 жыл бұрын
your explanation is smooth and steady
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@mampudimpu0015
@mampudimpu0015 3 жыл бұрын
Jo Jo lockdown main madam ki videos dekh raha hein like karooo ... Your's teaching makes python into an another Animal ... Plz keep it up madam.. 😍😍😍😍
@019-karpagams2
@019-karpagams2 Жыл бұрын
You are a great teacher madam ,we need more of your videos!!!!
@SaifKhan-wm9db
@SaifKhan-wm9db 2 жыл бұрын
easily understandable thank you so much
@AmulsAcademy
@AmulsAcademy 2 жыл бұрын
Pleasure 😊
@adityagarkoti2066
@adityagarkoti2066 4 жыл бұрын
No words😳.....Thanks a lottttt buddy and plzz keep on uploading so that it can help USS😅 to understand programing
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you, I will :)
@imranhossain4649
@imranhossain4649 3 жыл бұрын
Amazing ...... Wow fantastic ....Thanks & Love u ....
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Most welcome 😊
@nathankimutai8135
@nathankimutai8135 4 жыл бұрын
Your explanation is very clear.....I like your video
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@pravinmetkari2560
@pravinmetkari2560 4 жыл бұрын
Best explanation ever.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@dipan246
@dipan246 3 жыл бұрын
Very nice. Thank you.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
My Pleasure :)
@iabhishek1984
@iabhishek1984 4 жыл бұрын
you are wonderful!!
@ZinduZatism
@ZinduZatism 4 жыл бұрын
best teacher in the universe thank you
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@shahmeerjutt2868
@shahmeerjutt2868 4 жыл бұрын
You're doing great. Mam' ,V well explained.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@shreyashetty9202
@shreyashetty9202 4 жыл бұрын
best and amazing explanation
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thanks a lot :)
@usmansahi
@usmansahi 4 жыл бұрын
could you please tell me deference to use for loop range function or without range function ? for I in range(Len(are)) why we use range and Len function without it we also get index
@gowthamsenthilkumaran7617
@gowthamsenthilkumaran7617 4 жыл бұрын
Really awesome great video.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thanks for the visit :)
@mohammadpervezhussain5742
@mohammadpervezhussain5742 3 жыл бұрын
Mam really explained very well..I enjoyed writing program's
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot :)
@poseidon5602
@poseidon5602 3 жыл бұрын
Very Cool!!👍👍
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@Playstore-zc5xk
@Playstore-zc5xk 3 жыл бұрын
I love your explanation mam. You are more than awesome
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot 😊
@snehamotapothula2360
@snehamotapothula2360 3 жыл бұрын
Really good explanation
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@pgkgaming4229
@pgkgaming4229 Ай бұрын
Osm explanation ❤❤❤
@alfonsodejesusbarbozameza8229
@alfonsodejesusbarbozameza8229 Жыл бұрын
thank you very much
@mulekondareddy933
@mulekondareddy933 2 жыл бұрын
Thanks a lot
@jvnganesh4943
@jvnganesh4943 4 жыл бұрын
Well explained
@ramilxelilli1197
@ramilxelilli1197 5 жыл бұрын
thank you for good explanation
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
My Pleasure :)
@SonuRaj-er1hn
@SonuRaj-er1hn 4 жыл бұрын
It's really good, can you make all algorithm and data structure videos it's very helpful for everyone, Thank you very much
@ietk2005
@ietk2005 Жыл бұрын
Amulayaji, you explanation is very simple and full informative related to that particular topic 👌🙂...Could you please provide me your complete series of Python learning from beginning to end 🙏
@snowkey7186
@snowkey7186 5 жыл бұрын
underrated yt channel
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@subhamsingh8143
@subhamsingh8143 Жыл бұрын
For user input we can use the split method: array=list(map(int,input().split())).
@anjaliagrahari1832
@anjaliagrahari1832 4 ай бұрын
Thanks a lot ma'am....
@ihdlbevkdgjekorjeci158
@ihdlbevkdgjekorjeci158 4 жыл бұрын
thank you 😁
@ManiKantamasteringtheknowledge
@ManiKantamasteringtheknowledge 2 жыл бұрын
Thank you Amulya ❤️ Love you help me to crack interview
@yashkumar5819
@yashkumar5819 3 жыл бұрын
Wow what a explanation
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@mananchawla4751
@mananchawla4751 4 жыл бұрын
Your 2nd for loop is running n-1 times ... so if I put an input in descending order it will give wrong output.... and if I run that loop n times, it works. Please tell me if I am anywhere wrong.
@mohdashraf7320
@mohdashraf7320 3 жыл бұрын
Nice explaination and awesome voice 😍😍 Thanks for making videos on python
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
It's my pleasure :)
@ankitshukla5800
@ankitshukla5800 5 жыл бұрын
Ma'am really a good videos thank you
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Welcome :)
@devansh234
@devansh234 4 жыл бұрын
Bohat sahi hai bhai
@himanishahriar5931
@himanishahriar5931 Жыл бұрын
Thanks
@ashwinkumarramaswamy9369
@ashwinkumarramaswamy9369 2 жыл бұрын
Awesome maam ! maam when will we get BFS algorithm in DS series ? 😍
@nagasatyaadigarla4642
@nagasatyaadigarla4642 3 жыл бұрын
Mam ur explanation was so nice it is easy to understand keep rocking like this mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot :)
@myounas7894
@myounas7894 5 жыл бұрын
very help full
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@nileshmandlik9662
@nileshmandlik9662 3 жыл бұрын
thank you
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure :)
@smiley3753
@smiley3753 5 жыл бұрын
Very good explaination..plz make a tutorial on matrix chain multiplication
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :) Sure :)
@shaikansarbasha4169
@shaikansarbasha4169 5 жыл бұрын
Excellent
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you:)
@ujjwalrastogi4531
@ujjwalrastogi4531 4 жыл бұрын
Awesome ma'am btw are u from south India?
@subhadipbhattacharyya29
@subhadipbhattacharyya29 4 жыл бұрын
can we break the for loop after the iteration in which no swap happened. That might reduce the execution for long list. Please let me know if I am getting it wrong way.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
You can try that :)
@pavan9215
@pavan9215 5 жыл бұрын
Par excellence
@keerthanaprabhu543
@keerthanaprabhu543 2 жыл бұрын
I have no idea why people have disliked the video. I don't have to repeat the video or search for another source to understand
@yaminipriya3742
@yaminipriya3742 4 жыл бұрын
thank you so much mam
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Most welcome 😊
@chanduarepalli2662
@chanduarepalli2662 4 жыл бұрын
What is the difference between Selection Sort and Bubble Sort ? In both sorting techniques we can do both ascending and descending.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Each and every sorting technique allow us to sort list of numbers in ascending as well as descending order, but each technique has its own way of sorting or working. we can say algorithm of each technique is different.
@umarsyed853
@umarsyed853 4 жыл бұрын
Best video
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@Wtf_Ahmad
@Wtf_Ahmad 4 жыл бұрын
Please tell me, how to show the status after any iteration like after 3rd iteration, 2nd iteration
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
w=1 list1 = [10,15,4,23,0] for j in range(len(list1)-1): print("iteration",w) w=w+1 for i in range(len(list1)-1): if list1[i]>list1[i+1] : list1[i], list1[i+1] = list1[i+1], list1[i] print(list1) else: print(list1) print() #w=w+1 print ("Sorted list is:") print(list1) :)
@yesdone4993
@yesdone4993 Жыл бұрын
How to think logic any program?
@umarsyed853
@umarsyed853 4 жыл бұрын
Please do the video regarding chapter wise of cbse
@sindhumadhyala5961
@sindhumadhyala5961 3 жыл бұрын
Hii sista...Will there be any different swapping Method??I mean by doing same code in while loop
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Yes you can use third variable to swap 😊 a=10 b=5 temp=a a=b b= temp
@PurushK
@PurushK 3 жыл бұрын
pls mention complexities and minimum number of swaps are required
@TheSouradeepShow
@TheSouradeepShow 3 жыл бұрын
You are just awesome, How old are you ?
@kasyapdharanikota8570
@kasyapdharanikota8570 3 жыл бұрын
Please make videos on algorithms in python
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
I will try :)
@snowkey7186
@snowkey7186 5 жыл бұрын
wow!!
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@gayatrichaudhari3821
@gayatrichaudhari3821 2 жыл бұрын
ValueError: invalid literal for int() with base 10: '4,3,2' how to solve this error? plz suggest me
@gayatrichaudhari3821
@gayatrichaudhari3821 2 жыл бұрын
ValueError: invalid literal for int() with base 10: '4 3 2 1' this error occurs when using this program plz...suggest me how solve this error
@sushilkumar-ef7gh
@sushilkumar-ef7gh 5 жыл бұрын
please upload quick sort algorithm as it is being asked in so many interviews...
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
I will do that asap:)
@sushilkumar-ef7gh
@sushilkumar-ef7gh 5 жыл бұрын
thanks.
@harikrishnants8545
@harikrishnants8545 4 жыл бұрын
Well Explained. What all changes are needed if we are writing this as a function. For reducing the iteration steps and to show all the swapping steps. def bubble_sort(n): for i in range(len(n)-1): if n[i]>n[i+1]: n[i],n[i+1]=n[i+1],n[i] bubble_sort(n) n=[100,120,900,400,800,10000000,12,1,6,300,21,10000] bubble_sort(n) print(n)
@sourabhchouhan5726
@sourabhchouhan5726 3 жыл бұрын
Mam, program is working extremely fine but any other reason for not using else in loop - only if condition we mentioned.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
else part is not needed here :)
@sourabhchouhan5726
@sourabhchouhan5726 3 жыл бұрын
@@AmulsAcademy Thanks mam
@JustVideoClub
@JustVideoClub 2 жыл бұрын
sort an array based on another array do this also mam pls
@favoritevideos7812
@favoritevideos7812 5 жыл бұрын
Plss..upload a video on insertion and merge sort
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Sure i will do soon :)
@shivangyadav7418
@shivangyadav7418 5 жыл бұрын
In bubble sorting compare starts from starting and this sorting is of insertion sorting
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Step 1 − If it is the first element, it is already sorted. return 1; Step 2 − Pick next element Step 3 − Compare with all elements in the sorted sub-list Step 4 − Shift all the elements in the sorted sub-list that is greater than the value to be sorted Step 5 − Insert the value Step 6 − Repeat until list is sorted Insertion sort algorithm :)
@dharanidharb6451
@dharanidharb6451 4 жыл бұрын
Upload the code in comment or description
@KrishnaManohar8021
@KrishnaManohar8021 10 ай бұрын
God will surely bless you 🙏
@yasinrehaman3947
@yasinrehaman3947 5 жыл бұрын
nice
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
Python Programming  - Insertion Sort Program | Beginners Tutorials
14:33
Amulya's Academy
Рет қаралды 78 М.
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 6 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️❤️ #roadto100million
00:20
Celine Dept
Рет қаралды 35 МЛН
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 2,6 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 20 МЛН
Unpacking Operators in Python: What are * and **?
12:35
NeuralNine
Рет қаралды 9 М.
Merge Sort in Python Programming | Program | Detailed Explanation
32:42
Amulya's Academy
Рет қаралды 95 М.
Bubble Sort Algorithm in Python Explained Visually (with Code)
11:44
Coding with Estefania
Рет қаралды 9 М.
Python Tutorials - Bubble Sort Algorithm | Example
11:55
Amulya's Academy
Рет қаралды 49 М.
Merge Sort In Python Explained (With Example And Code)
13:35
FelixTechTips
Рет қаралды 196 М.
10 Sorting Algorithms Easily Explained
10:48
Coding with Lewis
Рет қаралды 34 М.
Bubble Sort - Data Structures & Algorithms Tutorial Python #14
15:09
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 6 МЛН