Python Tutorials - Bubble Sort Program

  Рет қаралды 99,358

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 Ай бұрын
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
@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.
@SuperKapil1981
@SuperKapil1981 2 жыл бұрын
आपके जैसी वीडियोस एक्सप्लेनेशन किसी के नहीं देखे कुछ और सिंपल सी ,सी प्लस प्लस में जैसे प्रोग्राम करवाते थे वैसे पाइथन के बनाये क्योंकि राजस्थान बोर्ड में पहली बार पाइथन प्रोग्रामिंग लैंग्वेज लगी है 11th एंड 12th में
@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! :)
@prasadshete781
@prasadshete781 2 жыл бұрын
Wow , you have explain it in simple way and in-depth . Thank you sooo much .
@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 :)
@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.
@deutschnacharabischemgeschmack
@deutschnacharabischemgeschmack Жыл бұрын
Best explanation so far on bubble sort. God bless you. Thanks
@TheTeenKitchen
@TheTeenKitchen 4 жыл бұрын
Thank you so much mam... tomorrow is my practical exam and I luckily found this one...😊😊😊
@riyajadon9794
@riyajadon9794 4 жыл бұрын
Amazing explanation and pls make more videos on different algorithms in python like greedy algo, BFS, DFS etc
@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 :)
@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! :)
@sagarrajkumargupta5168
@sagarrajkumargupta5168 2 жыл бұрын
your teaching way very efficient. Thank you for this video. You give your best while teaching any topic.
@jayasreenelluri7029
@jayasreenelluri7029 4 жыл бұрын
Ur amazing and ur teaching was excellent keep going and make more videos ......☆☆☆☆☆
@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!
@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 :)
@darshanshinde514
@darshanshinde514 Жыл бұрын
Your all videos are very much helpful and you make it look simple 😊😊😊
@mohittrivedi1112
@mohittrivedi1112 3 жыл бұрын
seriously the quality of knowledge i get is far better any other video
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@asifsiddique7543
@asifsiddique7543 4 жыл бұрын
Masha Allah!!! incredible depth of knowledge ...stunning ability to teach ...10 out of 10
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@Kia780
@Kia780 4 жыл бұрын
This is freaking great. Thank you very very very much!
@chandramouli5469
@chandramouli5469 4 жыл бұрын
Great work, keep going !!!
@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 !!! 👏👏👏👏👏
@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 🙏
@mulasnehapriyanka447
@mulasnehapriyanka447 Жыл бұрын
Flawless explanation mam thanks a ton for your crystal clear explanation
@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.. 😍😍😍😍
@Shashikantyadav-tm9ix
@Shashikantyadav-tm9ix 4 жыл бұрын
I have seen many tutorial but not understood. This vedio really amazing to understand.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@019-karpagams2
@019-karpagams2 Жыл бұрын
You are a great teacher madam ,we need more of your videos!!!!
@premavathy2340
@premavathy2340 3 жыл бұрын
There is no word to explain. Suuuuuperb mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
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
@azarudeena6467
@azarudeena6467 10 ай бұрын
such a great explaination
@yayanguyen7991
@yayanguyen7991 Жыл бұрын
Very great explanation.
@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.
@adityagarkoti2066
@adityagarkoti2066 3 жыл бұрын
No words😳.....Thanks a lottttt buddy and plzz keep on uploading so that it can help USS😅 to understand programing
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you, I will :)
@surajagasti2309
@surajagasti2309 3 жыл бұрын
your explanation is smooth and steady
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@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
@subhamsingh8143
@subhamsingh8143 Жыл бұрын
For user input we can use the split method: array=list(map(int,input().split())).
@nathankimutai8135
@nathankimutai8135 4 жыл бұрын
Your explanation is very clear.....I like your video
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@pgkgaming4229
@pgkgaming4229 8 күн бұрын
Osm explanation ❤❤❤
@mulekondareddy933
@mulekondareddy933 2 жыл бұрын
You killed it.
@mohammadpervezhussain5742
@mohammadpervezhussain5742 3 жыл бұрын
Mam really explained very well..I enjoyed writing program's
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot :)
@shahmeerjutt2868
@shahmeerjutt2868 4 жыл бұрын
You're doing great. Mam' ,V well explained.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@iabhishek1984
@iabhishek1984 4 жыл бұрын
you are wonderful!!
@jvnganesh4943
@jvnganesh4943 4 жыл бұрын
Well explained
@mulekondareddy933
@mulekondareddy933 2 жыл бұрын
Thanks a lot
@SaifKhan-wm9db
@SaifKhan-wm9db 2 жыл бұрын
easily understandable thank you so much
@AmulsAcademy
@AmulsAcademy 2 жыл бұрын
Pleasure 😊
@alfonsodejesusbarbozameza8229
@alfonsodejesusbarbozameza8229 Жыл бұрын
thank you very much
@Playstore-zc5xk
@Playstore-zc5xk 3 жыл бұрын
I love your explanation mam. You are more than awesome
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot 😊
@pravinmetkari2560
@pravinmetkari2560 4 жыл бұрын
Best explanation ever.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@imranhossain4649
@imranhossain4649 3 жыл бұрын
Amazing ...... Wow fantastic ....Thanks & Love u ....
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Most welcome 😊
@mohdashraf7320
@mohdashraf7320 3 жыл бұрын
Nice explaination and awesome voice 😍😍 Thanks for making videos on python
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
It's my pleasure :)
@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 :)
@dipan246
@dipan246 3 жыл бұрын
Very nice. Thank you.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
My Pleasure :)
@ZinduZatism
@ZinduZatism 4 жыл бұрын
best teacher in the universe thank you
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@anjaliagrahari1832
@anjaliagrahari1832 3 ай бұрын
Thanks a lot ma'am....
@ramilxelilli1197
@ramilxelilli1197 5 жыл бұрын
thank you for good explanation
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
My Pleasure :)
@gowthamsenthilkumaran7617
@gowthamsenthilkumaran7617 3 жыл бұрын
Really awesome great video.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks for the visit :)
@ihdlbevkdgjekorjeci158
@ihdlbevkdgjekorjeci158 4 жыл бұрын
thank you 😁
@shreyashetty9202
@shreyashetty9202 4 жыл бұрын
best and amazing explanation
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thanks a lot :)
@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
@snehamotapothula2360
@snehamotapothula2360 3 жыл бұрын
Really good explanation
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@himanishahriar5931
@himanishahriar5931 Жыл бұрын
Thanks
@ManiKantamasteringtheknowledge
@ManiKantamasteringtheknowledge 2 жыл бұрын
Thank you Amulya ❤️ Love you help me to crack interview
@ashwinkumarramaswamy9369
@ashwinkumarramaswamy9369 2 жыл бұрын
Awesome maam ! maam when will we get BFS algorithm in DS series ? 😍
@smiley3753
@smiley3753 5 жыл бұрын
Very good explaination..plz make a tutorial on matrix chain multiplication
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :) Sure :)
@ujjwalrastogi4531
@ujjwalrastogi4531 4 жыл бұрын
Awesome ma'am btw are u from south India?
@myounas7894
@myounas7894 5 жыл бұрын
very help full
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@poseidon5602
@poseidon5602 2 жыл бұрын
Very Cool!!👍👍
@AmulsAcademy
@AmulsAcademy 2 жыл бұрын
Thank you 😊
@devansh234
@devansh234 4 жыл бұрын
Bohat sahi hai bhai
@umarsyed853
@umarsyed853 4 жыл бұрын
Please do the video regarding chapter wise of cbse
@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 :)
@snowkey7186
@snowkey7186 5 жыл бұрын
underrated yt channel
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@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.
@shaikansarbasha4169
@shaikansarbasha4169 5 жыл бұрын
Excellent
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you:)
@ankitshukla5800
@ankitshukla5800 5 жыл бұрын
Ma'am really a good videos thank you
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Welcome :)
@harikrishnants8545
@harikrishnants8545 3 жыл бұрын
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)
@nileshmandlik9662
@nileshmandlik9662 3 жыл бұрын
thank you
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure :)
@PurushK
@PurushK 3 жыл бұрын
pls mention complexities and minimum number of swaps are required
@yashkumar5819
@yashkumar5819 3 жыл бұрын
Wow what a explanation
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@gayatrichaudhari3821
@gayatrichaudhari3821 2 жыл бұрын
ValueError: invalid literal for int() with base 10: '4,3,2' how to solve this error? plz suggest me
@yesdone4993
@yesdone4993 Жыл бұрын
How to think logic any program?
@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
@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
@Prakash_M_Agri
@Prakash_M_Agri 2 жыл бұрын
In python programming List=[130,180,120,80,60] Output: Height order of students before sorting: 130 180 120 80 60 Height order of students after iteration 1 130 120 80 60 180 Height order of students after iteration 2 120 80 60 130 180 Height order of students after iteration 3 80 60 120 130 180 Height order of students after iteration 4 60 80 120 130 180 Final sorting of students in a bench are: 60 80 120 130 180 Please reply and solve this problem mam
@yaminipriya3742
@yaminipriya3742 3 жыл бұрын
thank you so much mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Most welcome 😊
@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.
@pavan9215
@pavan9215 5 жыл бұрын
Par excellence
@dharanidharb6451
@dharanidharb6451 4 жыл бұрын
Upload the code in comment or description
@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
@TheSouradeepShow
@TheSouradeepShow 3 жыл бұрын
You are just awesome, How old are you ?
@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 :)
@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) :)
@kasyapdharanikota8570
@kasyapdharanikota8570 3 жыл бұрын
Please make videos on algorithms in python
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
I will try :)
@yasinrehaman3947
@yasinrehaman3947 5 жыл бұрын
nice
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@snowkey7186
@snowkey7186 5 жыл бұрын
wow!!
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
Python Tutorials - Bubble Sort Algorithm | Example
11:55
Amulya's Academy
Рет қаралды 48 М.
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 1,9 МЛН
Маленькая и средняя фанта
00:56
Multi DO Smile Russian
Рет қаралды 4,4 МЛН
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 98 МЛН
Bubble Sort Algorithm in Python Explained Visually (with Code)
11:44
Coding with Estefania
Рет қаралды 9 М.
40 - BUBBLE SORT WITH EXAMPLE
24:47
Sundeep Saradhi Kanthety
Рет қаралды 348 М.
Python Program #37 - Sort Numbers using Bubble Sort in Python
9:25
Programming For Beginners
Рет қаралды 1,7 М.
Python Tutorial - Prime Numbers | Printing Prime Numbers in Given Interval
18:33
Selection Sort | C++ Example
9:49
Portfolio Courses
Рет қаралды 22 М.
Python Programs - Factorial Program Using Recursion
18:08
Amulya's Academy
Рет қаралды 72 М.
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 1,9 МЛН