English 中文(简体)
1. 主要方法?
原标题:Master s Method, which Case?

我先从麻省理工学院的开放式课程网站观看一些视频讲座,在第三场讲座录像上,讲师超越了收复矩阵的多重复,时间复杂:

T(n) = Θ(n3>

It s obvious to me that I really need to review some of my math, but I really don t see the connection from that answer and any one of the cases mentioned for the Master Theorem Method. I know that the recursive relation is of the form:
T(n) = a*T(n/b) + f(n) for n > 1.
With this recursive relation: a = 8, b = 2, and f(n) = Θ(n2).

因此,它们如何获得<代码>Θ(n3>>?

他提到,log28 = 3,这是有意义的。 但是,我仅能说明三个例子中哪一个实例是,利用<代码>f(n)的价值,复读关系对应。

由于案件2是唯一的<代码>f(n) = Θ(任何thing),那么我会认为这一点。 然而,我怀疑我的问题涉及的是原木或权 exp。

如果f(n) = Θ(nlog 28sup>* (log 2n>k+1) 那么,你如何使用<条码>(n<>>>3>>(<条码>f(n)到<条码>>(n2>>>>>>。 2 ? 我可能在这里失踪了吗?

最佳回答

http://en.wikipedia.org/wiki/Master_theorem” rel=“nofollow noreferer”

他们在讨论案件1时讨论了这一非常确切的情况(a = 8, b=2, f(n)=O(n2)。 请注意,如果 f(n) = Θ(n2),则f(n) = O(2),则可以适用第1号案件。

希望会有所帮助。

问题回答

暂无回答




相关问题
What are the differences between NP, NP-Complete and NP-Hard?

What are the differences between NP, NP-Complete and NP-Hard? I am aware of many resources all over the web. I d like to read your explanations, and the reason is they might be different from what s ...

upper bound, lower bound

What does it mean to prove an upper bound or lower bound to an algorithm?

Worst case time complexity

i have an algorithm that searches into a directory and search for all the text files in that directory and any sub-directory. Assuming i do not know how many sub-directories and sub-sub directories ...

Best-case Running-time to solve an NP-Complete problem?

What is the fastest algorithm that exists up with to solve a particular NP-Complete problem? For example, a naive implementation of travelling salesman is O(n!), but with dynamic programming it can be ...

Complexity in Prolog programs?

In Prolog, problems are solved using backtracking. It s a declarative paradigm rather than an imperative one (like in C, PHP or Python). In this kind of languages is it worth to think in terms of ...

Why is the complexity of A* exponential in memory?

Wikipedia says on A* complexity the following (link here): More problematic than its time complexity is A*’s memory usage. In the worst case, it must also remember an exponential number of ...

热门标签