Тёмный

Algorithms | Sorting Techniques | Merge sort algorithm, analysis and problems | Ravindrababu Ravula 

Ravindrababu Ravula
Подписаться 679 тыс.
Просмотров 528 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 338   
@rituparnachakraborty6480
@rituparnachakraborty6480 3 года назад
I am in love with his teachings..!!! way too good...!!!!! Simplifies anything and everything..!!! Thank God you were born Sir..!!!! This world needed you so much. Students like us who want to understand but can't find a proper tutorial anywhere need you so much..!!!! We want to learn..!!! Thank you very very much Sir...!!!!
@ajinkyakirkire6561
@ajinkyakirkire6561 3 года назад
Best explanation of Merge Algorithm using recursion
@shaikzillani6106
@shaikzillani6106 4 года назад
The best video on internet, explaining merge sort !
@akstyle6012
@akstyle6012 9 лет назад
Well I have watched about may be 10 videos and all of them are awesome! And he puts all this efforts for free. This man deserves a salute.
@akstyle6012
@akstyle6012 9 лет назад
ak style forgot to mention he's a genuis
@jaisamdariya4307
@jaisamdariya4307 7 лет назад
He has uploaded these for free so u can buy his full course which is worth 28k !
@rachitchhabra9578
@rachitchhabra9578 7 лет назад
40K
@initiator0016
@initiator0016 6 лет назад
@@jaisamdariya4307 43k now
@uchchwasdas2675
@uchchwasdas2675 4 года назад
agree
@chulbuli_titli
@chulbuli_titli 4 года назад
Dude, the clarity is amazing.
@vinaygade2644
@vinaygade2644 9 лет назад
the best lecture for very complicated merge sort !!! Really awesome!!!
@parkhisharma5969
@parkhisharma5969 9 лет назад
can we have lectures , explaining counting sort radix and bucket sorts plzz??and also some questiond on iteration method of solving recurrence in algorithms?
@arghyac35
@arghyac35 7 лет назад
Very very helpful..thank you very much....
@bhawnakukreja1859
@bhawnakukreja1859 7 лет назад
u are too awesome sir ....thanks a lot
@vramali1
@vramali1 8 лет назад
Fantastic Video !!!
@sagarsoni8779
@sagarsoni8779 6 лет назад
sir please make more videos about computer algorithm
@lovelychatterjee9061
@lovelychatterjee9061 7 лет назад
it helped me ....sir...thnku sir...
@saikumartankala7884
@saikumartankala7884 5 лет назад
Thank you very much sir
@lokotek7676
@lokotek7676 8 лет назад
at 14:40 what if the sequence is 10 20 40 30 ????
@renjithkurup9874
@renjithkurup9874 9 лет назад
it need to be L[1...n1+1] ?
@grajeshbharadwaj
@grajeshbharadwaj 5 лет назад
yes for storing the infinite.
@ravindrabose4294
@ravindrabose4294 6 лет назад
very good lecture but can some1 tell me the meaning of n1=q-p+1 and n2=r-q..plz its urgent
@biswarupchakraborty5608
@biswarupchakraborty5608 6 лет назад
ravindra bose n1 indicates the left sub array while n2 indicates the right sub array
@emanoelbarreiros
@emanoelbarreiros 7 лет назад
Great content! Helped me find a better way to teach the subject to my students.
@laxmibaid7149
@laxmibaid7149 8 лет назад
this is like playing god.. i am pretty sure there no other video on the freaking internet that could explain it better!!
@karanveersingh9634
@karanveersingh9634 8 лет назад
I am searching merge sort and watch more than a dozen of videos from last week but I stop here and this is so amazing to understand ,even IIT ,MIT lectures are not that much precise.
@sdsir7263
@sdsir7263 7 лет назад
Laxmi Baid don't say God as creatures can't be God
@hackzyoboy2459
@hackzyoboy2459 5 лет назад
Go for mycodeschool. He explained better than RB
@madhoshyagnik3679
@madhoshyagnik3679 4 года назад
@@sdsir7263 oh! Rush me to the burn unit.....😂😂😂
@gaurav210
@gaurav210 7 месяцев назад
@@hackzyoboy2459 he did not go this much into the detailing
@yaish9547
@yaish9547 7 лет назад
top class ! Why can't the professors in college be like him?
@etomndong9948
@etomndong9948 7 лет назад
Good question bruh. Respects for this man
@kman2394
@kman2394 7 лет назад
cause they don't really care
@patelfahad8319
@patelfahad8319 7 лет назад
Yaish Ahmad bcz they are not gate AIR 1 as Ravindra sir
@ashishnegi3848
@ashishnegi3848 7 лет назад
rank 37 he is
@yatharth_er
@yatharth_er 6 лет назад
unko itna nahi aata jitna sir ko atta hai
@Rohitbhole1
@Rohitbhole1 7 лет назад
Finally, someone I can call "sir" without hesitating..
@gokulbaby
@gokulbaby 6 лет назад
Sir,why is the time taken in the list of size n/logn=O(nloglogn) and in the string case=O(n^2logn)...I mean isn’t it still loglogn climbings again?
@akshaykadam4692
@akshaykadam4692 5 лет назад
i'm damn sure that you will never find a better explanation than this on the internet for this particular algorithm.. thank you so much sir
@joelfrancis717
@joelfrancis717 6 лет назад
He manages to explain algorithms, recursion and big O notation perfectly with this one video! Excellent!
@13Uzamakifan
@13Uzamakifan 7 лет назад
instead of adding a large enough number at the end of the left and right lists respectively, wouldn't it be better to add a conditional that says if one of the pointers reaches the index of the size of the list -1, then just copy the remainder of the other list from its pointer and add it to the main list?
@gumulurialekhya181
@gumulurialekhya181 3 года назад
What an explanation sir🙇🙇no one literally no one can't explain like this😎😎 tq u very muchh.....
@EalhamAlMusabbir
@EalhamAlMusabbir 8 лет назад
Thank u so much for this video sir.... :D I used to get bored watching tutorials made by others on Merge Sort.... But, your tutorials are just great as usual.... Thanks a lot for the effort sir.... Thank u so much... :D
@RAHULKUMAR-wj7cm
@RAHULKUMAR-wj7cm 7 лет назад
"Beauty of teaching" is what you just showed in your videos !!!! So glad to learn from here.
@granceroblast
@granceroblast 9 лет назад
This is awesome!! Please upload more lectures on Algorithms!
@spyrakoslal5251
@spyrakoslal5251 9 лет назад
he's a great professor :)
@swethag3990
@swethag3990 6 лет назад
Sir super explanation sir . It is very easy to understand👏👏👌👌👌
@akashghosh4766
@akashghosh4766 8 лет назад
beautiful,how can a teacher be so fabulous?
@josevignesh9768
@josevignesh9768 8 лет назад
Really Good explanation. The way he explain is really great, he is giving nice example, with a example he is solving the algorithm. Great sir.
@arul2897
@arul2897 7 лет назад
Sir, when u started the example part.. U said log 2=1 that is possible only when log has a Base=2... So how do we decide the Base of log?
@karanveersingh9634
@karanveersingh9634 8 лет назад
excellent and very precise tutorial ,thank you sir.
@macjc5211
@macjc5211 10 лет назад
Hi Ravindra, I checked your lecture and I found that you have mentioned (15:50 second of the lecture) that the merge sort space complexity will not remain Big O (n) in case of: If we have "N" numbers to sort in "N" space., Please note that if we ll use While loop Instead of For loop then it ll not effect its space complexity and also we don't have to worry about Infinity concept. Please correct it. Thanks
@saptarshibanerjee4757
@saptarshibanerjee4757 7 лет назад
Ravindra you are one of the best teachers out there! upload more videos and make students of india more knowledgable!!
@ssharma5127
@ssharma5127 5 лет назад
At 34:28 sir is saying we can declare a global array of size n but for input size of n we will need n+2 spaces (two extra one one for placing infinity), then why sir said its n size
@premtokala5818
@premtokala5818 5 лет назад
No only one infinity space coz only one global array have one infinity at end (to copy rest of elements from both list to be one list)and even one list have one infinity at end.
@mdirfankhan3554
@mdirfankhan3554 5 лет назад
Hello sir,I had watched this vedio of merge sort algorithm.Your teaching style is awesome.But one doubt arises in my mind and that is can a merge algorithm which is heart of merge sort algorithm is applied on two way merging which you have done in questions you have solved in the last few minutes of this vedio.It is because in merge algorithm there should be an array which is a combination of two sorted list and then we seperate them in two different list and then we merge them in sorted form in the same array.And in two way merging we just simple merge the two -two sorted list which is totally different from merge algorithm concept.I kindly requesting you to clear my doubt.
@vinayshukla6316
@vinayshukla6316 3 года назад
Best explanation of merger sort you can find on RU-vid. I already go throguh 2-3 videos today of merger sort but still didn't get how the mergeSort recursion is working. But now I am all clear.
@sonali9696
@sonali9696 9 лет назад
Your lectures are so much better than even d MIT lectures!! Seriously,amazing! :O You go into details which is what is truly needed to get a good grasp over the topic.MIT just skims through the topic and jumps to advanced analysis !
@MoutasemMohammad
@MoutasemMohammad 7 лет назад
you've never went to MIT obviously , skimming is only on OCW
@sonali9696
@sonali9696 7 лет назад
Of course I haven't went to MIT. But I could solve more questions after doing these lectures rather than doing those lectures. Everyone has their own preferences
@BrajeshKumar-ez8zs
@BrajeshKumar-ez8zs 6 лет назад
vishnu priyan you are just showing that you have a brain which is worse than my shit. RB himselfs says that he is lectures are made for gate... And is not wholesome. He goes below at ur level so dumbass like u can understand.. If you can not understand anything from mit's lecture.. Bcos they assume u know the base.. Nd they don't waste time. Now if ur brain is full of shit... It's your fault
@BrajeshKumar-ez8zs
@BrajeshKumar-ez8zs 6 лет назад
vishnu priyan see.. I said you have shit in ur brain. And it stinks too like ur comment. The professors whom you are able to see becos of a noble initiative are far beyond ur reach. Not every one can be a part of ivy league. Respect them. Their hardwork. If u feel u r not getting it.. It bcos ur brain has dark yellow metter (not grey).and don't worry about me if I don't know anything i'll learn it if it is neccesary.
@Confusedalien1133
@Confusedalien1133 6 лет назад
Brajesh Kumar your dna* learn English first you dumb fuck
@sushmitanigam5787
@sushmitanigam5787 10 лет назад
superb lecture and awesome teaching..i understood merge sort completely. u are the best teacher sir i am your fan now... plz plz upload more such lectures
@ramendernegi9789
@ramendernegi9789 4 года назад
Yes
@BrewingHappinessrocks
@BrewingHappinessrocks 8 лет назад
sir I wanted to ask you one thing ..like we are using recursion so first time our mid value came to be 3 which is fine then again tht same function will call itself till p becomes less than q but in this way thn how it's going to next step ..loop will break when condition becomes false ..so how will the same function works for other half ?
@mohithjagalmohan
@mohithjagalmohan 4 года назад
For the question on sorting n strings of size n in lexicographical order, the time taken could be tightened to O(n^2) instead of O(n^2 log(n)) as he said. Just use the recurrence T(n) = T(n/2) + O(n^2) and apply masters theorem.
@naasifn
@naasifn 4 года назад
You deserve a Nobel Prize man!
@shashwattrivedi9940
@shashwattrivedi9940 7 лет назад
sir you are awesome your videos proved to be very useful in acquainting the in depth knowledge in toc and data structures thanks a lot for uploading such precise videos
@radekfriedl1646
@radekfriedl1646 8 лет назад
Great explanation, thanks.
@jibinbaby7117
@jibinbaby7117 4 года назад
This is the right course which i was looking for.. no course explained the traversal... thannk you sir
@binaygupta5915
@binaygupta5915 6 лет назад
its a request. can u please make available your videos on data structure and programming in C on youtube.
@robertsan529
@robertsan529 8 лет назад
Dude! You're awesome!
@surana129
@surana129 9 лет назад
Salute you sir. After 15 days effort i was able to understand the merge sort. If i get your lecture 14 days before i would be able to understand it in one day . Thank you
@karanveersingh9634
@karanveersingh9634 8 лет назад
same here
@mysecretuser
@mysecretuser 8 лет назад
Hats off sir. Please add videos about Graphs and its complexity
@gauravgogoinitsilchar4146
@gauravgogoinitsilchar4146 4 года назад
Teachers should be like this man! others' use similarly you will get but it makes things complicated
@rajkuma1073
@rajkuma1073 7 лет назад
i am in 12th still i understand it. Only because of him...
@BrewingHappinessrocks
@BrewingHappinessrocks 8 лет назад
sir hats off to you...thank you for such great efforts of yours :) u are such an amazing teacher
@akhilpalem3917
@akhilpalem3917 7 лет назад
i have seen few other videos as well for merge sort technique, but i didn't see any clear detailed explanation of the process like this, thanks a lot !!!
@ronnybanerjee6020
@ronnybanerjee6020 8 лет назад
Great video sir!! I'm studying CS in 3rd year and had a problem analyzing time complexities. But your video was very clear and to the point for understanding the matter...only one question: Will merge sort happen if the array were of an unequal size? Like there were 5 elements in there...9,7,1,3,5..like this???
@laxmibaid7149
@laxmibaid7149 8 лет назад
yes it will, the arrays will be divided into 3 and 2 elements, try making the recurrence tree, it will be more clear.
@ronnybanerjee6020
@ronnybanerjee6020 8 лет назад
well....thank u!!
@sangeetjoy3772
@sangeetjoy3772 9 лет назад
very smart lesson..if u give the "source code" also then it would be a complete package....
@pratikaagnihotri2346
@pratikaagnihotri2346 6 лет назад
what a deep explanation !!! this has cleared all my basics....
@himanshuparmar1719
@himanshuparmar1719 8 лет назад
Sir....you have great teaching skills...Please make videos on Graph, DP, Binary search, Bit manipulation etc..
@atkuriajaykumar3701
@atkuriajaykumar3701 4 года назад
He already made them you need to buy the course from his website
@tanyasrivastava8719
@tanyasrivastava8719 6 лет назад
in the two sorted lists we create, how to assign infinity to the last elements of the array?
@nandasarathy5970
@nandasarathy5970 8 лет назад
Tell me if I'm wrong. The time complexity for merge sort is: O(total number of elements to be sorted * height of the tree) Height of the tree will be log of number of lists to be sorted. First problem: Number of elements = n. Total number of lists to be sorted = n, therefore the height of the tree is log(n) => O(n* log n) Second problem: Number of elements = n. Number of lists to be sorted = log n. Height = log(log n) => O(n* log log n) Third problem: Number of elements = n*n Number of lists (strings) = n. Height = log n => O(n^2 log n)
@sunnyrathi5264
@sunnyrathi5264 8 лет назад
ya u r right
@BabitaKumari-gy9io
@BabitaKumari-gy9io 6 лет назад
Nimmala Divya as the arrays are already sorted. what if the arrays are not sorted
@SHIVAML987
@SHIVAML987 6 лет назад
bro thats equal to O(nlogn)
@Gigglezonee
@Gigglezonee 7 лет назад
ur teaching is so beautiful that I never forget. .thk fr such gud video. .u deserve 👏👏👏👏
@jahirulislammonir3490
@jahirulislammonir3490 8 лет назад
Great work u have done.. keep going on..
@r.sundarraj9722
@r.sundarraj9722 6 лет назад
Great to see ur lectures in a well defined manner. We (Me and my friend Gopi) were really impressed! All the Best for ur future plans.........
@prasannaganesh5225
@prasannaganesh5225 8 лет назад
Excellent tutorial and worth of time:). It will be great if you can provide a sample program on each sorting algorithm using Java
@asaadmaher1828
@asaadmaher1828 8 лет назад
you could find them online.
@rupeshchoudhary9237
@rupeshchoudhary9237 4 года назад
You are amazing teacher. I love your lectures even though i am not from Computer science background
@nitinnindane9775
@nitinnindane9775 6 лет назад
Sir you have assigned last element of array L & R with infinity how to do it while programming in c
@MultiHarsh111
@MultiHarsh111 8 лет назад
All of your tutorials are very nice. Is there anything on Dynamic Programming?
@rheanandan3164
@rheanandan3164 6 лет назад
Sir,please upload a video on other concepts like Greedy algorithm n its implementation and also on heap using priority queue...it wud be very helpful of u sir ,thank u:)
@crystaldoll22
@crystaldoll22 5 лет назад
i searched and watched alllll videos..but this video is justttt perfect
@prashantaacharjee3910
@prashantaacharjee3910 9 лет назад
videos like these should at least reach 1 lakh views.best video on merge sort found on internet
@sulaimanhussain2974
@sulaimanhussain2974 7 лет назад
excellent tut.....help me a lot. sir.what is the best book for algorithms.
@bradparker3150
@bradparker3150 9 лет назад
You are a talented instructor ! Thanks
@vamsikrishna3634
@vamsikrishna3634 5 лет назад
You explanation is simply awesome everyone can understood easily
@ummehany1849
@ummehany1849 9 лет назад
in problem of n/logn the climbing you said loglogn but in the problem of n elements in n sorted list you said we have to cross logn level... I am confused.Would you plzzz explain it?
@anuammu6388
@anuammu6388 8 лет назад
+umme hany i also got the same doubt.. did you get clarified?
@ummehany1849
@ummehany1849 8 лет назад
not yet
@momsdaughter1419
@momsdaughter1419 4 года назад
Me too confused
@sunnyjain630
@sunnyjain630 7 лет назад
great explations sir it clears all my doubts regarding merge sort algo......thanks
@adityamohan4615
@adityamohan4615 6 лет назад
is it the divide and conquer approach?
@raushansingh9905
@raushansingh9905 6 лет назад
dmm merger sort was never easy before, thanks a lot for making it easy for me.
@likithr.n9692
@likithr.n9692 4 года назад
You are the god of computer science....
@shivamrunthala2165
@shivamrunthala2165 6 лет назад
This guy is genius.! He made it so easy.
@rajajodhani
@rajajodhani 9 лет назад
Sir, thanks for giving me this much please change the keywords for search in youtube because people dont hav access to it easily... this lectures hav to got more than 1 lakhs likes and views thanks sir
@sowmyakulkarni6565
@sowmyakulkarni6565 8 лет назад
sir,can you please upload videos datastructures also.It will be very helpful
@PlacidSoulLN
@PlacidSoulLN 5 лет назад
Thank you, bro. This video helped me a lot. After watching this I am a big fan of you.
@reena.m8471
@reena.m8471 9 лет назад
you explain it very well . thanks for your efforts. can you add some videos on red black tree
@sauravsahu6243
@sauravsahu6243 5 лет назад
Very nice explanation Sir. Many many thanks to you for sharing knowledge :)
@sankalpbhardwaj1944
@sankalpbhardwaj1944 4 года назад
7:14 shdnt n1 be equal to p-q+1?? Instead of q-p+1... This got me confused 🤔
@jomoljohn215
@jomoljohn215 6 лет назад
Thank you Sir, I solved lots of my confusion with your video
@konstantinrebrov675
@konstantinrebrov675 5 лет назад
Indian professors are the best!
@bujjibabulingampalli9648
@bujjibabulingampalli9648 9 лет назад
This is awesome sir..!! Please upload more lectures on datastructures
@naveenkumarrai8063
@naveenkumarrai8063 5 лет назад
awesome teaching style.thanks for this cooperation sir
@salounik.2894
@salounik.2894 7 лет назад
The simplest and the best explanation yet.
@nadeemnlhr
@nadeemnlhr 7 лет назад
I would like you to take some programming lectures using some high language like java or c#
@alphadrones23
@alphadrones23 6 лет назад
Order of merge sort is nlogn
@shreyrao5514
@shreyrao5514 8 лет назад
Excellent explanation sir, helped a lot. Thank you so much sir
@omkarsharma8968
@omkarsharma8968 6 лет назад
sir,how could i analyse the space complexity is: [logn]+1 41:50
@sayalideo7823
@sayalideo7823 5 лет назад
Suppose total number of elements n=2^k. Then at the bottomost level there will be 2^k elements and the topmost there will be 2^0 i.e. 1 element. Thus we hav a range from 0 to k i.e. (k+1)range. Now remember n=2^k thus k=logn Similarly, for 2^(k+1) we get n=(log n)+1. Hope this clears your doubt.
@johnfox17
@johnfox17 6 лет назад
Master! Thank you!
@rebeccakipanga478
@rebeccakipanga478 10 лет назад
Clear and neat!!! Thanks sir!!
@weezybusy
@weezybusy 8 лет назад
Thank you so much!
@abhijitgupta7257
@abhijitgupta7257 7 лет назад
Can anyone tell me why do we have to add infinity at the end, the explanation given for adding infinity same can be achieved by matching the pointer with the size of sub arrays, this will avoid creation of extra space in memory.
@h8pathak
@h8pathak 7 лет назад
He already mentioned that you could do the latter.
@chanduseshadri
@chanduseshadri 9 лет назад
So, infinity means... largest number a datatype can get right? so say the array is of type Integer, then infinity means Maximum number an integer can hold. So, your code doesn't work if the actual element is largest number an integer can get (infinity). In the array at 14:49, if you get 2 pow 32 -1 in place of 10, your code gets an array index out of bounds exception.
Далее
ОБЗОР НА ШТАНЫ от БЕЗДNA
00:59
Просмотров 277 тыс.
КОТЯТА В ОПАСНОСТИ?#cat
00:36
Просмотров 1,2 млн
Офицер, я всё объясню
01:00
Просмотров 4 млн
Merge sort time complexity analysis
10:04
Просмотров 207 тыс.
2.8.1  QuickSort Algorithm
13:43
Просмотров 3,2 млн
Lecture 3: Insertion Sort, Merge Sort
51:20
Просмотров 835 тыс.
Analysis of Merge sort algorithm
18:21
Просмотров 545 тыс.
Merge Sort In Python Explained (With Example And Code)
13:35
ОБЗОР НА ШТАНЫ от БЕЗДNA
00:59
Просмотров 277 тыс.