Understanding the Time Complexity of an Algorithm

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • Algorithms: Understanding the Time Complexity of an Algorithm
    Topics discussed:
    1. A Recap of Priori vs. Posteriori Analysis.
    2. CPU Computations and Main Memory Space.
    3. The Time Complexity of an Algorithm.
    Algorithm Playlist: • Design and Analysis of...
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Contribute: www.nesoacadem...
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacadem...
    Website ► www.nesoacadem...
    App ► play.google.co...
    Facebook ► goo.gl/Nt0PmB
    Twitter (X) ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #AlgorithmsByNeso #Algorithms #TimeComplexity

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

  • @Dr_Larken
    @Dr_Larken Месяц назад +31

    The algorithm brought me here!

  • @diwanshsawlani7028
    @diwanshsawlani7028 13 дней назад +5

    00:08 Understanding priori vs posterior analysis of time and space complexity
    03:16 Understanding Priori Analysis for Algorithm Time Complexity
    06:26 Time complexity is the estimation of total CPU computations required to execute an algorithm.
    09:34 Analyzing the time complexity of a simple algorithm with frequency count method
    12:32 Understanding time complexity of algorithm instructions
    15:38 The frequency count of the instruction is n + 1.
    18:24 The time complexity of the algorithm depends on the number of times certain instructions are executed.
    21:10 Understanding time complexity of an algorithm
    23:47 Time complexity of algorithm is Big O

  • @akashtiwari397
    @akashtiwari397 Месяц назад +6

    Plz bring series of gate pyq year wise subject wise

  • @TanvirAhmedOriginal
    @TanvirAhmedOriginal Месяц назад +5

    Thank you Neso Academy, for making our life easier.

  • @AshvinParmar-ov2dv
    @AshvinParmar-ov2dv 13 дней назад +1

    2 minute video took my 24 minutes

    • @AbdullahBRashid
      @AbdullahBRashid 8 дней назад

      Fr. Dogshit video. Absolutely zero info on how to calculate more complex algorithms. Not worth 24 mins

  • @Think_First12
    @Think_First12 Месяц назад +4

    Thank you for sharing in depth knowledge 🙏

  • @Ehvan1729
    @Ehvan1729 27 дней назад +2

    one thing i could say is just thanks
    i think that is very small one

  • @mohamad.d1258
    @mohamad.d1258 Месяц назад +2

    Well that's my problem.

  • @Delj18
    @Delj18 Месяц назад +1

    For increment what I'd the time complexity

  • @sujitsingh5862
    @sujitsingh5862 Месяц назад +2

    better than previous

  • @TanvirAhmedOriginal
    @TanvirAhmedOriginal Месяц назад +2

    I don't understand why not O(4n+4)

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

      I also asking same question.

    • @nicolasbarone2176
      @nicolasbarone2176 25 дней назад +2

      Big O notation represents the sets of functions, which have to be above the original function, by a given constant c and a given value n0.
      In mathematical way: O(g(n)) = { f(n) | Exist two costant c > 0 and n0 > 0 : 0 = 4n + 1 by a given n0. For example if n0 = 20, the inequality will be: c * 20 >= 4 * 20 + 1; so, to make this inequality true, we can use c = 5. You can use any number that you want for the demonstration.
      If you were questioning if you could just write O(4n + 4) the answer is yes! But it's not as formal as writing O(n).
      I hope that is helpful :)

    • @TanvirAhmedOriginal
      @TanvirAhmedOriginal 25 дней назад

      @@nicolasbarone2176 thanks

  • @MuhammadAli-gh4do
    @MuhammadAli-gh4do 5 дней назад

    very helpful

  • @salsalazar7646
    @salsalazar7646 7 дней назад

    nice video well done amazing job

  • @footworld2335
    @footworld2335 Месяц назад +1

    wow

  • @yazidbessadet
    @yazidbessadet Месяц назад +2

    so much AURA i'm feeling right now cant lie LOL. NESO are the best

  • @Gust52
    @Gust52 Месяц назад +2

    Sir can you pls bring a course on networking? Like the many topics covered in ccna networking exam pls. It will add a depth of knowledge tobus and prepare us for that exam 🙏

  • @eghanshith5346
    @eghanshith5346 24 дня назад +1

    1.Priori vs. Posterior Analysis Recap:
    Priori analysis estimates time and memory space before executing an algorithm.
    Posterior analysis calculates them after execution.
    2.CPU Computations and Main Memory Space:
    CPU computations refer to tasks executed by the CPU (instructions).
    Main memory space stores data and instructions for quick access during execution.
    3.Time Complexity Estimation:
    Use the frequency count method.
    Calculate the sum of frequency counts for each instruction.
    Example: sum = 0 (1 unit), for (i = 1; i