Data Structures - 3 | Big-O Notations, Time Complexity | Tamil

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

КОМЕНТАРІ • 51

  • @HungrySpikeShorts
    @HungrySpikeShorts 2 роки тому +31

    Code Example:
    If there is no input, then it’s called a constant time algorithm. For example:
    for (int i = 0; i < 1000000; i ++)
    x++;
    above is O(1)
    ------------------------------------------------------------------------------
    Let’s go through some code samples and analyze their runtime complexity.
    for (int i = 0; i < N; i ++)
    x++;
    All we need to do is count the number of times the statement x++ will execute.
    Clearly, it’s N, so the time complexity is O(N), also called linear.
    ------------------------------------------------------------------------------
    for (int i = 0; i < N; i++)
    for (int j = 0; j < i; j++)
    x++;
    How many times the statement x++ execute:
    So the time complexity is O(N^2), also called quadratic.
    ---------------------------------------------------------------------------
    Logarithmic Runtime
    **************************************************
    Iterating powers of a number #
    Let’s analyze the loop below where we iterate over all powers of 2
    for (int i = 1; i = 1; i /= 2)
    x++;
    ---------------------------------------------------------------------------
    Harmonic series #
    Consider the piece of code below:
    for (int i = 1; i

    • @kishokkumar3161
      @kishokkumar3161 2 роки тому +2

      Thanks Dude

    • @ponmurugaiyamani1042
      @ponmurugaiyamani1042 Рік тому +2

      Broo yaaru Sami nee but thank you so much bro❤🤗 neeye pesama UA-cam channel aarambikalam bro❤

    • @deepakreigns5775
      @deepakreigns5775 Рік тому +1

      can you do this with python

    • @pallavig3187
      @pallavig3187 11 місяців тому +1

      A dout o(1) o(n) nu kandhupudhikuradu eppadhi andha code ha pattu edha count pannanum indha notations ha kandhupudhika pls yaravadu sollunga😢?

    • @HungrySpikeShorts
      @HungrySpikeShorts 11 місяців тому

      @@pallavig3187 count how many times code is executed in the for loop o(1) means only one time whereas o(n) means o(number of times code is executed) if the code it executed 5 times the n=5 so n(5)

  • @dheenadayaland6904
    @dheenadayaland6904 3 роки тому +26

    I had a lot of confusion about Big(O) in college. But your explanation makes it crystal clear. Thanks bro🤗. Keep it up bro😊

  • @rohiths1325
    @rohiths1325 3 роки тому +18

    Tnq u bro 4 this series I had a very big confusion and now cleared

    • @CSinTamil
      @CSinTamil  3 роки тому +3

      Glad it was helpful! :)

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

    Nice explanation 🎉...impressed

  • @jdram82
    @jdram82 Рік тому +1

    Thanks Bro,Good Explanation in Tamil, Keep going

  • @pradeepmsd5321
    @pradeepmsd5321 2 роки тому +1

    Vere level bro neenga

  • @saravanan335
    @saravanan335 Рік тому +1

    Very clear explanation

  • @ZhagaramTech
    @ZhagaramTech 3 роки тому +2

    Nice bro, good explanation

  • @narenm.s8923
    @narenm.s8923 2 роки тому +2

    Eye opener

  • @the_senthil
    @the_senthil 3 роки тому +1

    Bro Semma broooo........

  • @amruthancs
    @amruthancs 3 роки тому +1

    Super explanation thanks anna 👍

  • @Iswaryavijay-ld3vy
    @Iswaryavijay-ld3vy Рік тому +1

    Thank u so much

  • @RamKumar-dh8be
    @RamKumar-dh8be 3 роки тому +6

    Bro can u please upload some video for big omega and big theta

    • @CSinTamil
      @CSinTamil  3 роки тому +5

      Ipodhiku I am working on other videos. I have added this to my list. I will cover it in the future. Thanks for the suggestion! :)

    • @RamKumar-dh8be
      @RamKumar-dh8be 3 роки тому +2

      @@CSinTamil k bro tnx👍

  • @jeebasharin9746
    @jeebasharin9746 3 роки тому +2

    Anna, array la five elements iruthuna ippa voru elementa firstla insert pannuna athula five operation nadakuma O(5)

  • @yogabrindha5640
    @yogabrindha5640 3 роки тому +1

    Nicely explained

  • @sanoossama6087
    @sanoossama6087 8 місяців тому +1

    Bro inthe series le full dsa upload pannirukkingelaa?

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

    Epdi calculate panra endu sollunga bro

  • @அட்
    @அட் 3 роки тому +1

    Thanks na😍😍😍👍

  • @parvishrao6414
    @parvishrao6414 3 роки тому +2

    Let's say we have a excel with data of students
    I will find the students name by using dictionary (since key cannot be duplicated ) it will be O(1) - search operation. Correct ?
    And also here memory will be taken more since we may have lot of students data
    Is my understanding correct ??

  • @venkatsanker6572
    @venkatsanker6572 3 роки тому +1

    Super bro

  • @RakeshKumar-en1uq
    @RakeshKumar-en1uq 3 роки тому +1

    Explain the Greedy , dynamic,brude force algorithm bro

  • @keentoknowher
    @keentoknowher 3 роки тому +1

    Thanks

  • @jeebasharin9746
    @jeebasharin9746 3 роки тому +1

    Programa apply panni soli tharunka Anna.

  • @shyamsundar-dr5qe
    @shyamsundar-dr5qe 3 роки тому +3

    Bro what is mean by operations ?

    • @CSinTamil
      @CSinTamil  3 роки тому +10

      Operation is some calculation that your CPU performs. Eg: Adding two numbers. So, unga program ku evlo operations theva padumnu calculate panna time aagum. So, adha estimate panradhuku thaan we use Big O Notations.

  • @IMDash_freak002
    @IMDash_freak002 Рік тому

    O (4) na idhu max operation or minimum or fixed operations ah?

  • @gokullb2975
    @gokullb2975 4 роки тому +2

    👍

  • @a.imthiyazahamed3167
    @a.imthiyazahamed3167 2 роки тому

    Does data structure fefers to program bro

  • @naveen7233
    @naveen7233 3 роки тому +1

    which one is mostly uses!

  • @karthikakarthika4264
    @karthikakarthika4264 3 роки тому +2

    Anna data structure ah just therichi. Irutha ppothuma illa practice pannanum Anna

    • @karthikakarthika4264
      @karthikakarthika4264 3 роки тому

      Practice pannanum na apadi panni pakarathu anna

    • @CSinTamil
      @CSinTamil  3 роки тому +5

      DS concepts oda sethu program pannavum theriyanum. Hackerrank.com is a good website to practice DS

    • @karthikakarthika4264
      @karthikakarthika4264 3 роки тому

      Thanks for your reply anna 🤩

  • @keentoknowher
    @keentoknowher 3 роки тому

    Oru function ku O() epdi find pannuvanga?

    • @CSinTamil
      @CSinTamil  3 роки тому +2

      Andha function la enalaan operations nadakutho, adha N number of inputs kudutha evalo operations nadakumnu check panni kandu pudipaanga

    • @keentoknowher
      @keentoknowher 3 роки тому

      @@CSinTamil ohh oky thanks

  • @RakeshKumar-en1uq
    @RakeshKumar-en1uq 3 роки тому

    DAA class plz

  • @sairams5756
    @sairams5756 3 роки тому +6

    Purila😥

  • @srinathkannan8336
    @srinathkannan8336 3 роки тому

    Bro How to contact you bro