Video není dostupné.
Omlouváme se.

2.1.3 Recurrence Relation (T(n)= T(n-1) + log n) #3

Sdílet
Vložit
  • čas přidán 22. 01. 2018
  • Recurrence Relation for Decreasing Function
    Example : T(n)= T(n-1) + log n
    Courses on Udemy
    ================
    Java Programming
    www.udemy.com/...
    Data Structures using C and C++
    www.udemy.com/...
    C++ Programming
    www.udemy.com/...

Komentáře • 270

  • @girava4034
    @girava4034 Před 3 lety +422

    3:56 If someone is wondering how he magically got this (very rarely happens)
    log a + log b = log(a*b)
    hence, log(n) + log (n-1) .. + log(2) + log(1) = log(n*(n-1)*(n-2)...*1) = log(n!)
    O(log(n!)) = O(log(n^n))
    log(a^b) = blog(a)
    hence, O(log(n^n)) = O(nlogn)

    • @badalsarkar736
      @badalsarkar736 Před 3 lety +7

      I was looking for this. Thanks.

    • @stebasteps
      @stebasteps Před 3 lety +3

      Thanks for this. My math is really bad so I had trouble understanding that part.

    • @ManpreetSingh-bk7yc
      @ManpreetSingh-bk7yc Před 3 lety +1

      thanks broo

    • @shyrenmore8140
      @shyrenmore8140 Před 3 lety +18

      How did n! become n^n?

    • @sivachowdeswarnandipati9712
      @sivachowdeswarnandipati9712 Před 3 lety +28

      @@shyrenmore8140 because, n! = 1.2.3...n-1.n, and if you keep on multiplying n inplace of each number because n > c; you get
      1.2.3.4.....(n-1).n < n.n.n.n.....n.n Therefore, Big -oh can be used

  • @goatyt3010
    @goatyt3010 Před 4 lety +157

    I like how he looks at me as if I am not paying attention in the back bench and about to get a detention. You are a legend Bari.

  • @danielmartino8068
    @danielmartino8068 Před 5 lety +378

    I love your way of teaching, very clear and simple. Our book Algorithm Design by Goodrich and Tamassia is an unnecessary mess. Education should depart from a concise and clear base, otherwise it seems as the author is trying to show off instead of explaining. Your style is of a real professor. You should right a book on Algorithm, you are a real professor.

  • @nitinmahajan3320
    @nitinmahajan3320 Před 3 lety +58

    Wish had him as a professor a decade ago, these topics would be super interesting. You are doing a great service.

  • @zizothegreat2769
    @zizothegreat2769 Před 4 lety +54

    When I graduate in a year, if I even have the chance to thank the ones that help me along this college journey, I will sure to thank you publicly. I would say something along the lines of "I want to thank god, my mom for supporting me, and most importantly Abdul from CZcams!" haha

  • @asishraz6173
    @asishraz6173 Před 4 lety +66

    Sir, you must be aware that I am commenting on each and every video of this playlist, not to gain attention but to prove my sincerity towards your teaching. I have set up this month's target to finish all of the videos in this playlist. Every day, I watch a minimum of 3 and a maximum of 4 videos from this playlist, so that in a week I will able to complete a minimum of 21 and a maximum of 28 videos and in a month, all these 84 videos will get completed.
    The first-week target already completed now jumped in the second-week target.
    The reason is your way of teaching and the valuable information we all are gaining through watching it.
    Lots of love and respect for you Sir. Thank you so much. I will be jumping to the next video of this playlist.
    More power to you and keep the great work that you are doing.
    - Gareeb CODER

    • @codingdaily4094
      @codingdaily4094 Před 4 lety +2

      My Target is to complete this whole series by the End of this month

    • @asishraz6173
      @asishraz6173 Před 4 lety +1

      @@codingdaily4094 _ Great. Same here. Let's see, how far we will go till the end of this month

    • @codingdaily4094
      @codingdaily4094 Před 4 lety +1

      @@asishraz6173 Okay bro

    • @ashwinudhayakumar7466
      @ashwinudhayakumar7466 Před 3 lety +2

      i just completed 25 videos in one day

    • @enejidjsi5939
      @enejidjsi5939 Před 3 lety +1

      @@codingdaily4094 did u do it bro? congrats

  • @TheMsnitish
    @TheMsnitish Před 5 lety +20

    It needs great patience to make wonderful videos like this! Love the way you teach without bringing lot of mathematical jargon like CLRS does.

  • @mahmoudalfayoumi2056
    @mahmoudalfayoumi2056 Před 4 lety +33

    I'm taking a master program in CS, and you don't know how these lessons helped me to make full marks in the exams

    • @noumanbhai7442
      @noumanbhai7442 Před 3 lety +3

      and i am in BS 2nd semester now or taking this lectures this sir is amazing

  • @SHAHIDSHAIKH-bw5ys
    @SHAHIDSHAIKH-bw5ys Před 4 lety +12

    Sir really when i show that topics available in your channel then my level of confidence of those topics increase to 💯 no matter how complex those theory or topics .❣️
    Thank you sir . 😌

  • @davidotewa6411
    @davidotewa6411 Před 3 lety +6

    Doing Masters in Computer Science and your way of teaching is awesome.
    I am almost finishing your Videos

  • @badalsarkar736
    @badalsarkar736 Před 3 lety +4

    Outstanding!! I have been struggling to calculate time complexity of recursive functions, now everything is so clear to me. Thank you so much.

  • @leonperianu7684
    @leonperianu7684 Před 5 lety +4

    you remind me of my math meditator... You explain clear, simple, and logical... Thank you :)

  • @aishwaryasingh246
    @aishwaryasingh246 Před 5 lety +2

    I have been watching your videos for a while now and it has never been easier than this. Kudos to you!
    Thank you so much. :)

  • @amberpradhan2484
    @amberpradhan2484 Před 4 lety

    I believe that the good teacher is the one who is not only smart but explain very well.No words, Best teacher so far. Thank you and God bless you.

  • @badarikrishna3169
    @badarikrishna3169 Před 4 lety +1

    Salute to your patience, writing each line and explaining thoroughly. I remember how I used to spend lot of time scratching my brain in understanding in college I used to write each line and understand. It feels great when you explain in this way..!! 🙌🙌

  • @softwareengineer8923
    @softwareengineer8923 Před rokem +1

    You explanation is too clear and lucid!Thanks a lot for these great lessons!

  • @sleepypanda7172
    @sleepypanda7172 Před 2 lety +4

    his teaching is so interesting that when he said 12:20 that you'll see the answer in next video my emotions were same as if I watched some super awesome web series on Netflix and they left the episode at the good part. I clicked the next video quickly just like I click on next episode of web series quickly!!!

  • @zizothegreat2769
    @zizothegreat2769 Před 4 lety +2

    You made a subject so simple that my professor and book provided for this course made 100x more difficult. Thanks again Abdul.

  • @muthierry1
    @muthierry1 Před 3 lety +2

    Mr Bari , you are such a great Lecturer....just Amazing they way you explain.. Thank you again ..

  • @valentine5379
    @valentine5379 Před 2 lety +1

    Top-notch teaching. Thank you for making this so clear and easy to understand.

  • @subhanullahdanish8680
    @subhanullahdanish8680 Před rokem +1

    Thank you so much sir . our teacher is teaching us i even not understand on his lecture but you clear my concept . A lot of love from Afghanistan .

  • @zoasis7805
    @zoasis7805 Před 4 lety +2

    You should take pride in your teaching skills, it is a skill that not many have, nice work

  • @nooreldali7432
    @nooreldali7432 Před 3 lety +1

    I don't know if this helps but I try to watch some of the adds without skipping cuz you deserve it. May Allah bless you

  • @E_AlIslam
    @E_AlIslam Před 4 lety +2

    Love it.. at the last the short cut was awesome i was searching for that and i got here

  • @Nazmussakib1548
    @Nazmussakib1548 Před 2 lety

    Teaching the hardest topics in an easy manner is the hardest job in the world & you have made it & helped out thousands of students. Respect Sir. Wishing you a good health & a happy life. Jazak Allahu Khair!

  • @parryismful
    @parryismful Před 5 lety +1

    Crystal clear explanation. You are doing great service for the learner.Huge Respect ...!!

  • @rnjnmhta.catomato
    @rnjnmhta.catomato Před 2 lety +1

    4:30 tight bound : Θ-notation (theta notation) is called tight-bound because it's more precise than O-notation and Ω-notation (omega notation).

  • @anindyadas6482
    @anindyadas6482 Před 3 lety +1

    Your way of teaching is excellent, Thank you sir....

  • @siddhijoshi8759
    @siddhijoshi8759 Před 4 lety +2

    OUR INDIA HAS THE BEST TEACHERS

  • @cagataytekin6372
    @cagataytekin6372 Před 4 měsíci

    abdul bari hocam, karizma bir dagsa sen everestsin

  • @somasundaramvenkatachalam8366

    No words to say simply fantastic

  • @eva42sh
    @eva42sh Před 2 lety

    Thank you Abdul - all of your videos are priceless! you're a legend. Thank you for helping to improve.

  • @RunningBlade_
    @RunningBlade_ Před 5 lety

    Excellent teaching skills.Best Ds & Algo teacher .Thank you for making this topic easy to learn and understand.

  • @adeypurohit01
    @adeypurohit01 Před 8 měsíci

    Such a Legend this Man is !
    Thank you Sir for making our lives simpler !

  • @sinistergeek
    @sinistergeek Před 4 lety +1

    8:49 when he sums all the part 1,2 and 3. Amazing trick!! I didn't have to prove nothing just understand the power the power of multiplication!!

  • @vakhariyajay2224
    @vakhariyajay2224 Před 2 lety +1

    Thank you very much. You are a genius.

  • @baotrantong3223
    @baotrantong3223 Před 4 lety +1

    Thank you very much for the lecture. You are the best teacher!

  • @1ycx
    @1ycx Před 6 lety +61

    Hello Sir. Put A Water Mark On Your Videos Such That They Won't Get Stolen.
    Have A Nice Day.

    • @sifatsingh7117
      @sifatsingh7117 Před 5 lety +2

      @@abdul_bari youtube has a feature to put watermark on the videos .. its somewhere in the settings

    • @KRVIJAY-es8xl
      @KRVIJAY-es8xl Před 3 lety +1

      He literally has his face on these videos, a watermark would be completely redundant here.

    • @sthembiso_mkhwanazi
      @sthembiso_mkhwanazi Před 3 lety

      @@KRVIJAY-es8xl The video has no face when is downloaded.

    • @KRVIJAY-es8xl
      @KRVIJAY-es8xl Před 3 lety

      @@sthembiso_mkhwanazi that's literally impossible. Cropping the face would cause half the video to be cut off

    • @sthembiso_mkhwanazi
      @sthembiso_mkhwanazi Před 3 lety

      @@KRVIJAY-es8xl What I am saying is that when you download the video it has no face, meaning no watermark. It is just like a video which has been captured and got uploaded, the head you see now is not part of the video but a link to the channel.

  • @nytlyf2085
    @nytlyf2085 Před 2 lety +1

    I love abdul sir! beautiful job done

  • @syedmuhammadabdullah2920
    @syedmuhammadabdullah2920 Před 6 měsíci

    best teacher ever . Want yo meet you sir

  • @vrushilpatel9570
    @vrushilpatel9570 Před 2 lety

    This Professor is a LEGEND!

  • @ary9344
    @ary9344 Před 2 lety +1

    Really glad I stumble into your Algorithm Playlist, with this Online learning going on, I've never been able to focus on my class, it's few weeks into the end of the semester and your style of teaching really understandable rather than other that using fancy words! Thank you!
    By the way why don't you upload again sir?

  • @kartikvaidyanathan1237

    You are a genius, because you simplify it so beautifully.

  • @SrijoniChakraborty
    @SrijoniChakraborty Před 5 lety +2

    Excellent teaching sir...i have already taken ur data structure course from udemy...it is just luv

  • @nagesh007
    @nagesh007 Před 2 lety +1

    Thanks for the shortcut

  • @pushpakumarnaidu5583
    @pushpakumarnaidu5583 Před rokem +2

    why the log n magically appear, previous videos on n-1 and n+1

  • @salariedgirllife
    @salariedgirllife Před 5 lety

    You are best algo teacher in the world

  • @SRNR_PODCAST.
    @SRNR_PODCAST. Před 3 lety +1

    a gold mine in youtube

  • @shantanukumar4081
    @shantanukumar4081 Před 3 lety +1

    doing a great job sir.
    thank u so much sir.

  • @mohamed_bin_hussein
    @mohamed_bin_hussein Před 5 měsíci +1

    03:55 property of logarithms = log(a) + log(b) = log(a*b)

  • @timlu3126
    @timlu3126 Před 2 lety

    This man save my life!!

  • @aaronaaronaaron5922
    @aaronaaronaaron5922 Před 3 lety

    what a wonderfull video 🤸‍♂️🤸‍♂️

  • @dream_work_slay
    @dream_work_slay Před 8 měsíci +2

    Shouldn't the relation at 7:42 be T(n)= T(n-k) + log(n-(k-1)) + log(n-(k-2))+......+log(n-1) + log(n)? and btw this whole playlist is a lifesaver! Gotta appear for my exams next week and I hope to do well ;)

  • @edwintan4784
    @edwintan4784 Před 5 lety +1

    How i wish u were my Professor. I’m sure i would have a solid computer science foundation:)

  • @ramishbatool2994
    @ramishbatool2994 Před 5 lety

    Your way of teaching is Excellent

  • @user-vk4pk7pd4v
    @user-vk4pk7pd4v Před 3 lety

    Amazing! It is explained very well.

  • @rohitprasanna4485
    @rohitprasanna4485 Před 11 měsíci +1

    i just love u sir!!!

  • @monhern2
    @monhern2 Před 4 lety

    You are the best teacher!

  • @saptarshibose9718
    @saptarshibose9718 Před 3 lety

    First time I solved this math. Thanks to you 🙏❤️

  • @mrak4102
    @mrak4102 Před 2 lety

    thanks for your great video

  • @subramaniyanvg6367
    @subramaniyanvg6367 Před 3 lety

    Finished this one too. Awesome explanation sir.

  • @sayanroy4781
    @sayanroy4781 Před 3 lety

    The last part😍😍😍 Thank You🙏🙏🙏❤❤❤❤

  • @aryanrahman3212
    @aryanrahman3212 Před 4 lety +1

    Sir may Allah bless you

  • @robinkumar9021
    @robinkumar9021 Před 5 lety

    your way of teaching is awesome

  • @navjeetkaur5742
    @navjeetkaur5742 Před 3 lety

    Thank u so much sir and the best part was short cut method. God bless u sir.

  • @yandemusonda6649
    @yandemusonda6649 Před 3 lety

    I swear , He teaches better than my actual university lecturer

  • @pedramfr3166
    @pedramfr3166 Před 7 měsíci

    thank you , It helped a lot 🙌

  • @tadele3947
    @tadele3947 Před rokem

    Amazing lecturer!

  • @kamranaesthetics
    @kamranaesthetics Před 2 lety +1

    Sir Sir Sir!....Love u❤️

  • @srinivasanbalakrishnan1921

    Very Clear explanation sir. Thank you.

  • @dolnuea
    @dolnuea Před 2 lety

    BEST TEACHER!!!!!!!!!!!

  • @VPannagS
    @VPannagS Před rokem +2

    Thanks!

  • @biswajitsahoo1456
    @biswajitsahoo1456 Před 3 lety

    Perfection level is 💯

  • @mohamed_bin_hussein
    @mohamed_bin_hussein Před 5 měsíci +1

    04:47 logarithm distribution

  • @ketara1234od
    @ketara1234od Před rokem +1

    THANK YOU VERY MUCH

  • @ramjitiwari8910
    @ramjitiwari8910 Před 4 lety +1

    Nice 🌼🌸

  • @TaleWeaverJo
    @TaleWeaverJo Před 2 měsíci

    No hatred Only likes for this legend

  • @qamarzain5216
    @qamarzain5216 Před 6 lety

    Sir i really appericiate your efforts the ways you teach us its really fantastic your video lectures helps me to understand the concepts in more detail thanks alot sir

  • @nouf5184
    @nouf5184 Před 2 lety +1

    Thank you!

  • @piyushgupta809
    @piyushgupta809 Před 6 lety

    Great Great level of explanation.

  • @MrMedievil98
    @MrMedievil98 Před rokem +1

    I love you, thanks

  • @yennirafsyam9628
    @yennirafsyam9628 Před 4 lety

    Thank you professor. Excellent teaching sir.

  • @mohammedadel8948
    @mohammedadel8948 Před 2 lety

    Thank you , I appreciate your help so much

  • @stacywen7908
    @stacywen7908 Před rokem

    This is amazing. Thank you so much.

  • @deepanshuyadavcs1379
    @deepanshuyadavcs1379 Před 5 měsíci

    very helpful

  • @dakshpatel1769
    @dakshpatel1769 Před 10 měsíci

    Excellent Sir ❤

  • @AllTheFishAreDead
    @AllTheFishAreDead Před 5 lety

    Question: rather than expanding in terms of factorial, can we not make the argument that each of the log calls is ~log(n) (the constant doesn't matter) and we have n of them so nlog(n)?
    EDIT: okay i guess this is addressed partially at the end, thanks!

  • @KCODivyanshuKatyan
    @KCODivyanshuKatyan Před 3 lety +1

    Someone please give sir a medal

  • @padaishadhaitechnically5537

    At 11:30, it should be O (n^2) when T(n-2)+1 = n/2*n=n^2/2

  • @mattbonnell3210
    @mattbonnell3210 Před 4 lety +4

    At 7:40, shouldn't your inductive case be T(n) = T(n-k) + log(n - k + 1) + log(n - k + 2) .... + log(n - 1) + log(n)? Love your videos!

    • @moh.absarrahman7651
      @moh.absarrahman7651 Před 4 lety +1

      Yeap. I got the same result. I was confused at first that's why I was checking comments and found your comment. Basically he skipped a line.

    • @zubaerahammed
      @zubaerahammed Před 6 měsíci

      Exactly

  • @noureddinedjema8463
    @noureddinedjema8463 Před 2 lety

    God Bless U .

  • @TechnologyViralNews
    @TechnologyViralNews Před 4 lety

    Bhut aacha sir

  • @subho296
    @subho296 Před 4 lety

    This is very helpful :)

  • @aousalsaadi7987
    @aousalsaadi7987 Před 3 lety

    a lot of thanks

  • @jenliang5292
    @jenliang5292 Před 5 lety

    thanks you sir. great video

  • @PramodRangaiah
    @PramodRangaiah Před 5 lety +1

    sir have a question, logn+log(n-1)+log(n-2)+log(n-3).....+log(1). In this if you take out log as common factor then it should be log[n+(n-1)+(n-2)+(n-3)+(n-4)+.....+1)] but you have taken as log[nx(n-1)x(n-2)x(n-3)x(n-4)x.....x1)]. Could you please explain how?

    • @murthyesn3553
      @murthyesn3553 Před 5 lety

      I have the same question .. i stopped the video after this formula.. then i have seen the comments .. you already asked this question.

    • @murthyesn3553
      @murthyesn3553 Před 5 lety

      log(n!) = log(1) + log(2) + log(3) + … + log(n)

    • @shantanoosinha
      @shantanoosinha Před 4 lety

      You misunderstood the property of log.
      Property:
      log ab = log a + log b
      so:
      log(1*2*3*4 .... (n-1)*n) = log 1 + log 2 + log 3 + log 4 + .... + log (n-1) + log n

  • @digeshkansara8173
    @digeshkansara8173 Před 5 lety

    Excellent sir

  • @stanleerubio
    @stanleerubio Před 5 lety +1

    Man you should've been my professor come save UNC comp sci

  • @Prateek_Mantry
    @Prateek_Mantry Před 2 lety

    thank u sir.

  • @shubhammishra8760
    @shubhammishra8760 Před 3 lety

    Happy teachers Day sir ..!!