Which algorithm is more efficient? [closed] Announcing the arrival of Valued Associate #679:...

Are my PIs rude or am I just being too sensitive?

Unexpected result with right shift after bitwise negation

Why does this iterative way of solving of equation work?

I'm having difficulty getting my players to do stuff in a sandbox campaign

If I can make up priors, why can't I make up posteriors?

Estimate capacitor parameters

How to set letter above or below the symbol?

Did the new image of black hole confirm the general theory of relativity?

Can I throw a longsword at someone?

What can I do if my MacBook isn’t charging but already ran out?

Who can trigger ship-wide alerts in Star Trek?

What do you call a plan that's an alternative plan in case your initial plan fails?

How to market an anarchic city as a tourism spot to people living in civilized areas?

How to say 'striped' in Latin

Is 1 ppb equal to 1 μg/kg?

How does modal jazz use chord progressions?

What computer would be fastest for Mathematica Home Edition?

Active filter with series inductor and resistor - do these exist?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

Slither Like a Snake

Autumning in love

Unable to start mainnet node docker container

How do I automatically answer y in bash script?

Statistical model of ligand substitution



Which algorithm is more efficient? [closed]



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Using L'Hospital's Rule to evaluate limit to infinitylimit of a function involving $arcsin{x}$ and $ln{(1+x)}$Why doesn't L'Hopital's rule work in this case?$lim _{ xto 1 }{ frac { sqrt { x } +sqrt [ 3 ]{ x } -2 }{ x-1 } } $Simple limit of a sequenceSolving a limit with L'hospital rule or without itMore Efficient Way of Evaluating a Limit?Use L'Hospital's Rule to show that the limit of the function is $0$.In more detail, why does L'Hospital's not apply here?Compute $limlimits_{x to +infty}dfrac{ln x}{ int_0^x frac{|sin t|}{t}{rm d}t}$.












-1












$begingroup$


Which algorithm is more efficient. Is it a or b?



a. $O(n^{2.81})$



b. $O((n^3 )/ ln n)$



I want to solve this problem using l'Hospital's rule, $lim(f(n)/g(n)) = lim(f'(n)/g'(n))$



L'Hospital's Rule (1696): If $f(n)$ and $g(n)$ are both differentiable with derivatives $f'(n)$ and $g'(n)$, respectively, and if $lim f(n) = lim g(n) = infty$, then $lim frac{f(n)}{g(n)} = lim frac{f'(n)}{g'(n)}$, whenever the limit on the right exists.



Example (1) $f(n) = n^3$ and $g(n) = ln n$? $f'(n)=3n^2$ and $g'(n)=1/n$ so $lim frac{n^3}{ln n}=lim frac{3n^2}{1/n}=infty$. therefore, $g(n)$ is more efficient than $f(n)$.










share|cite|improve this question











$endgroup$



closed as off-topic by user21820, Saad, José Carlos Santos, Shailesh, RRL Mar 25 at 0:20


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – user21820, Saad, Shailesh

If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    Deleting information from your question doesn't help anyone, so please don't do it in the future. Other people might find your question weeks, months, or years from now and be helped by it and the answers other users have left, but vandalizing your own question prevents there from being any chance of that happening.
    $endgroup$
    – Robert Howard
    Mar 24 at 16:02
















-1












$begingroup$


Which algorithm is more efficient. Is it a or b?



a. $O(n^{2.81})$



b. $O((n^3 )/ ln n)$



I want to solve this problem using l'Hospital's rule, $lim(f(n)/g(n)) = lim(f'(n)/g'(n))$



L'Hospital's Rule (1696): If $f(n)$ and $g(n)$ are both differentiable with derivatives $f'(n)$ and $g'(n)$, respectively, and if $lim f(n) = lim g(n) = infty$, then $lim frac{f(n)}{g(n)} = lim frac{f'(n)}{g'(n)}$, whenever the limit on the right exists.



Example (1) $f(n) = n^3$ and $g(n) = ln n$? $f'(n)=3n^2$ and $g'(n)=1/n$ so $lim frac{n^3}{ln n}=lim frac{3n^2}{1/n}=infty$. therefore, $g(n)$ is more efficient than $f(n)$.










share|cite|improve this question











$endgroup$



closed as off-topic by user21820, Saad, José Carlos Santos, Shailesh, RRL Mar 25 at 0:20


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – user21820, Saad, Shailesh

If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    Deleting information from your question doesn't help anyone, so please don't do it in the future. Other people might find your question weeks, months, or years from now and be helped by it and the answers other users have left, but vandalizing your own question prevents there from being any chance of that happening.
    $endgroup$
    – Robert Howard
    Mar 24 at 16:02














-1












-1








-1


0



$begingroup$


Which algorithm is more efficient. Is it a or b?



a. $O(n^{2.81})$



b. $O((n^3 )/ ln n)$



I want to solve this problem using l'Hospital's rule, $lim(f(n)/g(n)) = lim(f'(n)/g'(n))$



L'Hospital's Rule (1696): If $f(n)$ and $g(n)$ are both differentiable with derivatives $f'(n)$ and $g'(n)$, respectively, and if $lim f(n) = lim g(n) = infty$, then $lim frac{f(n)}{g(n)} = lim frac{f'(n)}{g'(n)}$, whenever the limit on the right exists.



Example (1) $f(n) = n^3$ and $g(n) = ln n$? $f'(n)=3n^2$ and $g'(n)=1/n$ so $lim frac{n^3}{ln n}=lim frac{3n^2}{1/n}=infty$. therefore, $g(n)$ is more efficient than $f(n)$.










share|cite|improve this question











$endgroup$




Which algorithm is more efficient. Is it a or b?



a. $O(n^{2.81})$



b. $O((n^3 )/ ln n)$



I want to solve this problem using l'Hospital's rule, $lim(f(n)/g(n)) = lim(f'(n)/g'(n))$



L'Hospital's Rule (1696): If $f(n)$ and $g(n)$ are both differentiable with derivatives $f'(n)$ and $g'(n)$, respectively, and if $lim f(n) = lim g(n) = infty$, then $lim frac{f(n)}{g(n)} = lim frac{f'(n)}{g'(n)}$, whenever the limit on the right exists.



Example (1) $f(n) = n^3$ and $g(n) = ln n$? $f'(n)=3n^2$ and $g'(n)=1/n$ so $lim frac{n^3}{ln n}=lim frac{3n^2}{1/n}=infty$. therefore, $g(n)$ is more efficient than $f(n)$.







calculus asymptotics






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 24 at 16:00









Robert Howard

2,3033935




2,3033935










asked Mar 23 at 12:36









bitmappbitmapp

12




12




closed as off-topic by user21820, Saad, José Carlos Santos, Shailesh, RRL Mar 25 at 0:20


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – user21820, Saad, Shailesh

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by user21820, Saad, José Carlos Santos, Shailesh, RRL Mar 25 at 0:20


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – user21820, Saad, Shailesh

If this question can be reworded to fit the rules in the help center, please edit the question.












  • $begingroup$
    Deleting information from your question doesn't help anyone, so please don't do it in the future. Other people might find your question weeks, months, or years from now and be helped by it and the answers other users have left, but vandalizing your own question prevents there from being any chance of that happening.
    $endgroup$
    – Robert Howard
    Mar 24 at 16:02


















  • $begingroup$
    Deleting information from your question doesn't help anyone, so please don't do it in the future. Other people might find your question weeks, months, or years from now and be helped by it and the answers other users have left, but vandalizing your own question prevents there from being any chance of that happening.
    $endgroup$
    – Robert Howard
    Mar 24 at 16:02
















$begingroup$
Deleting information from your question doesn't help anyone, so please don't do it in the future. Other people might find your question weeks, months, or years from now and be helped by it and the answers other users have left, but vandalizing your own question prevents there from being any chance of that happening.
$endgroup$
– Robert Howard
Mar 24 at 16:02




$begingroup$
Deleting information from your question doesn't help anyone, so please don't do it in the future. Other people might find your question weeks, months, or years from now and be helped by it and the answers other users have left, but vandalizing your own question prevents there from being any chance of that happening.
$endgroup$
– Robert Howard
Mar 24 at 16:02










2 Answers
2






active

oldest

votes


















1












$begingroup$

$$lim_{ntoinfty} frac{(frac{n^3}{ln{n}})}{n^{2.81}}=lim_{ntoinfty} frac{n^{0.19}}{ln{n}}=lim_{ntoinfty} frac{0.19cdot n^{-0.81}}{n^{-1}}=lim_{ntoinfty} 0.19cdot n^{0.19}=infty$$
So the more efficient algorithm is the one which is $O(n^{2.81})$ as $O(frac{n^3}{ln{n}})$ has an infinitely greater complexity.






share|cite|improve this answer









$endgroup$





















    0












    $begingroup$

    L'Hospital's rule is for quotient of functions with limit $0$. Here all you have to do is divide and simplify :
    $$frac{n^{2.81}}{frac{n^3}{ln n}} = n^{2.81}frac{ln n}{n^3} = frac{ln n}{n^{0.19}} xrightarrow[ntoinfty]{} 0$$
    so $Oleft(n^{2.81}right)$ is more efficient than $Oleft(frac{n^3}{ln n}right)$.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      I'd like to see a proof of this statement... We never use it in France (just not very useful).
      $endgroup$
      – Nicolas FRANCOIS
      Mar 24 at 18:30




















    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    $$lim_{ntoinfty} frac{(frac{n^3}{ln{n}})}{n^{2.81}}=lim_{ntoinfty} frac{n^{0.19}}{ln{n}}=lim_{ntoinfty} frac{0.19cdot n^{-0.81}}{n^{-1}}=lim_{ntoinfty} 0.19cdot n^{0.19}=infty$$
    So the more efficient algorithm is the one which is $O(n^{2.81})$ as $O(frac{n^3}{ln{n}})$ has an infinitely greater complexity.






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      $$lim_{ntoinfty} frac{(frac{n^3}{ln{n}})}{n^{2.81}}=lim_{ntoinfty} frac{n^{0.19}}{ln{n}}=lim_{ntoinfty} frac{0.19cdot n^{-0.81}}{n^{-1}}=lim_{ntoinfty} 0.19cdot n^{0.19}=infty$$
      So the more efficient algorithm is the one which is $O(n^{2.81})$ as $O(frac{n^3}{ln{n}})$ has an infinitely greater complexity.






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        $$lim_{ntoinfty} frac{(frac{n^3}{ln{n}})}{n^{2.81}}=lim_{ntoinfty} frac{n^{0.19}}{ln{n}}=lim_{ntoinfty} frac{0.19cdot n^{-0.81}}{n^{-1}}=lim_{ntoinfty} 0.19cdot n^{0.19}=infty$$
        So the more efficient algorithm is the one which is $O(n^{2.81})$ as $O(frac{n^3}{ln{n}})$ has an infinitely greater complexity.






        share|cite|improve this answer









        $endgroup$



        $$lim_{ntoinfty} frac{(frac{n^3}{ln{n}})}{n^{2.81}}=lim_{ntoinfty} frac{n^{0.19}}{ln{n}}=lim_{ntoinfty} frac{0.19cdot n^{-0.81}}{n^{-1}}=lim_{ntoinfty} 0.19cdot n^{0.19}=infty$$
        So the more efficient algorithm is the one which is $O(n^{2.81})$ as $O(frac{n^3}{ln{n}})$ has an infinitely greater complexity.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Mar 23 at 12:43









        Peter ForemanPeter Foreman

        7,2411319




        7,2411319























            0












            $begingroup$

            L'Hospital's rule is for quotient of functions with limit $0$. Here all you have to do is divide and simplify :
            $$frac{n^{2.81}}{frac{n^3}{ln n}} = n^{2.81}frac{ln n}{n^3} = frac{ln n}{n^{0.19}} xrightarrow[ntoinfty]{} 0$$
            so $Oleft(n^{2.81}right)$ is more efficient than $Oleft(frac{n^3}{ln n}right)$.






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              I'd like to see a proof of this statement... We never use it in France (just not very useful).
              $endgroup$
              – Nicolas FRANCOIS
              Mar 24 at 18:30


















            0












            $begingroup$

            L'Hospital's rule is for quotient of functions with limit $0$. Here all you have to do is divide and simplify :
            $$frac{n^{2.81}}{frac{n^3}{ln n}} = n^{2.81}frac{ln n}{n^3} = frac{ln n}{n^{0.19}} xrightarrow[ntoinfty]{} 0$$
            so $Oleft(n^{2.81}right)$ is more efficient than $Oleft(frac{n^3}{ln n}right)$.






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              I'd like to see a proof of this statement... We never use it in France (just not very useful).
              $endgroup$
              – Nicolas FRANCOIS
              Mar 24 at 18:30
















            0












            0








            0





            $begingroup$

            L'Hospital's rule is for quotient of functions with limit $0$. Here all you have to do is divide and simplify :
            $$frac{n^{2.81}}{frac{n^3}{ln n}} = n^{2.81}frac{ln n}{n^3} = frac{ln n}{n^{0.19}} xrightarrow[ntoinfty]{} 0$$
            so $Oleft(n^{2.81}right)$ is more efficient than $Oleft(frac{n^3}{ln n}right)$.






            share|cite|improve this answer











            $endgroup$



            L'Hospital's rule is for quotient of functions with limit $0$. Here all you have to do is divide and simplify :
            $$frac{n^{2.81}}{frac{n^3}{ln n}} = n^{2.81}frac{ln n}{n^3} = frac{ln n}{n^{0.19}} xrightarrow[ntoinfty]{} 0$$
            so $Oleft(n^{2.81}right)$ is more efficient than $Oleft(frac{n^3}{ln n}right)$.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Mar 23 at 13:07

























            answered Mar 23 at 12:44









            Nicolas FRANCOISNicolas FRANCOIS

            3,7921516




            3,7921516












            • $begingroup$
              I'd like to see a proof of this statement... We never use it in France (just not very useful).
              $endgroup$
              – Nicolas FRANCOIS
              Mar 24 at 18:30




















            • $begingroup$
              I'd like to see a proof of this statement... We never use it in France (just not very useful).
              $endgroup$
              – Nicolas FRANCOIS
              Mar 24 at 18:30


















            $begingroup$
            I'd like to see a proof of this statement... We never use it in France (just not very useful).
            $endgroup$
            – Nicolas FRANCOIS
            Mar 24 at 18:30






            $begingroup$
            I'd like to see a proof of this statement... We never use it in France (just not very useful).
            $endgroup$
            – Nicolas FRANCOIS
            Mar 24 at 18:30





            Popular posts from this blog

            Nidaros erkebispedøme

            Birsay

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?