2017-09-16 101 views
-1

什麼是以下功能中的生長速率的升序:以升序時間複雜度

  1. 2 ^((logn)時間^ 1/2)

  2. 2^N

  3. 2 ^(N/2)
  4. ñ^(4/3)
  5. N(logn)時間^ 3
  6. N R個LOGN
  7. 2 ^(n^2)
  8. n!

    日誌n是與基地2

+0

您是否曾經使用[function plotting](http://www.fooplot.com)的在線服務? –

+0

@meowgoesthedog ....閱讀提到基地2的完整問題。 – RAFA

+0

@RAFA道歉。評論撤回。 – meowgoesthedog

回答

0
  • 我們可以直接推斷n!是最高的順序,因爲這等於

    enter image description here

    ...和n^n部分遠遠超過了其他任何功能。

  • 由於

    enter image description here

    我們可以推斷,(1)是小於其它功能與n作爲鹼,例如(4),(5)和(6)。其實它小於全部的其他功能。

  • (3)<(2),因爲後者是前平方。

  • (2)<(7),因爲後者是前者的權力n

  • (4)<(6),自log n > 4/3

  • this postlog n增長超過n任何積極的力量更慢。因此:

    enter image description here

    因此(5)<(4),(6)

  • 使用對數定律變換,我們得到以下:

    enter image description here

    因此(6 )<(3)。


編譯上述所有推理步驟,我們推斷升序爲:

(1)。enter image description here

(5)。enter image description here

(4)。enter image description here

(6)。enter image description here

(3)。enter image description here

(2)。enter image description here

(7)。​​

(8)。enter image description here

+0

非常感謝您的努力......您的努力是非常可觀的。 – RAFA