Non-polynomial difference: $T(n) = 2T(n/2) + n log n$?












0












$begingroup$


It is said that we can not apply Master Theorem to $T(n) = aT(n/b) + f(n)$ if there is a non-polynomial difference between $f(n)$ and $n^{log_{b}a}$. Polynomial difference means: f(n) / n^log_b(a) = n^c for any real number c. However, in $T(n) = 2T(n/2) + n log n$, $f(n) / n^{log_{b}a} = log n$ which is not $n^c$, right? That means there's non-polynomial difference, right? Then why can we apply MT to this expression?



PLEASE PLEASE NOTE: I am not asking about $T(n) = 2T(n/2) + n/log n$. I am asking about $T(n) = 2T(n/2) + n log n$ and I want to know whether $f(n) / n^{log_{b}a} = log n = n^c$.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Hint: The condition on $f(n)$ should be polynomially bounded growth function. Please review the statement of the master theorem and the definition of polynomially bounded.
    $endgroup$
    – Dosetsu
    Sep 22 '16 at 23:56










  • $begingroup$
    Research is done before I ask the question. MT: en.wikipedia.org/wiki/Master_theorem . Polynomial Bounded: math.stackexchange.com/questions/336374/… Please tell me where I can find the answer, thx.
    $endgroup$
    – Lipeng Wan
    Sep 24 '16 at 15:28












  • $begingroup$
    "Please tell me where I can find the answer" Maybe the shortest route is to forget the so-called M****r theorem and to consider $$t_k=2^{-k}T(2^k)$$ then $$t_k=t_{k-1}+klog2$$ hence $$t_k=t_0+log2sum_{i=1}^ki=Theta(k^2)$$ that is, $$T(n)=Theta(n(log n)^2)$$ You see, no mysteries, no cases, no nothing except mathematics... :-)
    $endgroup$
    – Did
    Sep 24 '16 at 16:15
















0












$begingroup$


It is said that we can not apply Master Theorem to $T(n) = aT(n/b) + f(n)$ if there is a non-polynomial difference between $f(n)$ and $n^{log_{b}a}$. Polynomial difference means: f(n) / n^log_b(a) = n^c for any real number c. However, in $T(n) = 2T(n/2) + n log n$, $f(n) / n^{log_{b}a} = log n$ which is not $n^c$, right? That means there's non-polynomial difference, right? Then why can we apply MT to this expression?



PLEASE PLEASE NOTE: I am not asking about $T(n) = 2T(n/2) + n/log n$. I am asking about $T(n) = 2T(n/2) + n log n$ and I want to know whether $f(n) / n^{log_{b}a} = log n = n^c$.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Hint: The condition on $f(n)$ should be polynomially bounded growth function. Please review the statement of the master theorem and the definition of polynomially bounded.
    $endgroup$
    – Dosetsu
    Sep 22 '16 at 23:56










  • $begingroup$
    Research is done before I ask the question. MT: en.wikipedia.org/wiki/Master_theorem . Polynomial Bounded: math.stackexchange.com/questions/336374/… Please tell me where I can find the answer, thx.
    $endgroup$
    – Lipeng Wan
    Sep 24 '16 at 15:28












  • $begingroup$
    "Please tell me where I can find the answer" Maybe the shortest route is to forget the so-called M****r theorem and to consider $$t_k=2^{-k}T(2^k)$$ then $$t_k=t_{k-1}+klog2$$ hence $$t_k=t_0+log2sum_{i=1}^ki=Theta(k^2)$$ that is, $$T(n)=Theta(n(log n)^2)$$ You see, no mysteries, no cases, no nothing except mathematics... :-)
    $endgroup$
    – Did
    Sep 24 '16 at 16:15














0












0








0





$begingroup$


It is said that we can not apply Master Theorem to $T(n) = aT(n/b) + f(n)$ if there is a non-polynomial difference between $f(n)$ and $n^{log_{b}a}$. Polynomial difference means: f(n) / n^log_b(a) = n^c for any real number c. However, in $T(n) = 2T(n/2) + n log n$, $f(n) / n^{log_{b}a} = log n$ which is not $n^c$, right? That means there's non-polynomial difference, right? Then why can we apply MT to this expression?



PLEASE PLEASE NOTE: I am not asking about $T(n) = 2T(n/2) + n/log n$. I am asking about $T(n) = 2T(n/2) + n log n$ and I want to know whether $f(n) / n^{log_{b}a} = log n = n^c$.










share|cite|improve this question











$endgroup$




It is said that we can not apply Master Theorem to $T(n) = aT(n/b) + f(n)$ if there is a non-polynomial difference between $f(n)$ and $n^{log_{b}a}$. Polynomial difference means: f(n) / n^log_b(a) = n^c for any real number c. However, in $T(n) = 2T(n/2) + n log n$, $f(n) / n^{log_{b}a} = log n$ which is not $n^c$, right? That means there's non-polynomial difference, right? Then why can we apply MT to this expression?



PLEASE PLEASE NOTE: I am not asking about $T(n) = 2T(n/2) + n/log n$. I am asking about $T(n) = 2T(n/2) + n log n$ and I want to know whether $f(n) / n^{log_{b}a} = log n = n^c$.







algorithms






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 26 '18 at 10:11









dantopa

6,67442245




6,67442245










asked Sep 22 '16 at 22:59









Lipeng WanLipeng Wan

42




42












  • $begingroup$
    Hint: The condition on $f(n)$ should be polynomially bounded growth function. Please review the statement of the master theorem and the definition of polynomially bounded.
    $endgroup$
    – Dosetsu
    Sep 22 '16 at 23:56










  • $begingroup$
    Research is done before I ask the question. MT: en.wikipedia.org/wiki/Master_theorem . Polynomial Bounded: math.stackexchange.com/questions/336374/… Please tell me where I can find the answer, thx.
    $endgroup$
    – Lipeng Wan
    Sep 24 '16 at 15:28












  • $begingroup$
    "Please tell me where I can find the answer" Maybe the shortest route is to forget the so-called M****r theorem and to consider $$t_k=2^{-k}T(2^k)$$ then $$t_k=t_{k-1}+klog2$$ hence $$t_k=t_0+log2sum_{i=1}^ki=Theta(k^2)$$ that is, $$T(n)=Theta(n(log n)^2)$$ You see, no mysteries, no cases, no nothing except mathematics... :-)
    $endgroup$
    – Did
    Sep 24 '16 at 16:15


















  • $begingroup$
    Hint: The condition on $f(n)$ should be polynomially bounded growth function. Please review the statement of the master theorem and the definition of polynomially bounded.
    $endgroup$
    – Dosetsu
    Sep 22 '16 at 23:56










  • $begingroup$
    Research is done before I ask the question. MT: en.wikipedia.org/wiki/Master_theorem . Polynomial Bounded: math.stackexchange.com/questions/336374/… Please tell me where I can find the answer, thx.
    $endgroup$
    – Lipeng Wan
    Sep 24 '16 at 15:28












  • $begingroup$
    "Please tell me where I can find the answer" Maybe the shortest route is to forget the so-called M****r theorem and to consider $$t_k=2^{-k}T(2^k)$$ then $$t_k=t_{k-1}+klog2$$ hence $$t_k=t_0+log2sum_{i=1}^ki=Theta(k^2)$$ that is, $$T(n)=Theta(n(log n)^2)$$ You see, no mysteries, no cases, no nothing except mathematics... :-)
    $endgroup$
    – Did
    Sep 24 '16 at 16:15
















$begingroup$
Hint: The condition on $f(n)$ should be polynomially bounded growth function. Please review the statement of the master theorem and the definition of polynomially bounded.
$endgroup$
– Dosetsu
Sep 22 '16 at 23:56




$begingroup$
Hint: The condition on $f(n)$ should be polynomially bounded growth function. Please review the statement of the master theorem and the definition of polynomially bounded.
$endgroup$
– Dosetsu
Sep 22 '16 at 23:56












$begingroup$
Research is done before I ask the question. MT: en.wikipedia.org/wiki/Master_theorem . Polynomial Bounded: math.stackexchange.com/questions/336374/… Please tell me where I can find the answer, thx.
$endgroup$
– Lipeng Wan
Sep 24 '16 at 15:28






$begingroup$
Research is done before I ask the question. MT: en.wikipedia.org/wiki/Master_theorem . Polynomial Bounded: math.stackexchange.com/questions/336374/… Please tell me where I can find the answer, thx.
$endgroup$
– Lipeng Wan
Sep 24 '16 at 15:28














$begingroup$
"Please tell me where I can find the answer" Maybe the shortest route is to forget the so-called M****r theorem and to consider $$t_k=2^{-k}T(2^k)$$ then $$t_k=t_{k-1}+klog2$$ hence $$t_k=t_0+log2sum_{i=1}^ki=Theta(k^2)$$ that is, $$T(n)=Theta(n(log n)^2)$$ You see, no mysteries, no cases, no nothing except mathematics... :-)
$endgroup$
– Did
Sep 24 '16 at 16:15




$begingroup$
"Please tell me where I can find the answer" Maybe the shortest route is to forget the so-called M****r theorem and to consider $$t_k=2^{-k}T(2^k)$$ then $$t_k=t_{k-1}+klog2$$ hence $$t_k=t_0+log2sum_{i=1}^ki=Theta(k^2)$$ that is, $$T(n)=Theta(n(log n)^2)$$ You see, no mysteries, no cases, no nothing except mathematics... :-)
$endgroup$
– Did
Sep 24 '16 at 16:15










0






active

oldest

votes












Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
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',
autoActivateHeartbeat: false,
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
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1937734%2fnon-polynomial-difference-tn-2tn-2-n-log-n%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1937734%2fnon-polynomial-difference-tn-2tn-2-n-log-n%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







Popular posts from this blog

Bundesstraße 106

Verónica Boquete

Ida-Boy-Ed-Garten