HOW TO CALCULATE TIME COMPLEXITY WITH EXAMPLES (Part-1) || FINDING TIME COMPLEXITY || DAA

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 22

  • @aryakumar727
    @aryakumar727 2 місяці тому

    thnkq so much sir i have watched too many videos but cant understand this logarithmic part u have clear explanation finally i understood

  • @Tkklak
    @Tkklak 8 місяців тому

    Excellent explanation, thank you

  • @sidd77_
    @sidd77_ 9 місяців тому

    Thank you for making these videos sir, very helpful!

  • @lachimolala360
    @lachimolala360 29 днів тому

    great explanation sir!

  • @lhtcboss2002
    @lhtcboss2002 5 місяців тому

    Excellent ,this is quite clear thank you so much Sir

  • @manishareddy627
    @manishareddy627 10 місяців тому

    Hello sir
    I have watched all your videos on DBMS and SQL.. I really found it useful!! Would it be possible for you to share any PDF on SQL?

  • @ChaitanyaKumar-r7j
    @ChaitanyaKumar-r7j 4 місяці тому +4

    Respected Sir, in this video at around 12.48 point, you have said that the loop gets executed for (n+1) times and then again at 13.53 point you have taken similar loop but saying it gets executed n times. How can both be different sir?

  • @tejasreebole9427
    @tejasreebole9427 3 місяці тому

    In the last example the print statement is inside the loop so it will be executed for n times ,even though the time complexity is 0(n) we get the equation as 2n+3

    • @myrealm7115
      @myrealm7115 3 місяці тому

      hey could you explain what did he tell at 9:34 by showing other time complexities ?

  • @Rakshithaailla-f7h
    @Rakshithaailla-f7h 9 місяців тому

    Thank you sir🎉

  • @carromplayer4357
    @carromplayer4357 2 місяці тому

    Thank you sir... ❤

  • @Srikanth11-bh2zx
    @Srikanth11-bh2zx 5 місяців тому

    Thank you 👍

  • @tejasreebole9427
    @tejasreebole9427 3 місяці тому +1

    Sir in some examples you are taking n+1,and in others n for the same loop,how will it differ??? Are u just avoiding the constants????

  • @lokeshpallapu101
    @lokeshpallapu101 6 місяців тому

    Good explanation sir

  • @killerkisser9130
    @killerkisser9130 2 місяці тому

    Thanks you sir

  • @sampathm4253
    @sampathm4253 3 місяці тому

    thank u sir

  • @raistar72
    @raistar72 10 місяців тому

    Deep learning technique subject playlist plz

  • @sahanakgowda2684
    @sahanakgowda2684 5 місяців тому +1

    in the last example ,,why didn't u avoided constant in n+1 sir

    • @infuze6647
      @infuze6647 5 місяців тому

      Because when writing it in terms of big O, we get rid of any constants, so the +1 will be removed and we only write O(n)

  • @faizanmaalik9715
    @faizanmaalik9715 10 місяців тому

  • @patrickemerysevor7410
    @patrickemerysevor7410 10 місяців тому

    Mr. Saradhi please can you me with this: perform a theoritical analysis on the algorithm below and state the complexity functionand asymtotic compleity
    #include
    void swap(int &a, int &b){
    int temp = a;
    a = b:
    b = temp;
    }
    void Sort(int arr[], int n){
    for (int i = 0; i < n - i - 1; ++j){
    for (int j = 0; j < n - i - 1; ++j){
    // compare adjacent elementa
    if (arr[j] > arr[j + 1]){
    // Swap if they are in the wrong order
    swap(arr[j] > arr[j + 1]);
    }
    }
    }
    void printArray(int arr[], int size){
    for (int i = 0; i < size; i ++){
    std:: cout

  • @vlogwithvivek8207
    @vlogwithvivek8207 5 місяців тому

    sir i run 0 to n then time complexity come O(n) if we want to run i 0 to 5 then what will be the time complexity