This is an excellent video for the derivation of the Merge Sort Big-O and one of the few that doesn't do a (often hand-waving) recursion tree version. My only suggestion for improving it would be to explain/show explicitly why the merging step is 'n' (as that's crucial for setting up the recurrence relation).
Thank you very much! I was trying to find how it was nlogn and google as well youtube sucked a lot to give a simple explanation. You are the only to explain it to the T literally 😀👍
According to Masters Theorem for division problem the recurrence relation would be O(n^k log^(p+1)n). Here as per the third equation k is 1 and p is 0 and it would result in O(n log n).
i beg you sir please tell about Graph Searching and Traversal: Overview, Representation of graphs, strongly connected components, Traversal methods (depth first and breadth first search) and its analysis Back tracking: Overview, 8-queen problem, and Knapsack problem Brach and bound: LC searching Bounding, FIFO branch and bound, LC branch and bound application: 0/1 Knapsack problem, Traveling Salesman Problem
sir can you clear me out my class teacher asked me about that answer or this analysis is { n log n ) there is no value in the base of log am very confused ????????
Oh my goodness. I've been looking for a clear explanation of the time complexity without using a recursion tree for so long. This is so helpful!
wtf but its a substitution method
Bro have you got a job?
Finally a very clear explanation of this derivation. Thank you. Very helpful.
Thanks. The tutorial was very very simple yet very informative. Loved it
Best And Authentic Method ...
after a long searched....finally...welldone
Best and Clear Explanation ever....No shit things ....Completely understood....Thankyou🙏🙏
Thank u! T(n)=n + nlogn, which simplifies to O(nlogn) because in big O analysis, u ignore smaller terms
Simple, yet to-the-point. Thanks for such a great explanation.
Very clear and straightforward! Really appreciated it!
thanks a lot sir very helpful we need more time complexity analysis on different algorithms.
An excellent derivation of time complexity of mergesort....Thanks a lot
Wow unbelievably simpler than all the other explanations I've seen, just using some simple maths!
ah finally someone could explain it in a simple manner. Thanks Sirji.
Thank you so much sir...... was really looking for the explanation of this sort without the recursion tree
Just Awesome ! Must watch video. never got this much clear explanation about recurrence relation and how to solve one. Thank you so much.
I SAW ALOT OF VIDOES FOR ANALYSIS BUT THIS
ONE IS BEST .(THANK YOU SIR)
This is an excellent video for the derivation of the Merge Sort Big-O and one of the few that doesn't do a (often hand-waving) recursion tree version. My only suggestion for improving it would be to explain/show explicitly why the merging step is 'n' (as that's crucial for setting up the recurrence relation).
Thanks a lot, your explanation just shed light on my understanding of complexity of recursive algorithm.
Actually. This is what i was looking for. Verry straightforward.
thanks a lot for the explanation sir, keep it up 👍👍👍👍
Best explanation I have heard about merge sort Thank you~
AWESOME SIR🤩🤩 JUST CLEAR EXPLANATION AND NOTHING ELSE THANK YOU
A very clear explanation. Thank you so much sir.
Thank you so much for this! My professor did not explain this thoroughly at all!
Well done, logical and methodical! Thanks a lot.
Thank you very much! I was trying to find how it was nlogn and google as well youtube sucked a lot to give a simple explanation. You are the only to explain it to the T literally 😀👍
Thank you sir
thanks for watching? thanks for the clear and concise explanation!
Nice explanation.... Thank you sir✨🙏
Wow, superb explanation
very good explanation
super
The clearest explanation. Thanks!
Thank you sir for the clear and accurate explanation.
According to Masters Theorem for division problem the recurrence relation would be O(n^k log^(p+1)n). Here as per the third equation k is 1 and p is 0 and it would result in O(n log n).
Uhhh...really really nice..✨❤was struggling a lot with this sort and finally my quest ends here!..Thanks👨🏻🦱
Thank you for the lucid explanation!!!
Excellent explanation.
Clean derivation. Congrats.
I have to explain this in class today. Thanks for saving my ass 😭.
- Sincerely Ranjit
Thanks youu soo much sir I got explanation of merge sort time complexity is very clearly
I was looking for this from long time.
Thank you sir
What a beautiful explanation
Awesome explanation sire!
This is so clear! Thanks a lot!
Great video sir.
It's an amazing video...❤️❤️
thanks its very helpful and clear and perfect explanation ,keep the good work on .thank you !
Superb explanation tnk u sir
Very well explained
Very clear and helpful video . Thank you :)
wooww sir really liked it.Thanks for uploading.
Hey, you have good explanation, please continue doing more videos and make yourself visible on youtube search, to get more views
this video is life saving. thanks
Simplest yet best
How did the last step come?
CLEAR AND CONCISED VIDEO..
very clearly explanation keep it up
Thnak you for the clear explanation.
Wow! You made it easy.
why at last N+N*logN = O(N* log N)? not equal to O(N*(logN+1))?
Best explanation
Sir very good explanation thankyou very much
that substitution of n/2^i = 1 at 8:20 is trickier
Great Video !!
Shouldn't the splitting part be accounted for as well?
Best explanation ever
Very helpfull for me thanks
Thank you sir. Very clean explanation.
if we have 2d array .so what is the time complexity analysis
very good explanation!
very nicely explained.
Thank u so much sir. Very simple explanation
awesome explanation
It's really very helpful
Thank you Sensei
Tq for the clear explanation
Thanks for the video
good video
❤❤Deserve appreciation❤❤
thank you
very much useful sir
What about for the case where n isn't a power of 2?
Boss!!!
Salute!!!
nice bro
Good. Thank you sir.
Thank you sir. This was very helpful.
Good explanation sir...Tysm..!!
Brilliant!
thanks sir for nice explanation
could you please state how to derive the worst case Time Complexity of Merge Sort?
worst and best time complexity is same for merge sort, the derivation given here is for both worst and best cases
ok thank you :-)
Thank you so much
i beg you sir please tell about Graph Searching and Traversal: Overview, Representation of graphs, strongly connected components, Traversal methods (depth first and breadth first search) and its analysis
Back tracking: Overview, 8-queen problem, and Knapsack problem Brach and bound: LC searching Bounding, FIFO branch and bound, LC branch and bound application: 0/1 Knapsack problem, Traveling Salesman Problem
Thanks Sir, it is really helpful
Thankyou sir! you are awesome
Escape + control
The best
can u solve by
substitution method T(n) = T(n - 1) + T(n/2) + n
I love this video sir, :)
Thanks
sir what do u mean by roughly? b/c of odd no array
sir can you clear me out my class teacher asked me about that answer or this analysis is { n log n ) there is no value in the base of log am very confused ????????
In one of the interview I was asked to solve this :(, !! Is it really need to know? Thanks for the explanation
Isn't it T(n) = 2T(n/2) + (n-1) and the base case T(1) = 0 ?