N日志n是O(N)?

编程入门 行业动态 更新时间:2024-10-19 18:31:59
本文介绍了N日志n是O(N)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图解决这个复发

T(N)= 3 T(N / 2)+ N LG电子ñ。

T(n) = 3 T(n/2) + n lg n ..

我是来它是属于主人定理2的情况下由于n LG电子n中的解决方案是O(n ^ 2)

I have come to the solution that it belongs to masters theorem case 2 since n lg n is O(n^2)

但指的是解决方案手册后,我注意到了这个解决方案,他们有

but after referring to the solution manual i noticed this solution that they have

该soluttion说是n LG N =为O(n ^(LG 3 - E))为0和0.58Ë

The soluttion says that n lg n = O ( n ^(lg 3 - e)) for e between 0 and 0.58

所以这表示正LG n是O(n)的..这是正确的?我失去了一些东西呢?

so this means n lg n is O(n) .. is this right? Am i missing something here?

是不是nlgn为O(n ^ 2)?

Isn't nlgn O(n^2) ?

推荐答案

这将更好地解释事情

This will explain things better

更多推荐

N日志n是O(N)?

本文发布于:2023-11-30 09:37:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1649521.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日志

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!