【问题标题】:concerning big-oh notation and proving or disproving关于大哦符号和证明或反证
【发布时间】:2015-03-16 04:22:40
【问题描述】:

所以我完全迷失了大哦符号。

在我的作业中,我应该使用正式定义来证明或反驳以下内容。

3n³ - 7n² + 100n - 36 is in O(n³)

n²/log(n) + 3n is in O(n²)

谁能帮我解决这些问题并告诉我如何去证明或反证。

【问题讨论】:

  • 这可能适用于 math.stackexchange.com,因为您正在询问如何通过归纳进行证明。

标签: big-o complexity-theory notation


【解决方案1】:

definition of Big-O

f(n) ∈ O(g(n)) ⇔ lim sup<sub>n → ∞</sub> | f(n)/g(n) | &lt; ∞

由于您的f(n)g(n) 是多项式,所以lim suplim 是相同的。所以你必须证明:

  1. lim<sub>n → ∞</sub> |(3n³ - 7n² + 100n - 36) / n³| &lt; ∞ limn → ∞ |(3n³ - 7n² + 100n - 36) / n³| = limn → ∞ |n³(3 - 7/n + 100/n² - 36/n³) / n³| = limn → ∞ |3 - 7/n + 100/n² - 36/n³| = 3
  2. lim sup<sub>n → ∞</sub> |(n²/log(n) + 3n) / n²| &lt; ∞ lim supn → ∞ |(n²/log(n) + 3n) / n²| = lim supn → ∞ |n²(1/log(n) + 3/n) / n²| = lim supn → ∞ |1/log(n) + 3/n| = 0 在这里你还可以看到n²/log(n) + 3n也在o(n²)中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-01-05
    • 1970-01-01
    • 2012-11-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-30
    • 1970-01-01
    相关资源
    最近更新 更多