What Is Asymptotic Analysis? And Why Does It Matter? A Deeper Understanding of Asymptotic Notation.

แชร์
ฝัง

ความคิดเห็น • 110

  • @BackToBackSWE
    @BackToBackSWE  5 ปีที่แล้ว +19

    Table of Contents:
    Quick Intro 0:00 - 0:22
    For Loop Madness 0:22 - 0:31
    What Does Asymptotic Really Mean? 0:31 - 1:27
    Tail Behavior 1:27 - 1:48
    Why Elapsed Real Time Is Unreliable 1:48 - 2:31
    What We Should Be Interested In 2:31 - 2:55
    Racing 2 Computers 2:55 - 3:40
    Who Will The Winner Be? 3:40 - 3:52
    The Approximate Running Times 3:52 - 4:28
    Investigating Linear Functions 4:28 - 5:28
    The Graphs Share Something In Common 5:28 - 6:14
    Why Do We Drop Constants? 6:14 - 6:40
    What I Really Mean When I Say "Linear" Time 6:40 - 7:03
    Wrap Up 7:03 - 7:45
    Notes:
    0:28 -> For those curious, the work that the 2 for loops do would be bounded by O(n). This is because for each of the n iterations of the outer loop, we will perform 10 iterations in the inner loop...do you notice how n does not influence the inner loop? In fact, we notice that the work of 10 (from the inner loop) for each of the outer loop iterations is...constant. Constant in time......O(1) time. So O( n * 1) = O(n). Where n is a measure of an arbitrary input.
    2:54 -> Credits to Clyde Kruskal & Mohammad Nayeem Teli (both teachers at the University of Maryland) for the example of Computer A & computer B running 2 different algorithms. That was not an example that I created myself.
    5:01 -> no idea why the video looks faded out...camera was acting weird.
    6:40 -> Big O is only 1 way we can bound tail behavior. There are others.

  • @Nyquiiist
    @Nyquiiist 4 ปีที่แล้ว +21

    There are too many sites that try to give a quick crash course a month or two months before the interview, but I really like how dive deeper and take your time to explain things. Also love the fact that your content is more academic in nature. Thank you for your hard work man, its much appreciated, def gonna check out your platform.

  • @khsprashanth
    @khsprashanth 4 ปีที่แล้ว +40

    Best Explanation EVER!!!! I Mean it! ASYMPTOTICALLY

  • @arobot4398
    @arobot4398 3 ปีที่แล้ว

    bro ur better than 99% of the online educators and even some professors!

  • @prashantpandya6992
    @prashantpandya6992 4 ปีที่แล้ว +8

    Thank you SO MUCH! The best introduction to this concept that I have come across.

  • @MorseAttack-b1f
    @MorseAttack-b1f 11 หลายเดือนก่อน

    Wow this was so clear! I love the graphics popping in and out and the way your voice inflections keep us alert. Great teaching skills!

    • @BackToBackSWE
      @BackToBackSWE  11 หลายเดือนก่อน +1

      Happy Holidays 🎉 Thank you for your kind words! We'd love to offer you a 40% Off our exclusive lifetime membership just use the code CHEER40 - backtobackswe.com/checkout?plan=lifetime-legacy&discount_code=CHEER40

  • @JRK_RIDES
    @JRK_RIDES 4 ปีที่แล้ว +5

    Two years in college and it wasn't this clear for me.....Thanks, man!

  • @kelvinmacharia3715
    @kelvinmacharia3715 3 ปีที่แล้ว +2

    I am getting started with algorithms.Still confused but this video made it a little more clearer. Good job bro

  • @ak-hj4xw
    @ak-hj4xw 4 ปีที่แล้ว +17

    Absolutely phenomenal. I just wish you applied examples, to show us how you find the notations. Too bad you didn't cover Recurrence relations as well :(

  • @nervous711
    @nervous711 2 ปีที่แล้ว

    Your channel is a lifesaver for self-taught programmers...

    • @BackToBackSWE
      @BackToBackSWE  2 ปีที่แล้ว

      Thank You!!
      Do check out backtobackswe.com/platform/content

  • @roscko3142
    @roscko3142 8 หลายเดือนก่อน

    Thank you for the examples that you used. This is such a good and less scary introduction to time complexity analysis

  • @luckyjinx226
    @luckyjinx226 4 ปีที่แล้ว +14

    did I understand shit? nah
    did I enjoy this due to your fun energetic personality? hella

    • @BackToBackSWE
      @BackToBackSWE  4 ปีที่แล้ว +2

      that's what it's all about

  • @MBdz557
    @MBdz557 3 ปีที่แล้ว

    I was having a problem with understanding what "asymptotic" really mean and you helped me ..thank you very much

  • @benjaminragland7940
    @benjaminragland7940 ปีที่แล้ว

    Boyyy YOU GOING CRAZY. Great Explanation!

  • @stanmarsh9742
    @stanmarsh9742 9 หลายเดือนก่อน

    Thank you so much for helping me understand this concept, this was a great explanation.

  • @DennisSmdFreefightTrainer
    @DennisSmdFreefightTrainer 4 ปีที่แล้ว +3

    This made it indeed clearer! Thanks a lot

  • @shreyaskharbanda2777
    @shreyaskharbanda2777 4 ปีที่แล้ว +1

    By far the best explanation I have encountered!

  • @KB24DW8
    @KB24DW8 5 ปีที่แล้ว +4

    yo man thanks for blessing up with such informative videos. Your Asypmptotic videos cleared so many confusions. Just one thing, can you make a video explain how to add and mull algos. Like how do we know by analysing algos if its linear,quad,log, n log n etc

    • @BackToBackSWE
      @BackToBackSWE  5 ปีที่แล้ว

      haha nice, yeah I'll do that

  • @chalupa501
    @chalupa501 4 ปีที่แล้ว +3

    Very good! Of course I Subscribed. I was looking for a function of asymptotic penetration in quantum immersion and you made it very clear. Thanks.

  • @IsayaOdongo
    @IsayaOdongo 8 หลายเดือนก่อน

    Great explanation

  • @lokeshprajapati9197
    @lokeshprajapati9197 5 ปีที่แล้ว +3

    hey bro, i wanna learn asymptotic and bigo notation completly. i watched your video it help me. but i want learn completly. could u suggest books or link or make a complete playlist on it.
    btw u r awesome in explain topics.

    • @BackToBackSWE
      @BackToBackSWE  5 ปีที่แล้ว

      I made a video on it a while back but it was badly shot and badly edited (you can find it on the channel). I will redo it but that video (if you can bare the bad quality lighting) is pretty exhaustive.

    • @lokeshprajapati9197
      @lokeshprajapati9197 5 ปีที่แล้ว +1

      @@BackToBackSWE ok i will try or why you not planing to shoot it again. in my college time bigo notation is hard to understand. but now atleast i am understanding it. what is the actual meaning of log(n).
      Thanx

  • @c.d.premkumar6867
    @c.d.premkumar6867 3 ปีที่แล้ว

    Excellent ! I haven't come across such a fantastic explanation so far !

  • @maidelriog
    @maidelriog 9 หลายเดือนก่อน

    How did you come up with the 5.5 hours and 20 minutes? Where did you get those values from?

  • @lauralorenaromeromartinez657
    @lauralorenaromeromartinez657 4 ปีที่แล้ว +1

    Thanks, you explain very clear.

  • @guliteshabaeva8922
    @guliteshabaeva8922 2 ปีที่แล้ว

    that is very very good explanation

  • @sammeri6997
    @sammeri6997 5 ปีที่แล้ว +3

    You are doing such an amazing job, keep them video coming...

  • @ennymore6124
    @ennymore6124 3 ปีที่แล้ว

    I really love your videos. Thanks so much for clarifying so many black knowledge holes 🕳 for me!

  • @sahithimangalapalli353
    @sahithimangalapalli353 2 ปีที่แล้ว

    That's a great explanation

  • @prannavkrishna1004
    @prannavkrishna1004 4 ปีที่แล้ว +2

    such a clear explanation! thanks!!

  • @davidkorn5253
    @davidkorn5253 2 ปีที่แล้ว

    love the energy !

  • @weronikaka6208
    @weronikaka6208 ปีที่แล้ว

    ohh my f god! this was so quick, yet so helpful. thank you so much!

    • @BackToBackSWE
      @BackToBackSWE  ปีที่แล้ว

      Thank you, means a lot 🎉 You can also check out our free DSA course - backtobackswe.com/

  • @hetalrachh5665
    @hetalrachh5665 4 ปีที่แล้ว +6

    Thank you so much for such a clear explanation :)

  • @Eww...NotTheHumansAgain
    @Eww...NotTheHumansAgain 2 ปีที่แล้ว

    Thank you very much!

  • @ahmedelsabagh6990
    @ahmedelsabagh6990 5 ปีที่แล้ว +1

    Good explanation
    Thanks

  • @florinpricopie9112
    @florinpricopie9112 3 ปีที่แล้ว

    Always a pleasure to watch your video 😇.

  • @bh3302
    @bh3302 2 ปีที่แล้ว

    Fantastic video, love the ending 😂

  • @1vwboxcar
    @1vwboxcar 2 ปีที่แล้ว

    I wasn't looking for this video and stumbled into it.
    Your first graph is incorrect.
    It should be 1/x^2
    Hope this helps

  • @allisterlim8988
    @allisterlim8988 3 ปีที่แล้ว

    you are the GOAT

  • @sii479
    @sii479 4 ปีที่แล้ว +1

    a really great job

  • @engineering-ux
    @engineering-ux 4 ปีที่แล้ว +2

    Awesome :) Thanks for this.

  • @moism
    @moism 2 ปีที่แล้ว

    Thanks!

  • @yicai7
    @yicai7 4 ปีที่แล้ว +1

    Helpful!
    Thanks

  • @j_5244
    @j_5244 4 ปีที่แล้ว +1

    Thank you!

  • @MyFictionalChaos
    @MyFictionalChaos 3 ปีที่แล้ว

    I really appreciate this explanation because you made a point to explain why asymptotic complexity is important

  • @Diamond-ej3fm
    @Diamond-ej3fm 7 หลายเดือนก่อน

    thank you!

  • @workflop4117
    @workflop4117 4 ปีที่แล้ว +1

    Subscribing is a MUST!

  • @ozcanf6680
    @ozcanf6680 3 ปีที่แล้ว

    Great explanation!

  • @Each1Teach1Tech
    @Each1Teach1Tech 4 ปีที่แล้ว

    This is mind blowing how you explained it. Keep it up. I subed asap.

  • @ThatlazyiOSGuy
    @ThatlazyiOSGuy 4 ปีที่แล้ว +1

    For your 100k milestone

  • @MichaelWaisJr
    @MichaelWaisJr 4 ปีที่แล้ว +1

    Aaaaaahhhaaaaa!!! I just got it!!! Thanks, man! :D

    • @BackToBackSWE
      @BackToBackSWE  4 ปีที่แล้ว +1

      cool

    • @MichaelWaisJr
      @MichaelWaisJr 4 ปีที่แล้ว

      Back To Back SWE Yes, you have contributed greatly to my Mad Ninja Skills! :D Thank you!!

  • @samuelgomes6226
    @samuelgomes6226 3 ปีที่แล้ว

    what is "li code" that he talks about at 2:00 ?

  • @hullopes
    @hullopes 4 ปีที่แล้ว +1

    Wow! It's was very clear (a little bit more clear than Udi Manber(1989) hahaha).

  • @surajmaurya3250
    @surajmaurya3250 3 ปีที่แล้ว

    Thanks 🙏🙏

  • @mmaranta785
    @mmaranta785 3 ปีที่แล้ว

    Good video

  • @kwameaddo1007
    @kwameaddo1007 2 ปีที่แล้ว

    Bro thanks

  • @mareshbm2731
    @mareshbm2731 4 ปีที่แล้ว +1

    Thanku......

  • @anmolsingh4026
    @anmolsingh4026 4 ปีที่แล้ว +1

    A very humongous thanks to you 🙌

  • @airysm
    @airysm 5 ปีที่แล้ว +1

    Hi,
    Let's say I was going through a list of numbers and "offering" them into a priority queue whose offer function is log(n),
    Will this be n*log(n) because I'm doing a log(n) operation n times or will it just be O(n) because the operation itself doesn't matter since the algorithm runs n times? I think I saw you say something about algorithmic complexity vs runtime complexity in one video but I couldn't find it again lol

    • @BackToBackSWE
      @BackToBackSWE  5 ปีที่แล้ว

      Since you do n operations that take O(log(n)) time it will take O(n * log(n)) time. This does not pertain to heapsort. For heapsort, building the heap takes ϴ(n) time and the extraction phase happens roughly n times and each extraction of the min/max element takes O(1) time (we just pull it from index 0 in the array representing our heap) and then the heapification "downward" of the element swapped to the root will take O(log(n)) time.
      So yeah, for what you said, O(n * log(n)).

  • @darrenchen417
    @darrenchen417 5 ปีที่แล้ว +1

    Amazing

  • @rickyprophete
    @rickyprophete 4 ปีที่แล้ว +1

    Do some examples!!!

  • @dansteryoo
    @dansteryoo 4 ปีที่แล้ว +1

    damn that was good. thanks.

  • @aryuridarthead9286
    @aryuridarthead9286 9 หลายเดือนก่อน

    salamuch homie

  • @paurushgargtube
    @paurushgargtube 4 ปีที่แล้ว +1

    Wow!!

  • @bokams3385
    @bokams3385 3 ปีที่แล้ว

    U r champ

  • @faheemrajuu
    @faheemrajuu 3 ปีที่แล้ว

    If someone asks you what is the asymptotic solution of a given problem? don't tell him a definition of the asymptotic solution instead tell him that at this arbitrary boundary condition 'a' our model should give us an already known solution 'y'. This known solution is maybe from previously developed models or from experiments. Thoughts?

  • @Taropok
    @Taropok 5 ปีที่แล้ว +1

    This video must have been shot on the 13th of October...

  • @luisorellana7622
    @luisorellana7622 3 ปีที่แล้ว

    cool

  • @jaymethodus3421
    @jaymethodus3421 ปีที่แล้ว

    Yep reality is computer code basically holy crap awkward😮

  • @georgez.7278
    @georgez.7278 4 ปีที่แล้ว

    I liked the video, but it was not too clear. You can do it better