Re: [理工] [計組] IO communication

看板Grad-ProbAsk作者 ( )時間15年前 (2011/09/12 12:25), 編輯推噓3(304)
留言7則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《mqazz1 (無法顯示)》之銘言: : Suppose we want to use a laptop to send 100 files of approximately 50MB each : to another computer over a 5 Mbit/sec wireless connection. The laptop battery : currently holds 100,000 joules of energy. The wireless network card alone : consumes 5 watts while transmitting, while the rest of the laptop consumes 40 : watts. Before each file transfer we need 10 seconds to choose which file to : send. How many complete files can we transfer before the laptop's battery : runs down to zero? : 請問這要題要怎麼解? : 張凡下冊398頁 每次傳檔案前會先花10秒選檔案 然後傳檔案花50M*8/(5M)秒 laptop平時耗40瓦,只有在用無線網卡傳輸檔案時會多花5瓦 所以完整傳一次檔案會耗10*40+50M*8/(5M)*45=4000焦耳 laptop只有100000焦耳的電力 100000/4000=25 因此電池用完時只能傳25個完整檔案 : ======================================================================= : 還想請問一個計算問題 : 100Gbyte / 1Mbits = 800*1024 second : 請問這是怎麼算的? : 張凡下冊400頁 : 謝謝 把1Mbits改成1Mbits/sec 就可以看出最後的單位為什麼是秒 G=2^30 M=2^20 byte = 8bit 原式等於100*2^30*8bits/(1*2^20bits/sec) =100*2^10*8sec =800*1024 seconds -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 27.105.7.134 ※ 編輯: lexa 來自: 27.105.7.134 (09/12 12:27)

09/12 19:05, , 1F
謝謝
09/12 19:05, 1F

09/13 11:56, , 2F
sor 今天再算的時候發現問題
09/13 11:56, 2F

09/13 11:56, , 3F
你第一行 然後傳檔案花50M*8/(5M)秒 這樣算出來是80秒嗎?
09/13 11:56, 3F

09/13 11:57, , 4F
我算的是(50 * 2^20 * 8)bit * 8 / (5 * 2^20)bit
09/13 11:57, 4F

09/13 11:57, , 5F
結果是10*8*8 = 640秒 請問是哪邊錯了?
09/13 11:57, 5F

09/13 21:33, , 6F
這題真複雜-.-
09/13 21:33, 6F

09/13 21:49, , 7F
我的單位有用錯嗎= =? 怎麼張凡的書是算到80秒?
09/13 21:49, 7F
我覺得張凡是想把5Mbit/sec 改成 5/8 MB/sec 所以 50MB/(5/8 MB/sec) = 50MB*8/5MB/sec = 80秒 ^但是這邊書上被打錯打成bit 就造成算出來變640秒 結論就是 書上那行寫錯單位 應該是B卻寫成bit ※ 編輯: lexa 來自: 27.105.7.134 (09/17 00:41)
文章代碼(AID): #1EROcg-2 (Grad-ProbAsk)
文章代碼(AID): #1EROcg-2 (Grad-ProbAsk)