Re: [請益] 今天去面試IC設計軟體工程師被打爆的題目

看板Tech_Job作者時間12年前 (2013/11/21 11:51), 編輯推噓2(204)
留言6則, 4人參與, 最新討論串12/18 (看更多)
這就是鬼島主管的想法... 只會嘴砲卻拿不出真正解 給他真正解 還批評你爛 這問題很不簡單 就算你把它簡化成6個號碼 一次開3個 2個以上中獎 或12個號碼 開4個 2個以上中獎 買幾張才保證中獎 要從中推出公式其實很不容易 我也推不出來 所以我只能說 機率解的張數理論上應該要比保證中獎的張數少 ※ 引述《javatea (:))》之銘言: : MIT教授沒那麼簡單 好嗎... : 這不是什麼難解的問題吧 : 英文看起來有比較高級嗎? 有幾個人是真的看過這到底是寫什麼? : 今天問你49個號碼選6個號碼開獎 (中獎定義:3個以上相同球) : 問你最少要買幾張可以期望中一張 : 這應該只是數字大了一點而已 : 把問題簡化成 6個號碼開2個號碼開獎 (中獎定義:1個以上相同球) : 大家會算不出來? : ex:把所有中獎機率算出來 得到一個機率, 就可以算期望值了 : 面試遇到問題很複雜數字很大 別一開始就被嚇到 : 試著去拆問題 簡化問題 : 面試也就是看你處理問題的想法而已 : 另外英文不好就別亂用google : ※ 引述《maplefog (楓霧)》之銘言: : : 其實如果能解出這題的話,可以去MIT當數學教授, : : 真正的解答還沒有人解出來, : : 有找到一篇文章, : : 目前找到的上界為163張,解法如下: : : 參考請google:Betting Wheels, Lotteries & Lotto Designs : : We can get an upper bound by noticing the construction that gives: : : L(49,6,6,3) <= L(22,6,3,3) + L(27,6,4,3) <= 77+86 = 163. : : Proof: Take any p=6-set out of the 49 elements. Either there are at least 3 : : elements from the 22 elements and we have one of the 77 blocks intersecting : : the 6-set in at least three elements or there are at least 4 elements from : : the 27 elements and there is a block intersecting the 6-set in at least 3 : : elements. : : Now LD(22,6,3,3;77) is a well-known combinatorial design and you could not : : get a better lotto design. : : Whereas LD(27,6,4,3;86) was found by a computer program using a simulated : : annealing algorithm. It can probably be improved. : : But even if LD(27,6,4,3;86) was the best you could do, there may be better : : ways to split the 49 elements or better different constructions. : : 所以原PO被洗臉別太難過,因為主管連自己也不知道答案 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 124.11.68.121

11/21 11:58, , 1F
你把嘴砲想簡單了 嘴砲全世界都好用 只是你不會用
11/21 11:58, 1F

11/21 13:20, , 2F
所以樓上夠嘴??
11/21 13:20, 2F

11/21 16:06, , 3F
小心釣魚
11/21 16:06, 3F

11/27 04:42, , 4F
一開始以為是來自大小M,後來得知是間雞蛋水餃豬屎屋
11/27 04:42, 4F

11/27 04:43, , 5F
碼的真想大笑一聲"哈哈...."
11/27 04:43, 5F

11/27 04:45, , 6F
奉勸原po這間真的就別去了
11/27 04:45, 6F
文章代碼(AID): #1IZOC_fL (Tech_Job)
討論串 (同標題文章)
完整討論串 (本文為第 12 之 18 篇):
文章代碼(AID): #1IZOC_fL (Tech_Job)