Big Oh Notation - Definition & Example

If my videos have added value to you, join as a contributing member at Patreon: / sunildhimal
Learn about Big Oh asymptotic notation - Definition & Example.

Пікірлер: 37

  • @ahmedtamer4620
    @ahmedtamer46204 жыл бұрын

    I am not exaggerating but I have seen alot of videos including very professional one like on coursera (University of San diego) but this is the best explanation I have ever had.

  • @ahmedtamer4620

    @ahmedtamer4620

    Жыл бұрын

    Now I am a TA at my university and I came here to revise

  • @anchalpandey9074

    @anchalpandey9074

    Жыл бұрын

    couldn't agreee more. don't know why his channel is so underrated I've been studying this for almost an year yet this is the best explanation I've found so far

  • @mariakhan5045
    @mariakhan50453 жыл бұрын

    Of all the lectures, I've understood it by your teaching method. Good job sir!

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

    amazing how relevant this video is

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

    finally somebody who explains what Big O notation is before jumping to exercise. Thank you

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

    beautiful sir this was a huge video in terms of knowledge about big o notation i learned this in just one video and tommorow is my exam 2nd semester software engineering

  • @georgeytg
    @georgeytg2 жыл бұрын

    I'm surprised this channel doesn't have more viewers. Thank you, you explained this very well!

  • @jkk23-g7c
    @jkk23-g7c2 жыл бұрын

    Holy smokes. Now I finally get it. Amazing video, with great visuals. I didn't even understand from Udacity videos

  • @nickm.4274
    @nickm.42742 жыл бұрын

    Very helpful! My cs class did not explain very clearly and this made a lot of sense! Thank you for making this video

  • @t.manivel7397
    @t.manivel7397 Жыл бұрын

    Nice explanation sir...

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

    Well explained🎉🎉

  • @taylormade7700
    @taylormade77002 жыл бұрын

    Best explanation I have seen! Thank you!

  • @arkoprabhodas774
    @arkoprabhodas7743 жыл бұрын

    The explanation is very good sir. Thank you

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

    Dear Sir, your explanation is very clear. Thank you

  • @thodupunoorilavanya1693
    @thodupunoorilavanya16934 жыл бұрын

    sir this is very helpful video , and your explanation is very nice .

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

    Such a great video, about to save me on my exam. Thank you sir!

  • @weiminchoo4607
    @weiminchoo46072 жыл бұрын

    Thanks sir!better than my 2hours university lecture

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

    Thank you so much

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

    THX DOCTOR

  • @beerajsaikia
    @beerajsaikia11 ай бұрын

    sir ji you are god

  • @NeerajKumar-gj2mq
    @NeerajKumar-gj2mq3 жыл бұрын

    Very very nice explanation sir

  • @ayshrao8072
    @ayshrao80723 жыл бұрын

    way of explain is very good

  • @satyaprakashsoren5986
    @satyaprakashsoren59865 жыл бұрын

    very nicely taught

  • @akashprajapati5096
    @akashprajapati50962 жыл бұрын

    prety good nd helpfull thxx

  • @dhimal
    @dhimal5 жыл бұрын

    Pretty useful video you have over here. Are you teaching a class? What textbooks do you use? Also, if you could do more examples on Big Oh, Big Omega, and Theta, that would be great!

  • @SunilDhimal

    @SunilDhimal

    5 жыл бұрын

    Thank you! I am following Introduction to Algorithms, Cormen et. al More videos on Asymptotic notations here: Why study Asymptotic: kzread.info/dash/bejne/nGxh0c2Il7rcZrg.html Omega notation: kzread.info/dash/bejne/h6hhttWeqK-nZtY.html Theta notation : kzread.info/dash/bejne/qIOt07JpmruxZcY.html Examples: kzread.info/dash/bejne/eoZhuamip8_PntI.html

  • @himanshubarnwal7811
    @himanshubarnwal78113 жыл бұрын

    Now understood.....

  • @tamannafaariha3884
    @tamannafaariha38842 жыл бұрын

    Ma sha Allah

  • @nico4597
    @nico45973 жыл бұрын

    god explanation

  • @dilayfundauysal9378
    @dilayfundauysal93782 жыл бұрын

    Hi sir, could you help, log(2)(n^(2)+1)=O(n)?

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

    hello bro i think 3n+2=O(n^2) have ans : c=4 and n=1; To prove that 3n+2=O(n^2), we need to show that there exists a positive constant c and a non-negative integer n0 such that for all n ≥ n0, the following inequality holds: |3n + 2| ≤ c * n^2 We can start by simplifying the left side of the inequality: |3n + 2| = 3n + 2, since 3n + 2 is non-negative for all n. Next, we can choose c = 4 and n0 = 1. Then, for all n ≥ 1, we have: 3n + 2 ≤ 4n^2 Dividing both sides by n^2, we get: 3/n + 2/n^2 ≤ 4 Since the left side of the inequality is decreasing as n increases, we only need to verify the inequality for n = 1: 3/1 + 2/1^2 = 5 ≤ 4 This is a contradiction, so the inequality cannot hold for any value of n. Therefore, we can conclude that 3n+2 is not O(n^2), and the original statement is false.

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

    Doesn't g(n) become 5n and not 4n? Someone please explain

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

    Nice explanation .... but i have one doubt which is that Big Oh always represent the worst case complexity and this means that the complexity of that algorithm can't be more than that. It can be less But here you are saying that the upper bound can be 0(n2) and 0(n3). i can't be able to understand that can anyone explain this to me ?

  • @SunilDhimal

    @SunilDhimal

    Жыл бұрын

    We always go for the tightest or the closest upper bound. If f(n) = n^2, we can prove that f(n) = O(n^2) and f(n) = O(n^3). So both n^2 and n^3 are upper bound but we go for the tightest upper bound {bound that is closer to f(n)}. In this case n^2 is the tightest upper bound to f(n).

  • @shinjuan5106
    @shinjuan51064 жыл бұрын

    graph is wrong ,3n+2 running time should be 2 at n=0

  • @SunilDhimal

    @SunilDhimal

    2 жыл бұрын

    Yes! It is just a representation and not an exact graph