時間複雜度請教 - 考試
By Edwina
at 2017-05-05T06:02
at 2017-05-05T06:02
Table of Contents
for 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
謝謝
--
begin
j=i; //這邊是O(n)嗎
while j >0 do j=j/2; //這邊寫在同一行,所以算O(log n)還是while判斷也要算?
end
謝謝
--
Tags:
考試
All Comments
By James
at 2017-05-09T11:55
at 2017-05-09T11:55
By Lauren
at 2017-05-09T14:47
at 2017-05-09T14:47
By Ida
at 2017-05-11T23:56
at 2017-05-11T23:56
Related Posts
洪慈庸將提補習班老師禁用假名授課
By Hamiltion
at 2017-05-05T01:07
at 2017-05-05T01:07
初等增額的一些缺額請教
By Tracy
at 2017-05-04T18:16
at 2017-05-04T18:16
撲馬刑總第123頁
By Adele
at 2017-05-04T17:08
at 2017-05-04T17:08
考古題。
By Jacky
at 2017-05-04T16:43
at 2017-05-04T16:43
外交、民航、稅務、原住民
By Charlie
at 2017-05-04T14:14
at 2017-05-04T14:14