1.8.2 Asymptotic Notations - Big Oh - Omega - Theta #2

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

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

  • @thenoobateverything1403
    @thenoobateverything1403 2 года назад +154

    I owe this man my cs degree. Greatest teacher of the generation

  • @rahulmathew8713
    @rahulmathew8713 6 лет назад +776

    Hello Sir, Please write a book on Algorithms with the topic you covered . Your simple way of explaining complex topics is must have reference for a professional and student. I sat an entire semester trying to understand concepts like Big O , until now no one properly explained how log came inside Big O, no one talked about Frequency count method and taking degree of the polynomial. Keep up the good work and we expect a really good book from you. Just do the same what you wrote on the board to a book as it is instead of bringing in unnecessary Maths symbols like other university professors. When you explain each and every step unlike other lazy Maths teachers who skip steps, makes you a really good teacher.

    • @at2031
      @at2031 5 лет назад +12

      @@abdul_bari yeeeeah. I agree with the guy. You explained the topic in such a simple way.

    • @simonedisalvatore6832
      @simonedisalvatore6832 3 года назад +4

      may i do that, i'll post it

    • @humblefool8564
      @humblefool8564 3 года назад +1

      @@simonedisalvatore6832 yas please

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

      I completely agree with you

    • @samiranroyy1700
      @samiranroyy1700 2 года назад +2

      Ye ssir

  • @edwintan4784
    @edwintan4784 5 лет назад +152

    Sir, u r really the best professor i ever encounter! I think u should have more courses on Udemy! Hopefully on all areas of Computer Science! I think there is a serious lack of someone who is able to teach in a way that is simple to understand. Please be the one to fill in this gap and i believe the Computer Science community will be very happy :)

  • @MrKrabs-xf2tr
    @MrKrabs-xf2tr Год назад +15

    Post breakup and abdul is my guru now. You've done the world a great service sir, and I thank you with all I have for that.

  • @enebz3746
    @enebz3746 Год назад +5

    Your videos are absolutely of finest quality. I have not encountered a teacher that convey information in such a simple, yet thorough matter as you do.

  • @techlunacy9595
    @techlunacy9595 2 года назад +7

    best explanation I have ever seen so far. little bit of correction log(1*1*1 up to n times will be 1 )
    so lower bound should be zero

  • @AtifShafiinheritance
    @AtifShafiinheritance 5 лет назад +17

    scratching my head "how to get into competitive programming" and I find your videos!

  • @anikacharjee3932
    @anikacharjee3932 6 лет назад +71

    No dislike represents how good u teach us. Many many thanks from Bangladesh...

  • @mahjabinfiza9982
    @mahjabinfiza9982 2 месяца назад

    07:52 such a awesome yet simple example! this one real life example literally made me understand the topic perfectly! i cannot thank you enough sir!

  • @subhayukumarbala1680
    @subhayukumarbala1680 3 года назад +8

    Sir, I have tried to learn about Asymptotic notations for a long time now. But wasn't able to grasp the concept. Thanks to you, I can now understand these.❤️

  • @trustkibou
    @trustkibou Год назад +8

    You are wonderful, Professor Bari. You are helping me SO much. I wish I had you worked at my Uni!

  • @ferozuddinshaik119
    @ferozuddinshaik119 4 года назад +177

    I felt relaxed when he stops after saying something and looking at camera 😂😂

    • @zameerrizvi7762
      @zameerrizvi7762 4 года назад +5

      Need people like to smile while studying 😂🤓

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

      Same here

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

      @unknown in that way u can learn fast u dumb

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

      @unknown bruhh, wtf are you even saying

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

      😂😂😂

  • @mounikabandapu8684
    @mounikabandapu8684 3 года назад +17

    Now I don't regret for not listening to online classes!
    Thank you sir:)

  • @simoncarter3541
    @simoncarter3541 4 года назад +57

    1:42 He can tell I'm impressed and he doesn't even know me

  • @GoogleUser-nx3wp
    @GoogleUser-nx3wp 9 месяцев назад +2

    Bro is so humble its so comforting

  • @RajeshKumar28sep
    @RajeshKumar28sep 5 лет назад +4

    Again an excellent video. At 5:08 onward, I think there is a place for n! on that scale ( well depending on what that scale is) n^k < 2^n < n! inf thus the n^k < 2^n < n!

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

      That's correct, I was confused when he said that we can't put factorial anywhere.

    • @tontacchi
      @tontacchi Год назад +2

      We can go even simpler. My Algorithms class just covered the fact that n! can be bounded to n^n. It can be shown that (n/2)^(n/2)

  • @missourikage
    @missourikage 11 месяцев назад

    You're so much more efficient than my algorithms professor, thank you !

  • @luckyvishwakarma8163
    @luckyvishwakarma8163 3 года назад +8

    Sir , the way of your teaching is amazing, you explained complex concepts in an easy and interactive way. Thank you, so much Sir ✨

  • @saifullahkhan6346
    @saifullahkhan6346 3 месяца назад

    tomorrow are my mids, don't understand a damn thing what my professor taught in class, and here I am learning everything in 20 minutes, salute........ Love from Pakistan

  • @Raju-ii7tu
    @Raju-ii7tu 2 года назад +2

    I purchased udemy course by paying 89$ and didn't understand. Of after explanation this genius man, all concepts are cleard and it's became easy to code too. Thanks a lot sir. You'll always be remember by me♥

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

    You just saved my grade in real variables. Please keep making more videos, you'll never know who you'll save

  • @vishalpanigrahi3149
    @vishalpanigrahi3149 3 года назад +3

    thank u sir...for making it so simple...i have a huge confusion on this topic but after watching ur video on assymptotic notation...i understand the whole concept..ur way of explaining is very simple..

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

    *Sorry sir your videos are so intresting that I always forget to hit on the like button.* Thank you sir for all these content. You are a blessing for me.

  • @indiansoftwareengineer4899
    @indiansoftwareengineer4899 6 лет назад +25

    Sir, all lectures are of best quality.
    Thank you for your efforts and soon I am applying for First Job and I will update you soon my status because your videos really help a lot.

    • @jagadeeshmandala4097
      @jagadeeshmandala4097 4 года назад +1

      These videos helpful?

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

      DId you get the job, Ganesh?

    • @atharvan2260
      @atharvan2260 2 года назад +2

      Did you get the job Ganesh! INDIA WANTS TO KNOW!!!

    • @vimalkumar281
      @vimalkumar281 Год назад +1

      why we put log 1 as 1 instead of 0

    • @lazycoder01
      @lazycoder01 Месяц назад

      @@vimalkumar281 it must've been a mistake that the teacher oversee

  • @srinivb1
    @srinivb1 6 лет назад +9

    Sir, your videos on Algorithm Analysis are simply amazing. Thank you so much for making such a wonderful videos, which are very useful.

  • @subhrajyotidas2569
    @subhrajyotidas2569 3 года назад +1

    sir you are my favourite. YOU teach algorithms like cakewalk.

  • @safiullahparvezmemon8669
    @safiullahparvezmemon8669 4 года назад +3

    Asalaam alikum sir after a long time i find such video from which i understand asymptotic notation JazakAllah sir

  • @siddharthverma4017
    @siddharthverma4017 6 лет назад +7

    I just increased the playback speed and your content was still understandable,that is sonething we don't see regularly keep up the good work sir

  • @utkarshraj3822
    @utkarshraj3822 5 лет назад +5

    Sir your video made my asymptotic notation concept very strong....thank you

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

    Sir also for n factorial we can take omega(n)

  • @Akshay-Raut
    @Akshay-Raut 4 года назад +4

    This is great sir. I am finally learning algorithms properly through your videos.

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

    abdul bariji thank you so much. what a fantastic teacher you are. crisp and clear explanations.

  • @NOORK03
    @NOORK03 8 месяцев назад

    i honestly felt like giving up in my cs degree, and then you showed up on my page. I hope you know you made me feel hopeful!

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

    Today I finished this video. Well explained sir i tried graphing and I understood clearly but to understand more clealy when there is no theta bound I have to see how graph differs for different lower bounds with n factorial example. Hats off to you sir.

  • @JimmyBob708
    @JimmyBob708 Год назад +1

    5:10 - but you can same the same thing for n^2 and 2^n. Because if you use any number below 3, n^2 will be greater than 2^n. So it all depends on the value of n...

  • @rajeshdhadake3710
    @rajeshdhadake3710 3 года назад +1

    Sir By watching this lectures
    I just bow down to you

  • @abrarchowdhury5687
    @abrarchowdhury5687 5 лет назад +4

    thank you for the series. I am planning to go on with the series till the end because its that good. However, i do have a suggestion on how this series can become even better.
    It would have been great if you provided some problems to solve after you finish teaching a certain topic. and then also provide solution to those problems so that we could check if we got it right. Incase we don't get it right, we can correct ourselves by looking at how you solve it.

  • @asishraz6173
    @asishraz6173 4 года назад +4

    This is one of the great explanation on Asymptotic Notations. Thank you so much Sir.

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

    frequency count method was not able to understand but your videos a lot help . you are awesome sir and this video too

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

    Sir your way of teaching is very simple and good

  • @abhinashjena216
    @abhinashjena216 Год назад +2

    Sir literally you save me , a big thank you from my side. 🙏🙏🙏🙏🙏🙏

  • @treasure1409
    @treasure1409 4 года назад +4

    Hello sir superb explanation .Way to go hope in future you make more videos hope your teaching will reach every corner of the world.
    No words to say

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

    this man da goat he carryin all of us through college

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

    You're the best teacher! Thanks for this video it helped me a lot !!

  • @AdityaSharma-rq5jt
    @AdityaSharma-rq5jt 3 месяца назад +1

    Just creamy and smooth as we want... ❤ Absolute treasure

  • @RuturajVartak
    @RuturajVartak 4 месяца назад +1

    a lot of these things are coming as magic and enthralling me

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

    Best video on youtube. Thank you so much for making this amazing video!

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

    What I don't understand is why is everything converted to n on the right for upper bound and 1 to the left for lower bound (4:22). Is there a specific reason we do that? For example, what if for n! i did something like n!/2< n! < 10n! just like we did in (n^2)logn +n at 2:48?. Now I have n! on both sides so can I express n! as a tight bound? If not, why?
    By the way amazing content!!. very helpful and concise. Very easy to understand.

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

      Bro did u find ur answer?? If yes then what is the reason??

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

      I think it is not in the "class" sir talked-about

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

    Thanks a lot sir. I understood this concept very well. You are a good teacher.

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

    Thanks sir...your videos really helped to clear the concept of time complexity and asymptomatic notation

  • @shashishekhar7649
    @shashishekhar7649 3 месяца назад

    Your calm demeanour helps so much. The way you simplify everything and how do you always know the doubts that come to mind. I guess this is a sign of a great tutor. To know where the students might struggle and cover those things before they become a trouble. Hats off to you sir. I became your fan in the first few videos only. If only I knew about your videos earlier. But koi baat nahi sir "der aaye durust aaye". 🙂🙂 12th ke baad pehli baar wo wali excitement feel ho rahi hai. Main ruk nahi pa raha hun. Lekin saturate na ho jaun isiliye ruk ruk ke notes banate hue padh raha hun. Just like those beautiful old days. You made me remember how much I used to love mathematics. Thank you for existing sir. It's a blessing to know you.
    I have a doubt sir :
    For the functions "n!" and "log(n!)"; can I write the lower bound as "n" and "log(n)" respectively ?? I think this satisfies the inequality too.

    • @abdul_bari
      @abdul_bari  3 месяца назад

      Lower bond is defined as 1 Only
      It is like a standard

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

    ultimate style of teaching sirji.a big thanks to you.

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

    You are very good teacher sir. Thank u for this algorithms course. I request you to keep your courses free as this one.

  • @giovangonzales6862
    @giovangonzales6862 Год назад +2

    Life saver! This was a great instruction on the topic!! Thank you!

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

    sir thank you so much. You made my concepts so clear. Tomorrow I have an exam and you save me. May you have everything in your life you want. Bless you

  • @adipratapsinghaps
    @adipratapsinghaps 3 года назад +4

    In coding interviews, they expect you only to analyse the O() condition. The reason being they themselves do not know how to analyse the other two, secondly it is not always possible to come up with a theta. But the prior reason is the most prevalant. I am watching your videos instead of reading CLRS.

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

    Thank you sir ....U are easy way to understand to us ....Like dis type of related videos will upload more sir

  • @Abir_Hasan_Onowy
    @Abir_Hasan_Onowy 3 года назад +1

    I just love your style of explaining 😍

  • @pabitrakb5291
    @pabitrakb5291 2 года назад +2

    Cristal clear concept
    Thank you sir 🙏

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

    Wow sir These lectures are very simple and easy to understand
    I wish our teachers taught us in the same manner
    Thank you so much and I appreciate you for what you are doing
    These lectures helped me a lot

  • @ErrorXTech
    @ErrorXTech Год назад +1

    2:16 let's say n = 1, then how is the right-hand side satisfying the condition with the middle one? right-hand side becomes zero where as the middle becomes 1.
    it would be looks like
    0

  • @xxxhomiexxx5
    @xxxhomiexxx5 5 лет назад +15

    Absolutely incredible, thank you so much

  • @emilyhuang193
    @emilyhuang193 4 года назад +3

    Thank you Sir. I can't believe you made it so easy to understand.

  • @warid49
    @warid49 6 лет назад +48

    Very well explained, Thanyou so much from USA.
    PS: My professor sucks , doesnt explain anything at all .

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

    Thank you professor. These are some spectacular explanations.

  • @SophieZhu-h7u
    @SophieZhu-h7u 2 месяца назад

    Professor you saved my life.

  • @farhamun6511
    @farhamun6511 6 лет назад +18

    Sir, do you have tutorials for any other course? I want to know because, the way you explain any topic is very clear.

  • @vakhariyajay2224
    @vakhariyajay2224 2 года назад +2

    Thank you very much. You are a genius. 👍👍🔝🔝👌👌🙏🙏

  • @mikedelta658
    @mikedelta658 Год назад +1

    How amazing your explanations are!!!

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

    the video is literally awesome ..... and the example of mobile phone.....

  • @khadeejahaider2947
    @khadeejahaider2947 3 месяца назад +1

    At 1:14 he is taking n^2 for theta which is a lower bound and in lower bound we cannot take n^2 we can only take n under root n and log n so why is he taking n^2 please explain n^2 is an upper bound

    • @coolone5561
      @coolone5561 3 месяца назад +2

      I think he is wrong. n^2 can also be considered for theta & omega too, we can say by looking at Definitions. This example can explain why we cannot use O, omega, theta for worst, best, average cases. Because, cases happen according to the input.

  • @qfjqwfaf5693
    @qfjqwfaf5693 10 месяцев назад

    THANK YOU ABDUL SIR, YOU'VE SAVED MY LIFE

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

    Great, clear and simple explanation. Big thanks.

  • @shivambansal3560
    @shivambansal3560 5 лет назад +23

    Sir please make a course on Competitive Programming on udemy.

  • @aouerfelli
    @aouerfelli 9 месяцев назад

    You can say that for every natural number k, you have n! = Omega(n^k) so Theta(n!) sits before Theta(n^n) and after all the Theta(n^k) for k all.
    Now Theta(n!) can be a reference Theta itself. But if you want an equivalence using powers then Striling's formula gives you that n! is Theta(sqrt(n)(n/e)^n) or Theta(n^(n+0.5)/exp(n)).
    Also, log(n!) is Theta(n log(n)). You can prove that once again using Stirling's formula.

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

    ❤ Very Helpful. Keep up the good word Sir.

  • @sohailshah1574
    @sohailshah1574 Год назад +1

    Thank you so much sir....
    I will invite you in my graduation ceremony

  • @ntin5236
    @ntin5236 Год назад +3

    In asymptotic notations 1, he said that n, log n, n^2, 2^n, n^k, n!, and n^n are part of the upper bound, and doing Omega or Theta of any of these aside from n is incorrect. But here, he does theta(n^2). Why is that?

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

    This man is so good. Wow!

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

    hello superb teaching. u r helping many students that's really great without expecting anything. god bless u sir

  • @hemantbhangale9505
    @hemantbhangale9505 4 года назад +1

    Excellent progression and crystal clear content. Thanks!

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

    you are one of my best teacher

  • @RaniLink
    @RaniLink 4 года назад +3

    Hello sir,
    I believe that you can say that lower bound on log(n!) is nlog(n) also, as such:
    log(n!) = log(1)+ log(2) + ... + log([n/2]) + ... + log(n) > log([n/2] )+ log([n/2]+1)+ ... + log(n) > (n/2)log([n/2] )
    correct me if I'm wrong, but that means that there is a tight bound for log(n!).
    thank you for your lectures! you are an amazing teacher!

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

      Dono taraf n ki value same rakhega na ek jagah n/2 and ek jagah n kese chalega?

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

      Nhi to sabhi ke thita oh ban jayega 😅

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

      You are right, that's the lower bound not the tight bound

  • @shruthiraj5345
    @shruthiraj5345 6 месяцев назад

    The best ever explanation 👏

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

    at 1:57, teacher the value of n^2 logn +n is greater than 10n^2 logn for n=1.

  • @mananshah3581
    @mananshah3581 Год назад +1

    3:54 Can't we use n^0 (N raised to power 0) to make it theta? Like ~ n⁰ x n⁰ x n⁰ x n⁰ - - - - - ≤ n!≤ nⁿ ; I understand it will still get reduced to 1, but if we keep the left hand term in terms of n, won't this work? (n⁰ ≤ n!≤ nⁿ)

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

    thank you so much❤❤, I was struggling to know the difference

  • @AchalleCollins
    @AchalleCollins 11 месяцев назад

    Thank you sir for making me understand this,I faced difficulties here

  • @kungayounten6346
    @kungayounten6346 3 года назад +1

    Thank you, sir your explanation is very clear and on to point . I'am very excited to learn data structures from your Udemy course.

  • @dinushachathuranga7657
    @dinushachathuranga7657 Год назад +1

    Excellent content as other videos. Thanks a lot sir.❤❤

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

    Sir, in the examples why we are not taking omega(n) instead of omega(1) ?

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

    sir continue your video , we are geeting problem in linear searching, stack as well as much more

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

    Thank you I learn lots from your learnings❤

  • @NeerajSharma-nb5oj
    @NeerajSharma-nb5oj 5 лет назад +2

    You are the best, you saved me. Thank you So much.

  • @saifmd1729
    @saifmd1729 7 месяцев назад

    plz cover more topic sir.....we want to learn more from u"❤❤❤❤❤❤

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

    sir i am jagruth friiend , we both listened to your classes now we are class toppers thank you for teaching us.

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

    Thank you so much for uploading these, you teach very well!!!

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

    are bahut OP sir ji. Maja hi aa gaya

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

    Thank u for uploading this video ....this was very much helpful

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

    very neatly explained 👌👌