What is the value of n0?









up vote
0
down vote

favorite












Just started learning algorithm. But, I don't know what n0 represent in calculating time complexity.



Full quoto for the mergeSort time complexity.



Ө(nlogn) - C1 * nlogn <= T(n) <= C2 * logn, if n >= n0



O(nlogn) - T(n) <= C * nlogn, if n >= n0










share|improve this question























  • Probalby n0 is the first number where an assymptotically better algorithm is better than its "competitor". But it might be worth to quote the full definition, theorem, etc.
    – Willem Van Onsem
    Nov 10 at 19:06











  • Sorry, could you simplify what you said? I still don't get it. What is the "first number" is it the first element in an array?
    – wu binhao
    Nov 10 at 19:09










  • no the smallest input length. n is the length of input.
    – Willem Van Onsem
    Nov 10 at 19:09










  • I would have expected something like "n >= n0", not like it is quoted here. Is the quote correct?
    – trincot
    Nov 10 at 19:31










  • @trincot Oh yes, sorry i just realized i typed the quote wrong! I will correct it now.
    – wu binhao
    Nov 10 at 19:35














up vote
0
down vote

favorite












Just started learning algorithm. But, I don't know what n0 represent in calculating time complexity.



Full quoto for the mergeSort time complexity.



Ө(nlogn) - C1 * nlogn <= T(n) <= C2 * logn, if n >= n0



O(nlogn) - T(n) <= C * nlogn, if n >= n0










share|improve this question























  • Probalby n0 is the first number where an assymptotically better algorithm is better than its "competitor". But it might be worth to quote the full definition, theorem, etc.
    – Willem Van Onsem
    Nov 10 at 19:06











  • Sorry, could you simplify what you said? I still don't get it. What is the "first number" is it the first element in an array?
    – wu binhao
    Nov 10 at 19:09










  • no the smallest input length. n is the length of input.
    – Willem Van Onsem
    Nov 10 at 19:09










  • I would have expected something like "n >= n0", not like it is quoted here. Is the quote correct?
    – trincot
    Nov 10 at 19:31










  • @trincot Oh yes, sorry i just realized i typed the quote wrong! I will correct it now.
    – wu binhao
    Nov 10 at 19:35












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Just started learning algorithm. But, I don't know what n0 represent in calculating time complexity.



Full quoto for the mergeSort time complexity.



Ө(nlogn) - C1 * nlogn <= T(n) <= C2 * logn, if n >= n0



O(nlogn) - T(n) <= C * nlogn, if n >= n0










share|improve this question















Just started learning algorithm. But, I don't know what n0 represent in calculating time complexity.



Full quoto for the mergeSort time complexity.



Ө(nlogn) - C1 * nlogn <= T(n) <= C2 * logn, if n >= n0



O(nlogn) - T(n) <= C * nlogn, if n >= n0







algorithm time-complexity big-o






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 10 at 19:39

























asked Nov 10 at 19:05









wu binhao

63




63











  • Probalby n0 is the first number where an assymptotically better algorithm is better than its "competitor". But it might be worth to quote the full definition, theorem, etc.
    – Willem Van Onsem
    Nov 10 at 19:06











  • Sorry, could you simplify what you said? I still don't get it. What is the "first number" is it the first element in an array?
    – wu binhao
    Nov 10 at 19:09










  • no the smallest input length. n is the length of input.
    – Willem Van Onsem
    Nov 10 at 19:09










  • I would have expected something like "n >= n0", not like it is quoted here. Is the quote correct?
    – trincot
    Nov 10 at 19:31










  • @trincot Oh yes, sorry i just realized i typed the quote wrong! I will correct it now.
    – wu binhao
    Nov 10 at 19:35
















  • Probalby n0 is the first number where an assymptotically better algorithm is better than its "competitor". But it might be worth to quote the full definition, theorem, etc.
    – Willem Van Onsem
    Nov 10 at 19:06











  • Sorry, could you simplify what you said? I still don't get it. What is the "first number" is it the first element in an array?
    – wu binhao
    Nov 10 at 19:09










  • no the smallest input length. n is the length of input.
    – Willem Van Onsem
    Nov 10 at 19:09










  • I would have expected something like "n >= n0", not like it is quoted here. Is the quote correct?
    – trincot
    Nov 10 at 19:31










  • @trincot Oh yes, sorry i just realized i typed the quote wrong! I will correct it now.
    – wu binhao
    Nov 10 at 19:35















Probalby n0 is the first number where an assymptotically better algorithm is better than its "competitor". But it might be worth to quote the full definition, theorem, etc.
– Willem Van Onsem
Nov 10 at 19:06





Probalby n0 is the first number where an assymptotically better algorithm is better than its "competitor". But it might be worth to quote the full definition, theorem, etc.
– Willem Van Onsem
Nov 10 at 19:06













Sorry, could you simplify what you said? I still don't get it. What is the "first number" is it the first element in an array?
– wu binhao
Nov 10 at 19:09




Sorry, could you simplify what you said? I still don't get it. What is the "first number" is it the first element in an array?
– wu binhao
Nov 10 at 19:09












no the smallest input length. n is the length of input.
– Willem Van Onsem
Nov 10 at 19:09




no the smallest input length. n is the length of input.
– Willem Van Onsem
Nov 10 at 19:09












I would have expected something like "n >= n0", not like it is quoted here. Is the quote correct?
– trincot
Nov 10 at 19:31




I would have expected something like "n >= n0", not like it is quoted here. Is the quote correct?
– trincot
Nov 10 at 19:31












@trincot Oh yes, sorry i just realized i typed the quote wrong! I will correct it now.
– wu binhao
Nov 10 at 19:35




@trincot Oh yes, sorry i just realized i typed the quote wrong! I will correct it now.
– wu binhao
Nov 10 at 19:35












1 Answer
1






active

oldest

votes

















up vote
3
down vote













Intuitively speaking, the statement f(n) = O(g(n)) means




For any sufficiently large value of n, the value of f(n) is bounded from above by a constant multiple of g(n).




In other words, although f(n) might initially start off significantly larger than g(n), in the long-run, you'll find that f(n) is eventually matched, or overtaken, by some constant multiple of g(n).



The n0 you're referring to here is the formal mathematical way of pinning down this idea of "sufficiently large." Specifically, if the claim being made is




T(n) ≤ C2 n log n, if n ≥ n0,




the value n0 is some cutoff threshold. That is, it's the point where we say that n is "sufficiently large."



The particular choice of n0 and C2 in the above statements will depend on the particular problem that you're working through, but hopefully this gives you a sense of how to interpret what you're looking at.






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242443%2fwhat-is-the-value-of-n0%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    Intuitively speaking, the statement f(n) = O(g(n)) means




    For any sufficiently large value of n, the value of f(n) is bounded from above by a constant multiple of g(n).




    In other words, although f(n) might initially start off significantly larger than g(n), in the long-run, you'll find that f(n) is eventually matched, or overtaken, by some constant multiple of g(n).



    The n0 you're referring to here is the formal mathematical way of pinning down this idea of "sufficiently large." Specifically, if the claim being made is




    T(n) ≤ C2 n log n, if n ≥ n0,




    the value n0 is some cutoff threshold. That is, it's the point where we say that n is "sufficiently large."



    The particular choice of n0 and C2 in the above statements will depend on the particular problem that you're working through, but hopefully this gives you a sense of how to interpret what you're looking at.






    share|improve this answer
























      up vote
      3
      down vote













      Intuitively speaking, the statement f(n) = O(g(n)) means




      For any sufficiently large value of n, the value of f(n) is bounded from above by a constant multiple of g(n).




      In other words, although f(n) might initially start off significantly larger than g(n), in the long-run, you'll find that f(n) is eventually matched, or overtaken, by some constant multiple of g(n).



      The n0 you're referring to here is the formal mathematical way of pinning down this idea of "sufficiently large." Specifically, if the claim being made is




      T(n) ≤ C2 n log n, if n ≥ n0,




      the value n0 is some cutoff threshold. That is, it's the point where we say that n is "sufficiently large."



      The particular choice of n0 and C2 in the above statements will depend on the particular problem that you're working through, but hopefully this gives you a sense of how to interpret what you're looking at.






      share|improve this answer






















        up vote
        3
        down vote










        up vote
        3
        down vote









        Intuitively speaking, the statement f(n) = O(g(n)) means




        For any sufficiently large value of n, the value of f(n) is bounded from above by a constant multiple of g(n).




        In other words, although f(n) might initially start off significantly larger than g(n), in the long-run, you'll find that f(n) is eventually matched, or overtaken, by some constant multiple of g(n).



        The n0 you're referring to here is the formal mathematical way of pinning down this idea of "sufficiently large." Specifically, if the claim being made is




        T(n) ≤ C2 n log n, if n ≥ n0,




        the value n0 is some cutoff threshold. That is, it's the point where we say that n is "sufficiently large."



        The particular choice of n0 and C2 in the above statements will depend on the particular problem that you're working through, but hopefully this gives you a sense of how to interpret what you're looking at.






        share|improve this answer












        Intuitively speaking, the statement f(n) = O(g(n)) means




        For any sufficiently large value of n, the value of f(n) is bounded from above by a constant multiple of g(n).




        In other words, although f(n) might initially start off significantly larger than g(n), in the long-run, you'll find that f(n) is eventually matched, or overtaken, by some constant multiple of g(n).



        The n0 you're referring to here is the formal mathematical way of pinning down this idea of "sufficiently large." Specifically, if the claim being made is




        T(n) ≤ C2 n log n, if n ≥ n0,




        the value n0 is some cutoff threshold. That is, it's the point where we say that n is "sufficiently large."



        The particular choice of n0 and C2 in the above statements will depend on the particular problem that you're working through, but hopefully this gives you a sense of how to interpret what you're looking at.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 10 at 19:44









        templatetypedef

        258k66652881




        258k66652881



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242443%2fwhat-is-the-value-of-n0%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Barbados

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3