No need to go till end again and again. In the inner loop, the condition should be i
@jamesqiu6715
7 жыл бұрын
inner loop index should end when: i < n-p-1
@vivekanandkhyade
7 жыл бұрын
Hii James , your input always helps me to improve. Thanks a lot bro. I will solve 2 examples with i < n-p-1 for bubble sort and let you know my opinion. I am getting what u r implying...so i will solve some examples with that condition so that we can be sure about it..!
@MyLifeMyWorld08
6 жыл бұрын
@@vivekanandkhyade i
@kalyanachakravarthi2736
4 жыл бұрын
Does this reduce the time while executing the code
@SmartProgramming
6 жыл бұрын
good explanation sir, thank you so much 👍👍
@kavitadas2695
5 жыл бұрын
Your explanation techniques are awesome
@usamaalioffical
6 жыл бұрын
Bro u deserve Million Subscribers...Such a Great Explanation
@stefanioan7569
4 жыл бұрын
Hello Sir, Big fan of your work. I didn't check the source code on github, but the swap(i, i+1) wasn't supposed to be swap(a[i], a[i+1]), because we're supposed to swap the values at certain index, not the index, right?
@ankit1703
5 жыл бұрын
You mentioned with each comparison with other element it is called bubble sort (that drawing) but the actual answer is after each iteration the lighter element comes to top as bubble eg: water bubble coming water on top. Please refer any other video or any foreign author. The name in the algorithm only mentions "BUBBLE", i hope you got it. Kindly change.
@duncanphillipgreen
6 жыл бұрын
Another brilliant explanation. I thought it was called a bubble sort because larger (or smaller) values rise to the "top" of the array like bubbles rising in a column of water. Either way, with O(n^2) it's not very useful.
@javerianasir8500
7 жыл бұрын
Wonderful explanation of all the videos watched so far. Can you please post few videos on explaining doubly linkedList(Insert, delete, search, reverse)
@nimitvanawat2387
5 жыл бұрын
Great lectures sir keep it up ,it's helping me a lot
@vaibhavilohani3421
3 жыл бұрын
Is it swap (A [i],A [i+1]) instead?
@RidiculousTech
4 жыл бұрын
We can also reverse the array after the last step to sort in descending order
@mrgarg9664
5 жыл бұрын
Sir my engineering student Friend suggest me your video nice explanation thanku very much
@aragawabraraw8672
5 жыл бұрын
u are genius teacher ,thank u for your video!!andie habesha
@vaibhavilohani3421
3 жыл бұрын
Thank you sir
@volkanomsun7115
4 жыл бұрын
Superb explanation
@Asanjeevkapoor
6 жыл бұрын
Kindly make vedio on Ford fulkerson algorithm for max flow
@josilabhantoa7813
6 жыл бұрын
Very nice explanation sir thank you. The code you listed at the right is it the pseudo code?
@kalyanachakravarthi2736
4 жыл бұрын
Sir i have one doubt, if you are setting pass initially from 0, then in the diagram it should be starting from pass 0, but you wrote it from pass 1, my doubt is should we start from pass 1, or pass 0
@bnzalam3539
6 жыл бұрын
Thanks.. Its amazing to understand
@מריהשקורו
6 жыл бұрын
i like yours videos very much!
@pythontutorial4703
4 жыл бұрын
Well Explained Sir...
@misterteluguabbayi9625
5 жыл бұрын
Please upload concepts and program on java
@rushikeshkarande6179
5 жыл бұрын
Sir Plz make video on Quick Sort..!
@kingdavid5796
Жыл бұрын
you're the best
@45_ritiksharma32
4 жыл бұрын
Upload more vidio on data structure
@abdulsaburabubakarsaidu4011
4 жыл бұрын
Pls what if we have negative values among
@vanajadaliparti4499
5 жыл бұрын
Sir can u plz tell quick sort algorithm
@neharenge2640
6 жыл бұрын
Sir aapne Jo pass ka forloop Liya h na vahapy pass equal to zero kyu Liya h ,ye explain karo na plz, vaha py pass=1 Liya tuo chalega kya aap pass tuo 1 se iteration karaheho .thodasa confusion hora .
@HarishHarish-zm2zj
5 жыл бұрын
Well explained sir
@vgandavadi
6 жыл бұрын
insertion sorting example plz
@fahadnaem4842
5 жыл бұрын
it would have been more easier to understand if you used (i+1) as j.
@pramodpaithankar7736
5 жыл бұрын
thanks sir
@pularirecipe9241
6 жыл бұрын
sir will yo explain the complexities of algm
@pedrocaetano5799
6 жыл бұрын
Good explanation.
@shoniyasen6141
6 жыл бұрын
good explanation
@tyabali9178
6 жыл бұрын
Sir program bi krwa kry phr bi sumja a jati hai ap dryrun sumja dyty hai.
@neuroneun
6 жыл бұрын
inner loop should start at i = p
@rahulkhandelwal46578
6 жыл бұрын
no, you are wrong, we have to always start the inner loop always by zero. Just think, you will get your point.just run your logic on this array [6,8,5,4]. Ist iteration 8 will be at an end but in the IInd iteration if you go with i=p so 6 will remain at the 1st place that is why the inner loop always starts with zero.
@surajbahuguna6559
6 жыл бұрын
ThAnk uu sir
@rishhii_0755
5 жыл бұрын
its confuse to understand
@foryou786
7 жыл бұрын
sir what do you mean by swap
@shifanoor4344
6 жыл бұрын
chnage the position of big value with small value ascending order
@BullSit482
6 жыл бұрын
nice :)
@pularirecipe9241
6 жыл бұрын
wow superclasd
@ABHAYKUMAR-fr8lm
5 жыл бұрын
Thanx sir
@hassanshahabz8724
5 жыл бұрын
V.gud vudeos
@comradestudent2747
4 жыл бұрын
I think ur teacher
@volkanomsun7115
4 жыл бұрын
Who disliked it 😡😡😡
@harrajsingh5607
5 жыл бұрын
You should HELLO FRIENDS CHAI PELO at start because your lecture is too boring and laggy 😪😪
Пікірлер: 53