Re: [中學] 對數

看板 Math
作者 yueayase (scrya)
時間 2023-02-20 16:31:40
留言 0 ( 0推 0噓 0→ )
回文 5則
※ 引述《magic704226 (梅姬?沒雞?傻傻分不清楚)》之銘言: : The complexity of a problem is O(log10n) and the computer : executes 1 million instructions per second. : How long does it take to run the program if the number : of operations is 10,000? : a. 1 microsecond : b. 2 microseconds : c. 3 microseconds : d. 4 microseconds : 答案是 4 microsecond : 令 log(k*10*1000000) : k=1/(10^6) : 10000代入之後就卡住了 The complexity of a problem is O(log10n)的n通常就是instruction的數量 所以log 10000 = 4 表示10000個指令需要4個單位的執行時間 10 the computer executes 1 million instructions per second 6 -6 也就是1秒可執行10 個指令 => 1個指令需要10 秒 -6 所以這10000個指令需要 4*10 秒,即4 microseconds -6 (所以是log N *10 sec for N instructions) 10 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.47.64.252 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Math/M.1676881902.A.914.html

回文

[中學] 對數
5 17 math magic704226
2023-02-16 16:04:55
Re: [中學] 對數
math yueayase
2023-02-20 16:31:40
[中學] 對數
1 5 math susiseptem
2023-11-02 02:10:21
[中學] 對數
math CBH
2024-10-08 18:39:09
Re: [中學] 對數
math cuteSquirrel
2024-10-08 19:17:52

最新文章

[推薦] 邪神竟是我自己+大畫家
cfantasy lily5566
2024-10-08 19:30:10
Re: [中學] 對數
math cutesquirrel
2024-10-08 19:17:52
[閒聊] 騎過電輔車嗎?
womentalk jqk2
2024-10-08 19:12:58
[中學] 對數
math cbh
2024-10-08 18:39:09
[心情] 不拖延真的很難
1 1 womentalk meisonaigon
2024-10-08 18:15:09
[閒聊] 獅子女好兇我會怕
womentalk lelahli
2024-10-08 18:10:56
[討論] 直男是不是比較優
womentalk suckquer
2024-10-08 18:07:32
[問題] 男生的喜好怎麼那麼難捉摸
6 20 womentalk misshuh
2024-10-08 17:46:10
[心情] 想追水瓶是不是很難
womentalk odokemama
2024-10-08 17:41:56