Problems on Asymptotic Analysis #4

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 16

  • @j__x__c8823
    @j__x__c8823 3 ปีที่แล้ว +11

    For anyone wondering, the values of i and s should be,
    i 1, 2, 3, 4, 5, 6 ect
    s 1, 3, 6, 10, 15, 21 ect

    • @unknownunknown8699
      @unknownunknown8699 2 ปีที่แล้ว +1

      i think you are wrong dear

    • @laka3771
      @laka3771 10 หลายเดือนก่อน

      he is right. test this java code in a compiler

      class HelloWorld {
      public static void main(String[] args) {
      int i = 1;
      int s = 1;
      int n =100; // Insert 100 for test. Cant use n cz its giving error due to infinite case.

      while(s

  • @MEGANE34
    @MEGANE34 4 ปีที่แล้ว +5

    when i equal to 4 ,s is equal to 11 .is it wrong ?

  • @yashikabajaj6573
    @yashikabajaj6573 4 ปีที่แล้ว +2

    Im Sorry to say this sir bcoz I really enjoy watching ur vedios but these series of DAA are so clear....

  • @manashalder3999
    @manashalder3999 4 ปีที่แล้ว +4

    I think the value of s series that is put 2,4,7,10,.... is wrong because when i=2 s=3(s=1,i++,s=s+i).so here the n no. of sum formula will not work. Because there is no formula for this type of series 2,4,7,10,.,... as because it neither AP nor GP. The n number of sum formula for AP series is n(n+1)/2. As it works only for the value 4 so results come 10 and it is thought that this series is working on the formula. But if you take k=2 it will show 3 but in series the value showing s =4 for i=2. So there is a small problem in this lecture. Otherwise your video is well.

  • @rnikhilkumar9371
    @rnikhilkumar9371 3 ปีที่แล้ว +4

    In problem 6, time complexity will be n*(logn), look again

  • @yashikabajaj6573
    @yashikabajaj6573 4 ปีที่แล้ว +4

    There is something wrong with the formula of problem-1, It will not work for k=1,2,3... It's only working for k=4

  • @sadichhapatil3964
    @sadichhapatil3964 4 ปีที่แล้ว +4

    In problem no 1 the formula k(k+1) doesn't work for value 2 and 3

  • @chirag_ccp
    @chirag_ccp 4 ปีที่แล้ว +3

    Thank you.
    Your videos on time complexity have cleared all my concepts.
    Keep on the good work and please make a complete series on Data Structures and Algorithms.

  • @gudisa-1
    @gudisa-1 ปีที่แล้ว

    well done

  • @unknownunknown8699
    @unknownunknown8699 2 ปีที่แล้ว +3

    Dont watch this video. it has alot of mistakes.
    Strange how 60 people liked this video.
    There are so many mistakes.
    Problem 1# i and s values are not correct
    Problem 6# the answer is nlogn

  • @keshavgaur4535
    @keshavgaur4535 4 ปีที่แล้ว

    Please upload a video that from where we can start competitive programming please

  • @UniversalChallenge4454
    @UniversalChallenge4454 2 ปีที่แล้ว

    this is very handy

  • @ThoughtfulHumanism
    @ThoughtfulHumanism 2 ปีที่แล้ว +1

    @codearchery you are misleading students. Please post edits / corrections. Better yet, post an updated / corrected video and take this down. I like your approach and visual clarity but please double check your work.

  • @moazelsawaf2000
    @moazelsawaf2000 3 ปีที่แล้ว

    Thanks a lot sir ❤