考試時間複雜度請教 - 考試Edwina · 2017-05-05Table of ContentsPostCommentsRelated Postsfor i=0 to n do //是O(n+1) begin j=i; //這邊是O(n)嗎 while j >0 do j=j/2; //這邊寫在同一行,所以算O(log n)還是while判斷也要算? end 謝謝 -- 考試All CommentsJames2017-05-09O(nlogn)是嗎?Lauren2017-05-09O(log n) 和(2log n)的差別是?建議原po再對big o 的定義看一下@@ 以及O(n+1) 和 O(n)Ida2017-05-11剛接觸這類問題 建議你把明確的總次數清楚算出來Related Posts洪慈庸將提補習班老師禁用假名授課初等增額的一些缺額請教撲馬刑總第123頁考古題。外交、民航、稅務、原住民
All Comments