You have not explained properly when it comes to pass=2, you did not explain how swapping took place to ultimately get the sorted values in pass = 2.. I wil not be able to code with your current explanation
EVERYONE WHO IS Still CONFUSED HERE IT IS IN A NUTSHELL: For the first pass (when n/2 =5), the first element is compared to the element ahead by five subscripts. This is done five times(So, for the second time for example, element 1 is used, and compared with the element 5 subscripts ahead of that, and so on).then after the swaps If they are necessary, it will start out at the zero index again for pass 2(5/2 is 2.5 of course there isn’t 2.5 gap of subscript just int part). The zero index and the index two subs ahead of that gets evaluated 8 times. Cause the amount of rounds in the pass in the for loop is determined by pass < total elements (10). Then the swaps are made here. Then the last pass is 2/2 = 1. 1 0; gap /= 2), forlooptwo(i = gap; i < n; i++), for loop three (j = i - gap; j > 0 && (s[j] > s[j+gap]) if so.... { do bubble sort shit but not with adjacent elements)
If you know insertion sorting then it will be easy to understand. Here at pass2, we are doing insertion sort with alternate elements i.e. gap = 2. I think you got it.
EVERYONE WHO IS Still CONFUSED HERE IT IS IN A NUTSHELL: For the first pass (when n/2 =5), the first element is compared to the element ahead by five subscripts. This is done five times.then after the swaps If they are necessary, it will start out at the zero index again for pass 2(5/2 is 2.5 of course there isn’t 2.5 gap of subscript just int part). The zero index and the index two subs ahead of that gets evaluated 8 times. Cause the amount of rounds in the pass is determined by pass < total elements (10). Then the swaps are made here. Then the last pass is 2/2 = 1. 1
Thank you sooo much dear, you are such a good learner, keep it up and create new video for all shorting, u solve my confusion about this short, thank you so much again
Just know what is floor and what is ceil If n is 7 then it becomes 3.5 right if you use floor then value is 3 if you use ceil then value is 4 that's it
You have not explained properly when it comes to pass=2, you did not explain how swapping took place to ultimately get the sorted values in pass = 2.. I wil not be able to code with your current explanation
insertion sort is used bro
Why the fuck we are using this shell sort, when we ultimately have to perform insertion sort at gap 1 that is original insertion sort
EVERYONE WHO IS Still CONFUSED HERE IT IS IN A NUTSHELL:
For the first pass (when n/2 =5), the first element is compared to the element ahead by five subscripts. This is done five times(So, for the second time for example, element 1 is used, and compared with the element 5 subscripts ahead of that, and so on).then after the swaps If they are necessary, it will start out at the zero index again for pass 2(5/2 is 2.5 of course there isn’t 2.5 gap of subscript just int part). The zero index and the index two subs ahead of that gets evaluated 8 times. Cause the amount of rounds in the pass in the for loop is determined by pass < total elements (10). Then the swaps are made here. Then the last pass is 2/2 = 1. 1 0; gap /= 2), forlooptwo(i = gap; i < n; i++), for loop three (j = i - gap; j > 0 && (s[j] > s[j+gap]) if so.... { do bubble sort shit but not with adjacent elements)
guh dam.... what?
Bahut Sochne ke baad ab lagta h Subscribe karna hi padega... Badi kaam ki chiz h aapke sabhi lecture 👌👌Kar diya Subscribe maine
Thank u so much ma'am really Thanks.. Samjh nai aaa raha thaa kisi ka b apka channel open kia clearify ho gaya 100%...
I think pass 2 is incorrect
I don't understand : for phase-2 red coloured(2nd iteration), why you compare all the elements at once unlike previous iteration(green)??
Thanks mam i have understand very easily when compared to other channels
very good and energetic explanation until the end of the viedo. thank you
❣
Thank you. You made it very simple. I got it.
Nice way to make someone understand...thanks a lot for the vedio
Why did you use "selection sort" in pass 2?
Anyway explanation is good 👍
Why Pass 1 pass 2 distinct very confusing😢 9:15
Pass 2 y we are comparing all values
5:19 mam after checking if one element remains in the list without pair what we want to do?🤔 Pls answer me mam...
Thanks awesome explanation
N=7/2 how to write the array
7/2=3.5 means 3
Thank you so much Mam
U taught really well
Mam you are so creative😍🙂
Very well explained thanks
Thank you so much.. I finally understand this hole concept thank you so much... Go bless u👍👍👏👏👏👏🙏🙏🙏🙏💟
hole concept 💀
@@_aka5h also go bless you💀
Thank you for this Worth class.. Keep going
the above algorithm is completely wrong
it doesn't work for the array = {21,7,15,94,36,58,23,7,11}
just do again the last passage with gap = 1
Thanks Ma'am
Welcome my child
@@ytg6663 😌
If the number of elements is odd ...means gap is 7 or 9
Great explanation mam... Keep it up..
Thank you so much Mam.
Thank you good explanantion
Amazing
Thank you mam
best explanation.
education4u.in/
Cleared my doubt easily..thanks
Thank you so much. You made it simple. Got it.
Wonderful explanation
what is floor in gap formula
Don't we need to swap in pass 2 ?
How would we solve for gap 3
pro tip- watch in 2x speed
Why
😂😂😂🤣🤣🤣
what if the N=11 then floor(11/2)=5.5 and should we take gap as 5 or 6 ?
Floor means to take least value ceil for max value
Pass2 need to explain more properly
exactly i didn''t understaand it
Yeah! with atleast one more example.
@@chamuchamu2550 it is easy dear
If you know insertion sorting then it will be easy to understand.
Here at pass2, we are doing insertion sort with alternate elements i.e. gap = 2.
I think you got it.
@@saqibbhat4328 nhi degi
Idk Why But i really enjoyed her saying „ok“ it was kinda cute haha
This is final ans is case 3 ?
Seriously amazing explanation!
In pass 2 you arranged from least to large why you have done that in pass 1 u said to change only the n elements with normal element
thankyou mam saved my sem
Thank you mam.....
You explained beautifully....
Thanks for your help...
mam you can make a video on shell sort code in c/c++
Jazak Allah Madam G.
Nice 👍👍👍 well explained
great explanation! Helps a lot!
Super mam explain heap Sorting please
ultimate, nantri akka....
replace 70 with 78 solve .The final answer will not be in a sorted order .
Nice video mam
very well explained!!
pass 2 doesnt make sense..its different from whats done in pass 1 and 3..similar to selection sort
You can also provides the notes which you write while explaining, in the description.
Mam plz explain radix sort
Thank you mam...... Explanation is very good
In pass 2 from where 80 comes
Super explanation thank you plz mention the best case sorting the list...
in pass 2 you seems to be confused
So
Mam your explaining method is very easy to absorb it thank u mam,
It is wrong process.
Very well explained ma'am thank you ♥️
are used to *sort the data.
thank you miss
Thank u so much it was so helpful 😄
Thanku
Thank youuu!
thanku mam
nice explaination4
You took a big short cut in middle of the video, but good video after all
EVERYONE WHO IS Still CONFUSED HERE IT IS IN A NUTSHELL:
For the first pass (when n/2 =5), the first element is compared to the element ahead by five subscripts. This is done five times.then after the swaps If they are necessary, it will start out at the zero index again for pass 2(5/2 is 2.5 of course there isn’t 2.5 gap of subscript just int part). The zero index and the index two subs ahead of that gets evaluated 8 times. Cause the amount of rounds in the pass is determined by pass < total elements (10). Then the swaps are made here. Then the last pass is 2/2 = 1. 1
Thank you sooo much dear, you are such a good learner, keep it up and create new video for all shorting, u solve my confusion about this short, thank you so much again
Short oh yea.... Haha, learn English before learning how to code
Thanku Ma'am
i'm sorry but how if the N is odd?
thats why she says gap = FLOOR(n/2)..
Thanks sister
pass 2 is confusing.....
understood
thanks priya ...
I understood well
Thx sister
Thank u
Welcome back 😁
Maam aap ne algo nahi btai
Pass 2 is wrong
👌👌
Radix sort and shell sort is same or different mam
different
Tq mam
mam are u phd? or Mphil
wish you were my teacher!
Waste of time seriously
Nic
if you would be near me .. i would gift you a chocolate.. thankss... very nice explaination
226k views for what ? Above algorithm is wrong. Viewers please watch other videos. She is misleading
no clarity in explaination.
It is wrong...
1 2 3 4 5 sayy with me
What if N is a odd number....???..
Anyone..🤔
Just know what is floor and what is ceil
If n is 7 then it becomes 3.5 right if you use floor then value is 3 if you use ceil then value is 4 that's it
For latest lyrics goto www.baebom.com
Mam you explained wrong
its wrong u should remove this video
same old classroom teaching. Face palm.
i think pass 2 is incorrect