Analysis of Merge sort algorithm

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 208

  • @johnhurley8918
    @johnhurley8918 7 лет назад +201

    I just noticed that when analysing time complexity, he color codes each operation by type:
    Teal = Simple actions
    Red = Loops
    Purple = Recursive calls
    That makes it so much easier to follow!

  • @19.sairoopesh10
    @19.sairoopesh10 8 месяцев назад +2

    The quality of these videos is amazing. The aspect ratio is perfect, the voice is clear, and I love how they use different colors for functions, recursion, and loops. It's crazy to think that this quality is from almost 10 years ago

  • @석상주
    @석상주 10 лет назад +129

    WAYWAYWAYWAY better than my prof's lecture

  • @abhisheksharmacs
    @abhisheksharmacs 9 лет назад +9

    this is the best that I have seen on Merge sort complexity

  • @macgyver985
    @macgyver985 8 лет назад +18

    Best part, the videos are in the cinematic aspect ratio, so they look awesome on ultra wide monitors!

  • @asmereg
    @asmereg 4 года назад +7

    Wow, his is 2013 video. I'm watching it in 2020 to sit for my campus placements. Great explanation👏💕

  • @dillon4321
    @dillon4321 6 лет назад +1

    Best computer science videos on RUclips. Kudos to you sir

  • @calmyourmind5617
    @calmyourmind5617 2 года назад +12

    The simple thing is : There will be logn levels to divide the array up to 1. and then for each level merge function is applied which itself takes 0(n) time. Therefore multiply n with the total step taken which is logn. The overall time complexity therefore boils down to 0(nlogn).

    • @PeterXyzdlv
      @PeterXyzdlv Год назад

      Array of size 8, how many levels up to 1 ? 4>2>1 which is 3; log 8 base 2 is 3

  • @7s3em
    @7s3em 9 лет назад +33

    absolutely amazing channel ! you are a GREAT teacher thank's alot keep up the hardwork

  • @hangchen6131
    @hangchen6131 7 лет назад +7

    EDIT: 12/15/17
    @8:13
    For those who cannot understand why T(n) = 2*T(n/2)+c'*n = 2{ 2*T(n/4)+c'*n/2 } + c'*n, you may refer to my explanation and welcome for discussions. I didn't get it at first also, but now I understand it after grabbing a discrete math book. It's called mathematical induction.
    Now, T(n) = 2*T(n/2)+c'*n is a general form, and since T(n) = 2*T(n/2)+c'*n, then, T(n/2) = 2*T(n/2/2) + c'*(n/2), which just substitutes n with n/2 in T(n) = 2*T(n/2)+c'*n, and since T(n/2) = 2*T(n/2/2) + c'*(n/2) = 2*T(n/4) + c'n/2, T(n) = 2*T(n/2)+c'*n = 2 * (2*T(n/4) + c'n/2) + c'*n = 4T(n/4) + 2c'n. That's how it comes, and repeat for every n/4, n/8, n/16... etc, we will get the final result.
    -- Below is my original post, and it does have some errors though. If we expand 2{ 2*T(n/4)+c'*n/2 } + c'*n, it would be 4T(n/4) + 2cn, rather than 2{T(n/2) + c'*n/2 } + c'*n. Apparently, I didn't quite get what T(n/4) is, and mistakenly multiply that coefficient 2 with T(n/4) which makes 2*T(n/4) become T(n/2). So you can ignore all the things below --
    I still cannot understand why T(n) = 2*T(n/2)+c'*n = 2{ 2*T(n/4)+c'*n/2 } + c'*n... like, if we expand 2{ 2*T(n/4)+c'*n/2 } + c'*n, it would be
    2{T(n/2) + c'*n/2 } + c'*n =
    2*T(n/2) + c'*n + c'*n =
    2*T(n/2) + 2c'*n
    compared to original
    2*T(n/2)+c'*n
    There seems to be an extra c'*n...
    Although someone mentions it's recursive I still haven't got the point...
    Why...?

    • @4eversuju
      @4eversuju 4 года назад

      THANK YOU SO MUCH FOR THIS DETAILED EXPLANATION! i struggled until I found this post! GREATLY APPRECIATED!

  • @alabimehzabinanisha
    @alabimehzabinanisha 9 лет назад +3

    Thanks a lot for being my Base Case of searching a Merge Sort Tutorial which will provide me details explanation. And of course, better than my Prof's lecture. :)

  • @marcelluiz96
    @marcelluiz96 11 лет назад +5

    Thank you so much! I needed to understand mergesort for a college activity, and this was the clearer and best explained method i've found :D

  • @justinwmusic
    @justinwmusic 5 лет назад +28

    Translations: "into" = "times" or "multiplied by"; "by" = "divided by"; "upon" = "over" or "divided by"

    • @vinutd210
      @vinutd210 5 лет назад +6

      Thank you for the cultural translation. :)

    • @ravi090191
      @ravi090191 5 лет назад +1

      haha. Cool !

  • @youtubebaba1935
    @youtubebaba1935 10 лет назад +1

    Hey Man do you know how great work you are doing for others ? people like you makes the world beautiful :)

  • @kelvinluu7228
    @kelvinluu7228 8 лет назад +1

    this guy is actually a god. perfect way of explaining hard concepts

  • @thoughtfulplatypus
    @thoughtfulplatypus 3 года назад

    I'm not a programmer and I randomly watched this video and understood every single thing. So simple and clear.

  • @xitiz001
    @xitiz001 8 лет назад +5

    Presented really well visually & orally. Great Work...!!!

  • @study-me1oe
    @study-me1oe 7 месяцев назад

    At 16:38, I think at level 1 it is n/2 (not n) because we are using only n/2 space, we didn't even entered the right recursion tree. Same goes for the next level, n/4, then n/8 and so on. So, the total space would be n/2+n/4+n/8+.....+1 (or may use infinity for simplification), and not n+n/2+n/4+....+1. But, anyway, it would be in O(n).
    Correct me if I'm wrong.

  • @mycodeschool
    @mycodeschool  11 лет назад +3

    Hi Shanmuk,
    What is it that you do not understand? I can try explaining. Well, maths and programming go together. But, you don't always do such complex calculations to figure out time complexity. Recursion is tricky. I am sure you know enough maths to be able to program, that's why you are here. If you are not getting anything in this tutorial, ask specific questions.

    • @senthilrajanr1
      @senthilrajanr1 5 лет назад +2

      I am having a hard time to follow the time complexity calculation. Maybe I don't know logarithmic and could be the reason. how come T(n/2) would become 2T(n/4)+c'(n/2). where does the c' come from? and i do not understand how 2^log2n T(1) will become nc. maybe it's just me but I could not follow. But thanks for doing this work. Appreciate it. If possible please try to do another video.Thanks

  • @pralakbhargav7113
    @pralakbhargav7113 9 лет назад +8

    brilliant teaching!! I wish my Professors could teach like this!

  • @tarunkr.9041
    @tarunkr.9041 6 лет назад

    PEOPLE WHO SO EVER HAVE DISLIKED YOUR VIDEO MUST BE UNIVERSITY PROFESSORS BCZ THEY MUST BE JEALOUS WITH YOUR TEACHING EFFICIENCY.

  • @ajayrajan8882
    @ajayrajan8882 6 лет назад +36

    My respects for #HumbleFool

    • @AyushGupta-mm4jg
      @AyushGupta-mm4jg 4 года назад +1

      He is not humblefool . He is animesh nayan

    • @RAHUL-gf3ft
      @RAHUL-gf3ft 3 года назад

      @@AyushGupta-mm4jg he is Harsha Suryanarayana from IIIT Allahabad
      #humblefool

    • @nileshgopale8528
      @nileshgopale8528 3 года назад +2

      @@RAHUL-gf3ft he is Animesh Nayan , if you want to hear to audio of Harsha Suryanarayana , then access the Euclid's GCD Algorithm on mycodeschool.

    • @navyasri5077
      @navyasri5077 3 года назад

      @@RAHUL-gf3ft this iiitA people just💥🦸‍♀

    • @RAHUL-gf3ft
      @RAHUL-gf3ft 3 года назад

      @@navyasri5077 Proud to be an IIITian

  • @harshitanag2452
    @harshitanag2452 4 года назад

    Best explanation I found on youtube till date :)

  • @usama57926
    @usama57926 6 лет назад +4

    bro you are an great mathematician

  • @ShreyaSingh-vr9qi
    @ShreyaSingh-vr9qi 4 года назад

    One of the best video explaination of time as well as space complexity !!

  • @asishcodes
    @asishcodes 2 года назад +1

    5:47 I don't understand. It should be n/2 right?

  • @preetsingh239
    @preetsingh239 9 лет назад +3

    thanks for the awesome lectures ....please upload the rest of the lectures like heap sorting ,etc

  • @taiebxr
    @taiebxr Год назад

    Here for space complexity and absolutely worth it alhamdulilah

  • @apotessar88
    @apotessar88 8 лет назад +6

    Sorry, I don't understand when calculating T(n) in 08:52 why T(n) = 2*T(n/2)+c'*n = 2{ 2*T(n/4)+c'*n/2 } + c'*n. Why we need to add c'*n in the end? and it also add c'*n in the following steps afterwards.

    • @sandrok14
      @sandrok14 8 лет назад +3

      +apo tessar Because it is recursive function. So for example on 8:52, on the second black stroke he has 4*T(n/4) from this he looked what was exactly T(n/4) equal to, so by the same formula he gets 2T(n/2/2) + cn, when plugs in n/2 to general formula. It is same as 2T(n/4) + cn. than he multiplyed by outer 2 which was there before and got 4T(n/4) + cn. The second cn comes from the same function for n/4 written recursively and other cn stays there as before so at last he added them and got 2cn. this get done K times so recursivley he gets kn. Maybe its bad explanation but its hard to explain by words ))

    • @hangchen6131
      @hangchen6131 7 лет назад

      I still cannot understand it... like, if we expand 2{ 2*T(n/4)+c'*n/2 } + c'*n, it would be
      2{T(n/2) + c'*n/2 } + c'*n =
      2*T(n/2) + c'*n + c'*n =
      2*T(n/2) + 2c'*n
      compared to original
      2*T(n/2)+c'*n
      There seems to be an extra c'*n...
      Why...?

    • @lowzyyy
      @lowzyyy 7 лет назад

      +Hang Chen what are you talking about? When you expand expression of course it wont be the same as original..because you are using T(n/4) to evalute instad of T(n/2)
      He is expanding the whole recursive formula to show you how to get idea of time complexity. Its easier to understand what is going on when u follow original formula..

    • @vamshikrishna8143
      @vamshikrishna8143 6 лет назад +1

      ruclips.net/video/g1AwUYauqgg/видео.html

    • @ARWA8400
      @ARWA8400 6 лет назад

      please can anyone explain to me what is n and from where we get it in O(nlogn) -space complexity "in case we do not clear extra memory" ?

  • @satyakibose8402
    @satyakibose8402 7 лет назад +4

    Why is n/2^k = 1 at 9:29?
    And also, why at 10:06, 2^log2n = n?

    • @panigrahisnehashish
      @panigrahisnehashish 7 лет назад +3

      We can't determine T(n/2^k). But we need to get rid of T(n/2^k), and we know the T(1) = 1. Hence, we replaced with T(1). How T(1) is 1? Think up of a merge sort having 1 element will sorted in 1 unit of time. And, answering to your second question, log of n base 2 returns "x the POWER of 2 which equals to n". We are powering with the same number i.e. x (the POWER of 2) again, we'll get n. Try with some examples, you'll get it. ex: Base is 2. n = 8. Evaluation: 2 ^ log 8 = 2 ^ 3 = 8.

  • @ashuprakash6266
    @ashuprakash6266 9 лет назад +2

    I guess the Big-O notation is more famous !
    Big O gives the worst case scenario that is the tightest upper bound.
    While Theta notation is for function bounded between two curves from down and above.

  • @AbhimanyuAryan
    @AbhimanyuAryan 10 лет назад +1

    mycodeschool at 9:13 are you using plug & chug method?

  • @mycodeschool
    @mycodeschool  11 лет назад +2

    Yes, We are reducing the expression at each step,, So, K is starting from 1 and increasing till we reach T(1) .. You can either reach me here or write to mycodeschool [AT] gmail [DOT] com

  • @elmehdifetouaki2641
    @elmehdifetouaki2641 Год назад

    A fascinating explanation as expected, just as a remark, we could use master theorem and get the complexity easily

  • @bingqingwang850
    @bingqingwang850 5 лет назад

    far more better than my teacher's lecture!

  • @gajendragulgulia9889
    @gajendragulgulia9889 8 лет назад +4

    hey.. thanks for the great work. Will be good to have videos for Bucket Sort, Radix Sort and Searching Problems (Sequential Search, Binary Search etc)

  • @krishan7630
    @krishan7630 Год назад

    Still You are the best Bro....Just watch your videos to revise topics :)

  • @debarshiroy2939
    @debarshiroy2939 2 года назад

    Your videos are so interesting, always forget to like. Thank you Sir for such clear explanation and hope for more videos

  • @pratyushdas8267
    @pratyushdas8267 5 лет назад

    At 6:56 why is the complexity of Merge() C3.n + C4? Why is it not C3.n?

  • @simonetruglia
    @simonetruglia 10 лет назад +1

    This is better explenation about it than I never said, thanks a lot :)

  • @6304abhishek
    @6304abhishek 7 лет назад +4

    liked the space complexity explanation :)

  • @sashankaryal1223
    @sashankaryal1223 8 лет назад +3

    Such a wonderful explanation! Thank you so much.

  • @hovhadovah
    @hovhadovah 7 лет назад +3

    Incredible explanation, thank you so much!

  • @saurabhvemuri
    @saurabhvemuri 10 лет назад +8

    SIR PLEASE UPLOAD VIDEOS ON HASHTABLES

  • @arjundixit5913
    @arjundixit5913 3 года назад

    Nice explanation but @ 8:31, why are we having extra C`n outside? the expression inside the curly braces has already balanced the original equation

    • @dee5392
      @dee5392 3 года назад

      Because the outside C'n is from the original T(n) equation. The stuff inside the curly braces are the terms from the expansion of T(n/2).

    • @dee5392
      @dee5392 3 года назад

      If you look up some info about "recurrence relations", the expansion will make more sense. Hope that helps!

    • @arjundixit5913
      @arjundixit5913 3 года назад

      @@dee5392 thanks a lot for the clarification...finally understood 😊

    • @dee5392
      @dee5392 3 года назад

      @@arjundixit5913 you're welcome, glad I could help! have a great day :)

  • @harshitasharma9061
    @harshitasharma9061 8 лет назад +1

    Wow!!!! Awesome explanation. Didn't knew about theta complexity. Everywhere I saw it was big Oh only. And many do not bother about space complexity. Thanks a lot. Please upload videos on heap sort also. Also sir if you could do some difficult time complexity questions on sorting algorithms, it will be very helpful for entrance exams (GATE etc.) Thank you sir!

    • @shashanksahu1971
      @shashanksahu1971 6 лет назад

      This great programmer is not between us.
      fossiiita.github.io/humblefoolcup/humblefool/humblefool.html

  • @lakshaysharma8144
    @lakshaysharma8144 8 лет назад +11

    can u plz make a video for greedy algorithms nd dynamic programming

  • @arunrnambiar9561
    @arunrnambiar9561 6 лет назад +3

    Why the memory consumed in stack not taken into account like in the space complexity analysis of fibonacci, exponential modulation etc

  • @ManojSaini_15
    @ManojSaini_15 9 лет назад

    Awesome explaination..i was just looking for an easy explaination..and you ended my search..;-)

  • @RushDefuze
    @RushDefuze 3 года назад

    at 8:32. Where does the additional c'n come from

    • @RushDefuze
      @RushDefuze 3 года назад

      I think this explanation was good, but skipped over mentioning that it was done by substituting in T(n/2) T(n/4) into the equations once we know the component 2T(n/2), 2T(n/4) etc

    • @RushDefuze
      @RushDefuze 3 года назад

      I might as well also add that the reason why mergesort(left) and mergesort(right) is T(n/2) is because it assumes its completed and therefore carries the time of completion through to this next part, hence the T rather than simply n/2

  • @sudeepkumar-pd9oq
    @sudeepkumar-pd9oq 3 года назад +2

    Imagine this great coder with great vision was not died in 2014, this was very unfortunate incidence for every code learner around the world

  • @azukib2230
    @azukib2230 4 года назад

    Thank you! I needed a video to explain the formulas

  • @jossba1628
    @jossba1628 7 лет назад +1

    thank you for your help! I really enjoy watching your videos :)

  • @selenewaide8994
    @selenewaide8994 7 лет назад +1

    Great video, thank you for your clear explanation.

  • @saidarahaasayyangalam3445
    @saidarahaasayyangalam3445 8 лет назад

    I would have porbably joined for a course if you had provided..... No body can ever get these basics in such an interactive way you're providing us with...

  • @pravakarpatel3909
    @pravakarpatel3909 10 лет назад

    Thanks for g8 explanation sir i got clear picture today on sorting .But i am confused when u said to clear extra memory but as these array is store in the static section it is deleted itself .sir Are u taking in case if it is store in heap section?

  • @bc8409
    @bc8409 6 лет назад +2

    thanks for giving us this. super helpful and clear. gj

  • @dicksonc8470
    @dicksonc8470 7 лет назад +1

    wait why do we reduce it to T(1)? 9:20

    • @zlaneyronmes
      @zlaneyronmes 5 лет назад

      because in merge sort in worst case we need to divide the array until only 1 element is present in the array.

  • @TightyWhities94
    @TightyWhities94 5 лет назад +6

    is this information really necessary outside of college?

    • @akashraghav4405
      @akashraghav4405 5 лет назад +10

      Yes! it is. If you're targeting to work at top organizations. you are expected to know how to analyze your code complexities and optimize if possible.

  • @xc0437
    @xc0437 10 лет назад +1

    Your videos are so good. Thanks a lot !!

    • @adarozer
      @adarozer 2 года назад

      Gülsüm hanım nasılsınız? Yedi yıl geçmiş aradan şuan ne iş yapıyorsunuz acaba :d

    • @xc0437
      @xc0437 2 года назад +1

      @@adarozer nostalji oldu yorumu görünce :p yazılım firmasında proje yönetimindeyim -.- siz niye düştünüz buralara matematikçilik mi var

    • @adarozer
      @adarozer 2 года назад

      @@xc0437 Yok ben vize için çalışırken bu videoya bakmıştım öğrenciyim daha bilgisayar mühendisliği okuyorum. İşinizde başarılar.

    • @xc0437
      @xc0437 2 года назад

      @@adarozer ne güzel sizin için başarılı okul ve iş hayatı dilerim

  • @mohdfirdaus9050
    @mohdfirdaus9050 8 лет назад +1

    +mycodeschool hi, for the second step, I don't understand how'd you managed to get from c'n to 2c'n. Isn't it supposed to be c'n(1+1/2)?

    • @theammartareen
      @theammartareen 8 лет назад +1

      we have to figure out the running time of two recursive calls on n/2 elements. Each of these two recursive calls takes twice of the running time of mergeSort on an (n/4) element subarray (because we have to halve n/2) plus cn/2 to merge, that's where you get the extra factor.

  • @RECOMMENDED_ACC_IMA
    @RECOMMENDED_ACC_IMA 5 лет назад

    Great way of explanation...loved it❤❤❤

  • @jawadanwar6684
    @jawadanwar6684 5 лет назад

    You are the best, man

  • @prasenjeetbiswal5275
    @prasenjeetbiswal5275 8 лет назад

    Hi, should not the space complexity be O(nlogn) ? When the left half is completely decomposed, it occupies "(n/2)*logn" space (logn steps) and the right half takes n/2 space. So total space is n/2*logn + n/2 which is equal to nlogn space.

    • @PeterXyzdlv
      @PeterXyzdlv Год назад

      How ? Extra space required is just n; left subarray plus right subarray

  • @parthiban_k
    @parthiban_k 5 лет назад

    how to calculate the time complexity of creating left array and right-array

  • @piyalsana1252
    @piyalsana1252 2 года назад

    what to return on the base case of mergesort function?

  • @sanvadaya
    @sanvadaya 7 лет назад +5

    Can someone explain to me this part
    T(n)=2T(n/2)+C′.n
    T(n)=2{2T(n/4)+C′.n/2}+C′.n
    Why do we multiply by 2 here. And how does C′.n become 2C′.n
    Also what is meant by the constant C here?
    nC+C′.nlogn=θ(nlog n)

    • @ChaminiPrashakthiJayasinghe
      @ChaminiPrashakthiJayasinghe 7 лет назад +10

      + Praveen M
      It is this,
      first you have this equation.
      T(n)=2T(n/2)+C′.n
      so assume n-->n/2
      then substitute n/2 to first equation
      T(n/2)=2T(n/4)+C′.n/2
      then again substitute above equation to the first equation T(n)=2T(n/2)+C′.n
      Hope you got it now. :-)

    • @shreyasabd4974
      @shreyasabd4974 6 лет назад

      Thank u brother

  • @vishalm4074
    @vishalm4074 9 лет назад

    Can you give a link to logarithmic laws required to solve recursions ?

  • @akhilsuresh2560
    @akhilsuresh2560 9 лет назад +9

    TH BEST EXPLANATION ONE COULD EVER GET.. :) HaTS oFf

  • @ManojSaini_15
    @ManojSaini_15 9 лет назад +7

    just had a small doubt if someone can explain (may be a dumb one..:/ ) When calculating T(n) array is divided into 2 parts so the k is incremented in every step. But I am confused with the calculation. How 2T becomes 4T and cn becomes 2cn.

    • @rehmanarshad1848
      @rehmanarshad1848 6 лет назад

      It's done recursively, basically just keep plugging in T(n/2) -> T(n).

  • @mkab
    @mkab 10 лет назад

    Thank you so much for this video. I have a question. I usually get confused when calculating the complexity of recursive functions. In this case why is it log n (I know that's the correct answer but why so)?. We have two for loops with complexity of O(n) which is greater than log n. Why don't we derive that the complexity of merge sort is simply O(n). Also since we are going to visit all the nodes in the tree, the complexity should be O(n) right? It'd be very helpful if you can explain this to me.

    • @urvashidang6083
      @urvashidang6083 2 года назад

      It will be binary tree with two nodes always and height of binary tree is logn

  • @vinaypeta6030
    @vinaypeta6030 8 лет назад +1

    public class MergeSort {
    public static void main(String[] args){
    int[] input={9,8,7,6,5,4,3,2};
    domergesort(input);
    for(int i:input){
    System.out.println(i+" ");
    }
    }
    static void domergesort(int[] input){
    int n=input.length;
    if(n

  • @anuragreddy391
    @anuragreddy391 10 лет назад

    Could you tell me the time complexity bcoz i am getting 0(n2) because comparing and moving is present

  • @RohanB90
    @RohanB90 6 лет назад

    Unfortunately none of the time complexity maths makes any sense to me. Having said that, the algorithm implementation was definitely a great help! Im hoping that just knowing that it is O(nlogn) time complexity if good enough

    • @shahriarmim4696
      @shahriarmim4696 6 лет назад

      No not always. To be a computer scientist/engineer you have to know deep down of a code.

  • @sunnyjain630
    @sunnyjain630 8 лет назад

    what a nice way for teaching.. great man!!
    please upload count and radix sort algo
    thanks

    • @shashanksahu1971
      @shashanksahu1971 6 лет назад

      This great programmer is not between us.fossiiita.github.io/humblefoolcup/humblefool/humblefool.html

    • @mohitvarma1012
      @mohitvarma1012 4 года назад +2

      @@shashanksahu1971 the narrator "Animesh Nayan" is alive and working at Google. His friend and co-founder Harsha died in car accident. Most of the videos are done by Animesh.

  • @shanmuk23
    @shanmuk23 11 лет назад

    Actually i am confused in deriving 2^k T(n/2^n) + k,c'n, but after watching the video again, i figured it out that as we dig into the levels the term K increases.
    Correct me if i am wrong..
    Once again Thank u,
    can i reach u here again if i got any doubt ?

  • @sophieyan5008
    @sophieyan5008 8 лет назад +1

    Thanks a lot for this nice video, but I don't understand how you get n/2k = 1, this is the only step that confuses me. Thanks!

    • @AdityaPratapsingh9125
      @AdityaPratapsingh9125 8 лет назад +1

      to eventually reach T(1) ...as n=1(n

    • @luvianp4984
      @luvianp4984 8 лет назад

      k=log n; 2^(log n) = n; n/n=1; T(n/n) = c;

    • @santoshkumak
      @santoshkumak 8 лет назад +2

      For space complexity it is clear.
      At level L1, there are n/2^1 elements, at level L2 there are n/2^2 elements....so on We know at last level there are 1 elements in array and we say it as n/2^k , then n/2^k =1

  • @CSshreyas
    @CSshreyas 9 лет назад

    excellent explanation, thanks for the video

  • @munnishaik1292
    @munnishaik1292 10 лет назад +1

    HI ,
    Nice explanation,
    could you please share the code with us,actually over internet mergesort() taking n parameters buts in ur case its only one and i like that very much.

    • @mycodeschool
      @mycodeschool  10 лет назад +4

      Munni Saik There is a link in previous video to implementation, But anyway this is the code: gist.github.com/mycodeschool/9678029

  • @kautukraj
    @kautukraj 5 лет назад +1

    Very helpful!

  • @anupamsingh1453
    @anupamsingh1453 8 лет назад

    Nice explanation the noise in the background is a bit disturbing.

  • @priyathammanu4741
    @priyathammanu4741 10 лет назад

    wat is the need to again calculate the time complexity ?

  • @Tracy_AC
    @Tracy_AC 6 лет назад

    Good explanation.

  • @manishsen195
    @manishsen195 11 лет назад +2

    Thanks a lot :) It is really helpful

  • @usama57926
    @usama57926 6 лет назад +3

    hank for play lists

  • @srinjoyghosh1467
    @srinjoyghosh1467 6 лет назад

    very nice explanation!!!

  • @ShivamKendre-fc3su
    @ShivamKendre-fc3su 3 года назад

    This person is awesome

  • @katarisaketh7222
    @katarisaketh7222 9 лет назад +3

    Thanks a lot man!

  • @chickenchowman2692
    @chickenchowman2692 6 лет назад

    Hi, what is n0 in your video?

  • @naganikhilbijjala1000
    @naganikhilbijjala1000 7 лет назад

    You are really awesome sir

  • @Bob-uk4bs
    @Bob-uk4bs Год назад

    the proof is amazing

  • @bmprudencio
    @bmprudencio 4 года назад

    Hello!
    I 'm still stuck in this algorithm. I just can't think of how to do the "merge" method. Does anyone may help me out?

    • @xyzzyx9357
      @xyzzyx9357 4 года назад

      There's a video on Merge Sort by Geeksforgeeks, watch it.

  • @bolan167
    @bolan167 7 лет назад

    You are my hero.

  • @zingzingzingbahh
    @zingzingzingbahh 10 лет назад +1

    Thanks! this is perfect

  • @tommyeagen3763
    @tommyeagen3763 5 лет назад +1

    rip brother

  • @shashikantyadav4488
    @shashikantyadav4488 9 лет назад +1

    nice video thanks very much.. its really helpfull

  • @prabhakarkumarkj
    @prabhakarkumarkj 9 лет назад

    sir can explain heap short video as soon as possible...

  • @shreyashagrawal9650
    @shreyashagrawal9650 3 года назад

    Pls help getting infinite loop at merge (Larr)

  • @nooraalmarraj57
    @nooraalmarraj57 11 лет назад

    thank you thank you thank you so much you are a life saver !

  • @littleko93
    @littleko93 10 лет назад

    Great videos, thank you so much