Big-O notation in 5 minutes

Introduction to big-O notation.
Code: github.com/msambol/dsa
Sources:
1. Algorithms by S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani [www.amazon.com/Algorithms-San...]
2. pages.cs.wisc.edu/~paton/readi...
3. bigocheatsheet.com/
LinkedIn: / michael-sambol

Пікірлер: 621

  • @bobjohnson6946
    @bobjohnson69463 жыл бұрын

    No annoying loud music intros, no 6 min introduction, spoken clearly, and straight to the point. I wish all educational videos were like this.

  • @swayx3657

    @swayx3657

    2 жыл бұрын

    no indian accent

  • @stuiedaman

    @stuiedaman

    2 жыл бұрын

    @@swayx3657 some of the best instructional videos I have found have been from someone with an Indian or otherwise hard to understand accent. This has made me better at understanding foreign accents, and thus, I get to enjoy more videos.

  • @raghnallm4004

    @raghnallm4004

    Жыл бұрын

    And no stupid analogies

  • @Gupatik

    @Gupatik

    Жыл бұрын

    @@stuiedaman same here, I'm now professional at understanding foreign accents, even tho Chinese and greek are still so hard to get your ears used to.

  • @predictionfraud9927

    @predictionfraud9927

    3 ай бұрын

    I love overwatch

  • @supernerd10000000000
    @supernerd100000000007 жыл бұрын

    I pay about 12k a year for education at San Jose State University. It's sad that I learn more from watching your videos for free than I do at a 4 year college. Thanks for your help, your videos are awesome!

  • @AnonymousDeveloper1

    @AnonymousDeveloper1

    7 жыл бұрын

    Modern teachers should learn like this dude. Simple, short and easy to understand.

  • @passaroquetemasanaovoa

    @passaroquetemasanaovoa

    6 жыл бұрын

    I think it's the same all over the world. Here in Brazil it's the same, I learn more on YT but we need the f****n diploma...

  • @user-mw5ih4ns5b

    @user-mw5ih4ns5b

    6 жыл бұрын

    really agree with this opinion

  • @FunnyHacks

    @FunnyHacks

    6 жыл бұрын

    Something I didn't really understand enough while I was studying is that an education is very little to do with what you learn, and more about learning how to learn and interact with people, and certifying that you can learn. A large portion of the stuff you learn will be obsolete within a few years, while learning how to learn and work with other people will serve you for life. Not to undermine the compliment to the poster though, this video, and probably the channel are indeed useful :)

  • @ganstabreakincity

    @ganstabreakincity

    6 жыл бұрын

    Same from Spain

  • @DanT-iu6oc
    @DanT-iu6oc4 жыл бұрын

    HOW DID THIS GUY EXPLAIN IN 5 MINS WHAT CONFUSED MY ENTIRE CLASS FOR 2 HOURS? WHAT THE HELL?!!

  • @user-rf4vc7mt4d

    @user-rf4vc7mt4d

    4 жыл бұрын

    lmao right?

  • @BlueMrDragoN

    @BlueMrDragoN

    3 жыл бұрын

    2 hours? For me its been 10 weeks and it all makes sense now lmao

  • @Talents.z
    @Talents.z4 жыл бұрын

    It's always hilarious when you spend hours trying to understand something through lecture slides and can't understand it at all, then a 5 minute video explains it better than the professors ever did.

  • @Preeti..7886

    @Preeti..7886

    4 жыл бұрын

    Yes

  • @jdkingsley6543

    @jdkingsley6543

    3 жыл бұрын

    literally break out laughing, old educators are the problem.

  • @aroncasiano1796

    @aroncasiano1796

    3 жыл бұрын

    my data structures and algorithms book literally rambles off on none important information and over complicates this proccess lol

  • @oworandom

    @oworandom

    2 жыл бұрын

    @@jdkingsley6543 more on the system part though i would say, Eduction system from like 200 urs ago when industrial revolution is starting to take place just arent suited for modern society

  • @AdventrueTV

    @AdventrueTV

    2 жыл бұрын

    its because they gotta gatekeep the knowledge broseph

  • @hunterblake8507
    @hunterblake85076 жыл бұрын

    Explained better in 5 min than in the 3 lectures my professor taught on it

  • @genericwhitemale7028

    @genericwhitemale7028

    5 жыл бұрын

    He's gotta expand the class long enough so he won't awkwardly stay silent for 100 minutes.

  • @reyarnoco5657

    @reyarnoco5657

    5 жыл бұрын

    @@genericwhitemale7028 This is true. We need to explain it repeatedly and with hundred of examples because we don't want to awkwardly stay silent for 3 hours :)

  • @siaprasad8400

    @siaprasad8400

    3 жыл бұрын

    Efficiency

  • @rauleduardocruzperez7270

    @rauleduardocruzperez7270

    3 жыл бұрын

    hahahahah I thought the same. I was searching articles and videos about this, and this video is perfect. Although it's just an introduction.

  • @ShubhamSingh-zt6zb

    @ShubhamSingh-zt6zb

    3 жыл бұрын

    😂

  • @DaRealTim
    @DaRealTim4 жыл бұрын

    i could cry. the importance of educating someone is to keep it simple. my prof wrapped this simple explanation in a 217 pages script. Greetings from germany I owe you one

  • @latedeveloper7836
    @latedeveloper78362 жыл бұрын

    0:40 nice overview 0:50 Big-O usually thinks about worst-case 1:00 Rule 1 - ignore constants 1:15 Rules 2 - certain terms 'dominate' others 1:40 Big-O cheat sheet chart 2:00 Example 1 2:45 Example 2 - for loop 2:58 Example 3 3:30 Quadratic time 3:40 Example 4 - total run time 4:10 Example 5 - if-else statement 4:43 Summary - in practice

  • @pranavnyavanandi9710

    @pranavnyavanandi9710

    2 жыл бұрын

    It's incorrect to say that Big O usually thinks about the worst case. He did use the word "usually" but did not clear it up. Asymptotic notations are a mathematical concept to generalize the way a function is expressed by writing it in terms of a more general function, doing this makes it easy to compare different functions. Big O is one way to do that. It is used to denote an upper bound to a given function. So it doesn't really have anything to do with the worst case or best case of an algorithm's performance.

  • @magma590gaming

    @magma590gaming

    Жыл бұрын

    @@pranavnyavanandi9710 Actually it's not exactly that considering we disregard the multiplicative constants wheras in maths we don't

  • @koshka02
    @koshka02 Жыл бұрын

    You did a better job explaining in 5 minutes than my professor did in 4 hours of lecture. Well done.

  • @333_studios
    @333_studios6 жыл бұрын

    I need to do a big-O analysis on my life habits priorities.

  • @_productivity__nill_1131

    @_productivity__nill_1131

    5 жыл бұрын

    Me too

  • @shauryajindal21
    @shauryajindal21 Жыл бұрын

    THIS WAS PERFECT. I was self-studying from a textbook and was wayyyy to confused, so I did a quick search on youtube and found this video. Easy. Simple. Concise. You covered everything so perfectly and actually helped me understand the topic. THANK YOU SO MUCH. Please continue making videos like this!!!

  • @lexicon1580
    @lexicon15806 жыл бұрын

    Every computer science professor I've ever had didn't explain this concept as simply and concisely as you just did. Thank you.

  • @doglife2447
    @doglife244710 ай бұрын

    Thank you so much for the explanation! I've been searching all day to find a good video until I'd found yours. Again great explanation, and I love how you got straight to the point.

  • @aaronbaker8606
    @aaronbaker86062 жыл бұрын

    I think this is one of the best videos I have seen. I hate how most videos won't just bother to show with an actual function or dummy code.

  • @ZenithF0RTE
    @ZenithF0RTEАй бұрын

    I've watched a dozen videos on complexity theory, P vs NP and Big-O notation and you are THE FIRST to give examples with a breakdown. Bravo good sir. I doff my cap to you.

  • @emmyleke7049
    @emmyleke704922 күн бұрын

    After 1 hour videos, I cannot believe how much this helped me finally understand this topic. I'm in awe.

  • @MichaelSambol

    @MichaelSambol

    22 күн бұрын

    love to hear it!

  • @MsKostas7
    @MsKostas74 жыл бұрын

    If your deegree has anything to do with algorithms i bet you will watch all the videos in his channel. Great work man. Thank you so much. Explanatory and time efficient. Well done!

  • @whiteline4157
    @whiteline41573 жыл бұрын

    I read multiple articles about this topic but you are the only one that I can understand. Thanks for the video.

  • @ninjarogue
    @ninjarogue3 жыл бұрын

    Thank you Michael, that was a really concise and great explanation! This video helped me finally wrap my head around these basic concepts!

  • @TSAMikeyo89
    @TSAMikeyo893 жыл бұрын

    My professor did such a heinous job teaching this subject for my Data Structures course, and yet you taught me what I needed to know in five minutes... Thank you sir.

  • @barisbasar3909
    @barisbasar39092 жыл бұрын

    Im amazed by the simplicity of your content. You really drown out all the unnecessary stuff and hit the nail on right on its head

  • @techwithbube
    @techwithbube5 жыл бұрын

    You are a genius. Thanks for the first time in 6 years I understand this.

  • @vamsir2000
    @vamsir20008 ай бұрын

    This is so far the best video that I cam across about Big O. Thank you Michael

  • @Cos_Wayne
    @Cos_Wayne Жыл бұрын

    This is one of the best tutorials I have ever seen, thank you.

  • @Chribit
    @Chribit6 жыл бұрын

    you may have just saved my life.

  • @nehalzahra5763
    @nehalzahra57635 жыл бұрын

    You're amazing bro , i have learnt a lot from your five minute video than 36 minutes tutorials.

  • @vladimirkirichenko1972
    @vladimirkirichenko19723 ай бұрын

    Couldn't agree more with: No annoying loud music intros, no 6 min introduction, spoken clearly, and straight to the point. I wish all educational videos were like this.

  • @MichaelSambol

    @MichaelSambol

    3 ай бұрын

    Thank you, Vladimir!

  • @cryscoxx
    @cryscoxx Жыл бұрын

    Thanks! After a few rewatch and playback, gave me more understanding on what's going on rather than staring at my slides! Kudos to you!

  • @TBButtSmoothy
    @TBButtSmoothy Жыл бұрын

    real teacher shows its mastery at simplifying whats complex without losing information

  • @Deevart88
    @Deevart887 жыл бұрын

    You're videos are the best, Thank you for your efforts

  • @chrise202
    @chrise2026 жыл бұрын

    I just started watching but couldn't help myself for thumbing UP, in the middle of it. Great straight to the point explanation!

  • @morello6061
    @morello60614 жыл бұрын

    All the down votes are from jealous CS professors.

  • @hugh-martinrouxhughy7419

    @hugh-martinrouxhughy7419

    4 жыл бұрын

    No jokes, this man did in 5 minutes what my lecture couldn't do in an entire semester XD

  • @BruceRicard

    @BruceRicard

    Ай бұрын

    All the down votes are from people who actually know what big-O is.

  • @morello6061

    @morello6061

    Ай бұрын

    @@BruceRicard Found one!

  • @fzane14
    @fzane143 жыл бұрын

    Wow, what my professor took hours to explain, you explained better in 5 minutes. I appreciate you sharing this. Subscribed

  • @loispeter2270
    @loispeter2270 Жыл бұрын

    Your explenation is so much better than the explenation from my teachers. Thank you so much!

  • @TheDarkestPaladin
    @TheDarkestPaladin Жыл бұрын

    I don't know who you are, never heard of you before. What I know for sure is that you're a legend and a hero to all students out there

  • @MichaelSambol

    @MichaelSambol

    Жыл бұрын

    God bless

  • @Patiencelad
    @Patiencelad2 жыл бұрын

    Finally, someone who explains it clearly, without all the mumbo jumbo. Thank you!

  • @shuckol
    @shuckol5 жыл бұрын

    This explanation literally thought me how to calculate one of the most important features of a good code, its Efficiency. All in 5 minutes. Unbelievable. Thanks, truly!

  • @geos59
    @geos596 жыл бұрын

    Finally someone knows what they’re talking about and explains it well.

  • @valentino8625
    @valentino86252 жыл бұрын

    one of the Simple and Perfect explanation about Big-O notation I have ever heard.

  • @AKGamersLite
    @AKGamersLite2 жыл бұрын

    My algorithms professors spent 1 hour explaining Big-O in the most complicated way possible, and here I learnt about it in just 5 minutes and I actually understood this video way better. Thank you! I wish CS professors would stop this formal complex way of teaching, and try make it simple and easy to learn like this video has done

  • @jithmarathnayaka2298
    @jithmarathnayaka22985 жыл бұрын

    After watching so many videos, only this video gave me a clear idea about big O notation.

  • @troybolo
    @troybolo Жыл бұрын

    Helped me understand a topic i've been struggling with for ages in a clear and simple way. lifesaver!

  • @MichaelSambol

    @MichaelSambol

    Жыл бұрын

    Great to hear!

  • @zaiyuanlu8751
    @zaiyuanlu87514 жыл бұрын

    Instead of the big long videos, you made this concept clear and easy to understand, all KZread videos should be like this. I don't know why professors always tends to go very deep very early. Which is absolute not needed for beginner students

  • @deepshah737
    @deepshah7372 жыл бұрын

    What an amazing video! Your teaching skills and presentation skills are amazing.

  • @deeabee96
    @deeabee965 жыл бұрын

    Learned more from this 5 minute vid than several hours in discrete structures class...

  • @michaellong8812
    @michaellong88123 жыл бұрын

    I think you explain this better than the author of cracking the code interview. Great job!

  • @miettehancox9762
    @miettehancox9762 Жыл бұрын

    thanks michael! very clear and brief while still defining key terms. super useful

  • @scottveron
    @scottveron7 жыл бұрын

    I love your videos, dude. Simple and short but still educational

  • @jarrydpatel9650
    @jarrydpatel96504 жыл бұрын

    Your channel saves lives.

  • @Kirill-ir4vg
    @Kirill-ir4vg6 жыл бұрын

    this video finally cleared this topic for me. After so many materials I read... Much appreciate, keep it up!

  • @devendratapdia11
    @devendratapdia115 жыл бұрын

    Simplified so much that even 8th std kid will understand. Great job.

  • @aguelejoseph5753
    @aguelejoseph57532 ай бұрын

    After reading many tutorials on this subject, this is by far the best explanation i have found. Thank you. You just got an additional subscriber

  • @MichaelSambol

    @MichaelSambol

    2 ай бұрын

    Thank you!

  • @morello6061
    @morello60614 жыл бұрын

    I was skeptical because this was a 5 minute video, but it explained the concept so well in such a short time. Thank you so much.

  • @estebancarrasco5823
    @estebancarrasco58233 жыл бұрын

    > Uploads short videos that go straight to the point about how algorithms work > Refuses to elaborate > Leaves Michael the big chad

  • @grosssocks3699
    @grosssocks369910 ай бұрын

    best channel for cs periodt! Thanks a lot Michael for making me understand this tricky concept which I have been trying to grasp for past one year ;)

  • @MichaelSambol

    @MichaelSambol

    10 ай бұрын

    💪🏼❤️

  • @dreamer-en7ir
    @dreamer-en7ir9 ай бұрын

    Slow, loud and clear voice...bro you just saved my exam...thanks

  • @patrickbarroso7290
    @patrickbarroso72906 ай бұрын

    Wow, so clear!! I'm impressed, great job!

  • @ddarhe
    @ddarhe7 жыл бұрын

    Your content is very much appreciated; your vids are an amazing way for both learning and reviewing algorithms and related theory, thank you!

  • @KixMayne91
    @KixMayne916 жыл бұрын

    I know this is late but MY GOD I facepalmed myself after watching this, you really gave me that eureka moment...sounds cheesy but than you soooooo much for this.

  • @facelessvoid2902
    @facelessvoid29026 ай бұрын

    Dude sums up my first 3 algorithm classes to 5 mins. What a chad :D

  • @MattUKepcc816
    @MattUKepcc8165 жыл бұрын

    I'd love to be your student for all my computer science classes your explanations are so perfect!

  • @vaibhavsrivastva1253
    @vaibhavsrivastva1253Ай бұрын

    May god bless you, and your family!

  • @itsok391
    @itsok3912 жыл бұрын

    Easy to understand and well explained. This really helps. At first glance, My first impression of this topic is quite hard to understand.

  • @NinaHProductions1
    @NinaHProductions16 жыл бұрын

    Love this simplification of time complexity of Algorithms - thank you, thank you , thank you!!!

  • @ahmedoumar3741
    @ahmedoumar37412 жыл бұрын

    This is the best explanation i ever come across, thanks!

  • @guilhermefilipefernandesba3170
    @guilhermefilipefernandesba31704 ай бұрын

    This was one fo the best educational videos I have ever seen. Thanks!

  • @iben1195
    @iben1195 Жыл бұрын

    I just heard of Big O Notation today and thanks to you for making it digestible.

  • @reenanachare3565
    @reenanachare35657 жыл бұрын

    Clear and Clean understanding. Awesome !!!

  • @Therustyfountain
    @TherustyfountainАй бұрын

    Studying for my Data Structures and Analysis of Algorithms midterm, thanks for your help! Great video, very easy to understand explanation.

  • @hadesnj2770
    @hadesnj27703 ай бұрын

    Finally an actually good video which fr explained smth without useless intros and random bs

  • @osmankhalid2005
    @osmankhalid20054 жыл бұрын

    Now I will be able to prepare lecture for my tomorrow's class. Thank you!

  • @drditup
    @drditup8 ай бұрын

    i dont get it. i never understood this concept more precisely than this. 5 years master degree im robotics (tons of cs classes), but this 5min talk just clarified it. i will recommend this channel to every student i meet from now on

  • @Ackuroon
    @Ackuroon5 жыл бұрын

    Very neat explanation. Have this topic this semester and this vid made everything click.

  • @gangelo2787
    @gangelo27876 жыл бұрын

    Best video on this so far.

  • @Aditya95111
    @Aditya951114 жыл бұрын

    Thanks for this video 👌 Love from India ❤️🇮🇳😍

  • @bonnypratt9990
    @bonnypratt99904 жыл бұрын

    Thank you Michael. Love your short but to the point, handy for brushing up or needing to know the 30,000feet view.

  • @edu-and-justice
    @edu-and-justice2 жыл бұрын

    Amazing and simple explanation ^_^ thank you Michael!

  • @morenomt27
    @morenomt272 жыл бұрын

    wow! If I only have watched this video before the interview that I have failed 2 weeks ago :D you're a gem!!

  • @nathanielsa523
    @nathanielsa52311 ай бұрын

    what the heck, bro is an amazing teacher. I fully understand props to u teacher

  • @Fikayoz
    @Fikayoz6 жыл бұрын

    Thank you so much. 5 Minutes, simple, easy to understand. No unnecessary jargon.

  • @rabiaghafoor3561
    @rabiaghafoor35612 жыл бұрын

    The best video on big o notation ever!

  • @josephbonheur3053
    @josephbonheur30533 ай бұрын

    how can you simplify every hard concept to a clear beginner-friendly level like this? You are amazing thank you.

  • @volo7
    @volo77 жыл бұрын

    cant imagine how this could get any easier for comprehension. mindblowingly simple

  • @realnice3672

    @realnice3672

    3 жыл бұрын

    @@talleyrand9530 if its like a= [i for i in range(10)] print(a) isn't that O(N)?

  • @matteoar

    @matteoar

    3 жыл бұрын

    @@realnice3672 that's a O(1), the cicle doesn't depend on a variable but it will be up to the 10 (11?) cicles that range does. If it was a: i in range(n), that's a O(n)

  • @GigaWarTrex
    @GigaWarTrex5 жыл бұрын

    Perfectly summed up and SUPER understandable! Thanks man, you really helped me a lot!

  • @awesomeclips8253
    @awesomeclips8253Ай бұрын

    i learned more here than i did in my cs classes

  • @allegro665
    @allegro665 Жыл бұрын

    This was solid and succinct. Thanks a bunch.

  • @aswinp2135
    @aswinp21358 ай бұрын

    Thank you so much, great channel. Simple and easy

  • @joeldawriter
    @joeldawriter6 жыл бұрын

    Was having some trouble understanding this concept, Appreciate the help!

  • @lawrenceorolobo
    @lawrenceorolobo2 жыл бұрын

    Perfect tutorial. Perfect work

  • @chandrashekarr1977
    @chandrashekarr19772 жыл бұрын

    OMG! Where were you man? Why our professors are incapable of these skills? God bless you! Thank you

  • @msabbah20
    @msabbah206 жыл бұрын

    Thanks For the Video , clear introduction :) appreciate your effort Michael

  • @kaze-xo
    @kaze-xo2 жыл бұрын

    Concise and straight to the point!

  • @MarcusAbad-Dominguez
    @MarcusAbad-Dominguez4 ай бұрын

    Thank you bro I needed this i got a test tomorrow and that explained It so well

  • @Jsheng007
    @Jsheng0076 жыл бұрын

    This video is great! So easy to understand!

  • @nallilley3863
    @nallilley38635 жыл бұрын

    Gonna use your channel a lot for A Level Computer Science from September! Cheers.

  • @hermosbird7004
    @hermosbird70047 жыл бұрын

    Amazing videos! Keep doing it dude!

  • @AA-rd6nm
    @AA-rd6nm6 ай бұрын

    Excellent explanation! Easy for understanding...thank you...

  • @dcairol
    @dcairol3 жыл бұрын

    “Brevity is an art”. Beautiful and simple explanation.

  • @itiswhatitis4964
    @itiswhatitis4964 Жыл бұрын

    Your video helped me out a lot, Thanks

  • @b.f.skinner4383
    @b.f.skinner43833 жыл бұрын

    Excellent summary, thank you

  • @andreaaldrich4046
    @andreaaldrich40465 жыл бұрын

    This is the only video that clicked with on me Big-O Notation.