Big O Notation (Solved Problems) - Set 2

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

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

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

    Quality content and explanation as usual from Neso Academy ❣️. I do have a doubt though. How does one chooses testing input (n) especially how they knew which numbers to test on for the log n problem?

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

    but how do you choose value for c? Any specific logic behind that? Please help me understand that.

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

      Here is my understanding. He said first look at the dominant term. Try to pick the tightest upper bound of g(n) according to f(n). Here you can also choose the value of c according to f(n) keeping in mind the definition of big O notation using trial and error verifying if the inequality holds for large n. I hope I did not confuse you.

    • @Rehanbaba2004
      @Rehanbaba2004 29 дней назад

      I guess the care we have to take here is that c should be larger than multiplier constant in dominant term just to determine the exact asymptotic behaviour

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

    Love From ❤️🇧🇩🇧🇩🇧🇩

  • @AreebaRiaz-j2u
    @AreebaRiaz-j2u 4 месяца назад

    can't we solve the inequality simply rather than plugging values for n. (12:23)

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

      you can, but I believe you have to draw that graph in your solution

    • @satyarthsingh6394
      @satyarthsingh6394 29 дней назад

      ​@@s1rvansah yes you can even if you solve the inequality then you get the value of n is 3.16 (√10) this is the exact value if you implicitly put it in a equation then you find f(n) =g(n) with a value 20
      And any value more than 3.16
      Will prove that g(n)
      Is greater than f(n)