[理工] 資結 時間複雜度 2題

看板Grad-ProbAsk作者 (柯黑戰神 第一英粉)時間4年前 (2019/07/27 22:46), 編輯推噓4(4012)
留言16則, 6人參與, 4年前最新討論串1/1
1. 該如何說明 (loglogn)! 為一個polynomially bounded function? 2. 原題目如下,不曉得C為何錯誤 We abuse the “ + “ operator with asymptotic notations. For example , we may sa y that the total time for an algorithm is O(n) + Θ(n). Which of the following s tatement are true. A. O(nlogn)+ Θ(n^2)= Θ(n^2) B. O(n^2)+ Θ(n^2)= Θ(n^2) C. O(nlogn)+ Θ(nlogn) = O(nlogn) D. O(n^2)+O(nlogn)= Θ(n^2) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.247.70.195 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1564238792.A.D2C.html

07/28 00:10, 4年前 , 1F
第一題就取log 最後要推到O(log n)呀
07/28 00:10, 1F

07/28 00:12, 4年前 , 2F

07/28 00:12, 4年前 , 3F
=是指集合的belong還是equual
07/28 00:12, 3F

07/28 00:12, 4年前 , 4F
?
07/28 00:12, 4F

07/28 00:13, 4年前 , 5F
第二題我不知道 因為這是定理,但我覺得也成立就是了...
07/28 00:13, 5F

07/28 00:16, 4年前 , 6F
樓上,是集合的belong
07/28 00:16, 6F

07/28 00:16, 4年前 , 7F
若是equal,則c錯
07/28 00:16, 7F

07/28 00:17, 4年前 , 8F
若是belong,則c對
07/28 00:17, 8F

07/28 14:13, 4年前 , 9F
謝謝大家
07/28 14:13, 9F

07/28 17:44, 4年前 , 10F
為何 equal 錯呀
07/28 17:44, 10F

07/28 20:48, 4年前 , 11F
對耶 剛看了一下 theta(nlogn)不就表示平均是nlogn
07/28 20:48, 11F

07/28 20:48, 4年前 , 12F
那麼說複雜度最少就是O(nlogn)吧?
07/28 20:48, 12F

07/28 22:00, 4年前 , 13F
07/28 22:00, 13F

07/28 22:00, 4年前 , 14F
順帶一提,theta跟跟平均應該是不一樣的哦
07/28 22:00, 14F

07/29 10:41, 4年前 , 15F
意思是 theta(n) <=> O(n)and omega (n)
07/29 10:41, 15F

07/29 10:41, 4年前 , 16F
所以C已經確認範圍是夾集 應該要寫theta(nlogn) ?
07/29 10:41, 16F
文章代碼(AID): #1TF6F8qi (Grad-ProbAsk)