Algorithms: Big O Notation Examples 2

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 82

  • @muhammadshehryarasad123
    @muhammadshehryarasad123 2 роки тому +35

    The fact I have exam at 10am and i am watching this at 3am and actually learning shows how good of a teacher he is. Thanks for posting this.

    • @malekbaghdadi4326
      @malekbaghdadi4326 5 місяців тому +1

      same situation even the exam time, but i am watching this at 1 am

  • @xabZAP
    @xabZAP 5 років тому +230

    my left ear enjoyed this video

    • @ramadanibrahim
      @ramadanibrahim 5 років тому +3

      and my right ear also did

    • @codewithrohaan
      @codewithrohaan 4 роки тому

      Don't know why the right channel isn't working

    • @couldrain2971
      @couldrain2971 3 роки тому +3

      @Devin Nunez Omg I thought something was wrong with my earphone :O

    • @jpsy
      @jpsy 3 роки тому

      @@couldrain2971 I thought the same xD

    • @Demaxerpvp
      @Demaxerpvp 3 роки тому

      you can turn on mono audio to fix it

  • @RamytRamyt
    @RamytRamyt 7 років тому +87

    Out of all the explanations I've watched, forums I've read, text I've banged my head against for the past 4 hours, I would have to say that THIS video did the trick. Thank you! Just wish it was in stereo instead of mono ... LOL

    • @discretemathvideos204
      @discretemathvideos204  7 років тому +5

      Glad it helped, thanks for the feedback! I assumed it was recording in stereo, but thanks for the heads up. I'll check it in the future!

    • @jays2408
      @jays2408 6 років тому +8

      I agree, I spent 3 hours in the library, the book, was like WTF? then I watched this video and I got it.

    • @ServitorSkull
      @ServitorSkull 2 роки тому +1

      4 years later, this is still helping people, ergo ME, so thanks!
      *huge sigh of relief*

    • @fagbenromodupeola3095
      @fagbenromodupeola3095 7 місяців тому

      amazing tricks indeed

  • @VexedlyYT
    @VexedlyYT 5 років тому +15

    You cannot imagine how happy I am to find your channel. Thank you so much for existing in the same timeline and the one I'm taking discrete math in. Just in time for midterm 2...

  • @zeplin383
    @zeplin383 5 років тому +29

    Why tf does my textbook just not directly say "bumping everything in this polynomial to the highest degree" like this guy right here... I spent half an hour trying to make sense of inequalities that basically led to this, but I had no way of knowing until now.

    • @SumanPokhrel0
      @SumanPokhrel0 4 роки тому

      Can u help me, with a QSN. Why do we need to even Bump up the values? i searching for it for like hours now

  • @navjotsingh2251
    @navjotsingh2251 4 роки тому +4

    I’m from the UK and this is very helpful, my university lecturer is useless at giving detailed explanations and gives us hard questions to answer which include stuff he hasn’t even covered. Really annoying. You have explained all I need to know, thank you very much.

  • @satellitesage2487
    @satellitesage2487 5 років тому +14

    Another video with examples involving logarithms say, "Show that 5logx is O(x)" would have been great 'cause your explanations are way better than others.

    • @discretemathvideos204
      @discretemathvideos204  4 роки тому +2

      Sorry I hadn't seen these comments earlier! Thanks for the positive feedback! In the course i teach, I don't go too deep into logarithms and unfortunately, that requires a different approach. Looking at a graph is a quick way to see that it doesn't take long for x to get greater than log x.

  • @keronasr6547
    @keronasr6547 Рік тому

    After 20 different Big-Oh videos, I finally found the one. Tysm!

  • @ThatGuy-zw4le
    @ThatGuy-zw4le 5 років тому +52

    my right ear is lonely

  • @Luingus
    @Luingus 2 роки тому +1

    thank you. this is the best explanation ive found for how to prove and disprove Big O.

  • @setiapd3758
    @setiapd3758 4 роки тому +5

    your explanations is better than my university lecturer. Everything make sense now.. Thank you

  • @scarletdrake556
    @scarletdrake556 Рік тому

    This is why UA-cam is amazing. Thank you.

  • @kevalgandhi9162
    @kevalgandhi9162 Рік тому

    Real good job, got it first time ever, been seeing it so many times, Thank you for posting this content!!

  • @ryanciminski4695
    @ryanciminski4695 3 роки тому

    WOW! You are very talented at teaching. Bravo! Sorta disappointed that I just now found your channel. At least there are a few more weeks in the semester,

  • @Tribe3414
    @Tribe3414 5 років тому +5

    Thank you so much from TURKEY, great explanations :)

    • @discretemathvideos204
      @discretemathvideos204  5 років тому +1

      Thanks for the positive feedback! Glad to see it's helping people all over the world!

  • @radhashreebose
    @radhashreebose 3 роки тому +1

    Your explanation is the best.. Hands down.. Thank you soo much sir.

  • @snarf45
    @snarf45 Рік тому +1

    My left ear loved this

  • @gabihagelstein515
    @gabihagelstein515 6 років тому +2

    I FINALLY GET IT!!! Please please please make videos on omega and theta!

    • @discretemathvideos204
      @discretemathvideos204  5 років тому +1

      Thanks for the positive feedback! Unfortunately that isn't really covered much in the course I teach but I believe one of them is just an upper bound and the other is both the lower and upper bound so hopefully the same basic approach might work.

  • @btobin86
    @btobin86 5 років тому +5

    In the second example, why does c have to equal x. Couldn't it equal like x^4 and then x^6 would always be greater than x^3 + 5x?

    • @ShaneFolden
      @ShaneFolden 5 років тому +2

      thats because its a constant, C won't grow with the rest of the function. If your x is 3, then your c would be 3^4 or 3^6. However since its a constant, c is going to stay the same, at 3^3 even when x is a million, and then the equality wouldn't hold. if your c was 1,000,000^4, once x hits 2,000,000 it wont hold etc since x can grow and c cant.

    • @discretemathvideos204
      @discretemathvideos204  4 роки тому

      I hadn't realized i had all of these comments, sorry! The idea explained below by Shane is the basic idea. C has to be a constant and this inequality has to hold for all x > k. So no matter what you pick you for C, x can always get large enough to overcome that.

  • @ibrahimrajabibrahim301
    @ibrahimrajabibrahim301 6 років тому +1

    You're a life saver bro!

  • @hancy1234
    @hancy1234 3 роки тому

    u are a life savior

  • @HalloBro393
    @HalloBro393 6 місяців тому

    If I get something like 7x3 + 3x2 + 23 is O(x4). So do I bump the exponents to x4 like;
    7x4 + 3x4 + 23x4. Right or no??
    Help

  • @celal105
    @celal105 6 років тому +2

    You are a lifesaver!. thank you very much!!

  • @rohanramani6243
    @rohanramani6243 5 років тому +1

    Thank you very much. Your video helped a lot.

  • @platcrab4890
    @platcrab4890 4 роки тому +1

    youre a god amongst men

  • @agentbeanfan5075
    @agentbeanfan5075 2 роки тому

    you're the BEST!

  • @mahmoudnadi1992
    @mahmoudnadi1992 6 років тому +1

    For the fisrt example; cant it be x>0? when x = 1, l.h.s = r.h.s making l.h.s

    • @discretemathvideos204
      @discretemathvideos204  6 років тому

      The idea is that x represents the size of the problem and usually 0 doesn't make sense as a problem size for an algorithm. It might be technically ok to use x=0 but we usually use a positive integer.

  • @djtygre
    @djtygre 2 роки тому

    crisp explanation, thanks

  • @padmasinichary1552
    @padmasinichary1552 3 роки тому

    By definition C is constant. But can C takes values in terms of X ?

  • @jyotipurba3513
    @jyotipurba3513 3 роки тому

    Thnku so mch ❤️❤️❤️it really helped me a lot!!!

  • @منوعاتفوتبول-د5ظ
    @منوعاتفوتبول-د5ظ 2 роки тому

    thank you perfect explaining

  • @HalloBro393
    @HalloBro393 6 місяців тому

    You told us how to disprove big O. How to disprove big omega and big theta?

  • @rajaramsarkar4486
    @rajaramsarkar4486 4 роки тому +1

    Thanks for this video...

  • @moeeza.minhas4041
    @moeeza.minhas4041 3 роки тому

    Please make a video on big omega and theta

  • @kristdhcgh7490
    @kristdhcgh7490 5 років тому +1

    LIFE SAVER

  • @breaditor
    @breaditor 2 роки тому

    my discrete math professor is ass! thanks for the explanation!!!!

  • @Sid-xt3kt
    @Sid-xt3kt Рік тому

    I dont understand the 2nd example, like why are you dividing by x^3 on RHS

  • @ashleylove6840
    @ashleylove6840 3 роки тому

    can you do this to every equation? plz help :(

  • @tryfonsot.2717
    @tryfonsot.2717 5 років тому

    A big help. Thanks

  • @greenvirusgraphics1096
    @greenvirusgraphics1096 6 років тому

    What if it's a fractions?
    Like this:
    3x^2+24x+2/x + 1

    • @discretemathvideos204
      @discretemathvideos204  5 років тому +1

      Sorry that I've been so behind on catching up with comments! The approach in this video is basically assuming you have a polynomial function, not a rational or otherwise. In the example you mentioned above, once x (or n) got large enough, 2/x would get very small very quickly so I think you would still consider that function O(x^2)

  • @piglink10
    @piglink10 5 років тому

    Why cant x be greater or equal to 1 since the equality still holds?

    • @discretemathvideos204
      @discretemathvideos204  4 роки тому

      Sorry I hadn't seen these comments earlier! I'm not sure which part you are referring to. But there is no unique choice for C and k, so it's possible that k=1 works in the case you are referring to.

  • @akashsangwan3964
    @akashsangwan3964 6 місяців тому

    sound problem

  • @uditsaxena3844
    @uditsaxena3844 5 років тому

    thanks sir

  • @xxLHxx
    @xxLHxx 6 років тому

    THANK YOU JESUS

  • @HiPh0Plover1
    @HiPh0Plover1 4 роки тому +1

    good because if you not that smart at least with his cheat you can get some points , not good it is still not formal proof the teacher would want

  • @sumtingwonher2461
    @sumtingwonher2461 2 роки тому +1

    No

  • @Bigmeattyrone
    @Bigmeattyrone 6 років тому +2

    U just saved my discrete math final man thank u

  • @fagbenromodupeola3095
    @fagbenromodupeola3095 7 місяців тому

    Amazing explanation, thanks for this video - bumping tricks its amazing

  • @HornyVegan
    @HornyVegan 7 років тому +2

    Great content

  • @HalloBro393
    @HalloBro393 6 місяців тому

    If I get something like 7x3 + 3x2 + 23 is O(x2). So do I bump the exponents to x2 like;
    7x2 + 3x2 + 23x2. Right or no??
    Help