The example is very simplistic, and partly explains the algorithm.
@idiot7leon2 жыл бұрын
Thanks. Really cute handwriting~
@acmahoathan4 жыл бұрын
Your handwriting is so beautiful
@bradleyaboua41283 жыл бұрын
I was just thinking that! She ought to do calligraphy!
@ZhouHaibo3 жыл бұрын
Fancy explain. It is O(n + k) actually form my understanding, because the while loop is triggered only when B[i] has values, thus k is roughly equal to input sequence's length. But if the max value of input array is very big, then phase 2 will has a long run as N = max + 1.
@noorhassanwazir81334 жыл бұрын
Nice teaching madam ..and lovely handwriting...
@moayyadarz29654 жыл бұрын
Hello Lalitha Hopefully you are well I am wondering why do not you complete this series of video it is really amazing
@vishalramoju54324 жыл бұрын
there is a while loop inside a for loop, why is the time complexity still O(N) ??
@DebasisUntouchable2 жыл бұрын
this is a very simplistic representation of bucket sort, on your question regarding while loop, its not about having a loop inside another loop, its about what you do inside that loop. think for an example the "for" loop instead of looping the bucket, it ranged the total numbers you have, (there won't be a need for another loop inside), so it would have been O(N) right?