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

作者: javatea (齁齁)   2013-11-21 10:31:37
MIT教授沒那麼簡單 好嗎...
這不是什麼難解的問題吧
英文看起來有比較高級嗎? 有幾個人是真的看過這到底是寫什麼?
今天問你49個號碼選6個號碼開獎 (中獎定義:3個以上相同球)
問你最少要買幾張可以期望中一張
這應該只是數字大了一點而已
把問題簡化成 6個號碼開2個號碼開獎 (中獎定義:1個以上相同球)
大家會算不出來?
ex:把所有中獎機率算出來 得到一個機率, 就可以算期望值了
面試遇到問題很複雜數字很大 別一開始就被嚇到
試著去拆問題 簡化問題
面試也就是看你處理問題的想法而已
另外英文不好就別亂用google
※ 引述《maplefog (楓霧)》之銘言:
: : (2)大樂透的規則是 49 個號碼當中,取 6 個號碼開獎;只要彩券有 3 個以上的號碼與
: : 開獎結果相同,就是中獎。依此規則請問:
: : a. 最少需買幾張才可以保證中一張?
: : b. 概述如何以程式驗證 a.的答案。
: 其實如果能解出這題的話,可以去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被洗臉別太難過,因為主管連自己也不知道答案
作者: ohiammatt (money money money)   2012-01-21 10:48:00
保證跟期望有一樣嗎
作者: poeoe   2012-01-21 11:00:00
原題目不是要算期望值
作者: javatea (齁齁)   2012-01-21 11:26:00
阿唷 那你就把(1-中獎機率)買那個張數 就好了 動動腦好嗎
作者: javatea (齁齁)   2012-01-21 11:27:00
我隨便舉個開始而已 = =a 頭腦在自己頭上要不要動看自己
作者: javatea (齁齁)   2012-01-21 11:28:00
這根本不是什麼無解題 人家google一串英文 別被亂虎就好了
作者: zaqimon (dream)   2012-01-21 11:41:00
討戰文無誤
作者: Zary (Zary)   2012-01-21 11:46:00
所以你的答案是多少?
作者: zaqimon (dream)   2012-01-21 11:52:00
我也google了 雖然我看不懂證明過程 但至少我看得懂這一行
作者: zaqimon (dream)   2012-01-21 11:53:00
87 <= L(49,6,6,3) <= 163 當然這不是正確答案 只是上下限
作者: zaqimon (dream)   2012-01-21 11:56:00
英文的確沒有比較高級 可惜人家算得出答案我算不出來
作者: ppoll2 (Stat Counseling)   2012-01-21 12:14:00
BU~
作者: brightest (fff)   2012-01-21 12:30:00
j大 你簡化了 我也算不出來 你算算看?
作者: brightest (fff)   2012-01-21 12:33:00
這是組合數學 根本沒那麼簡單
作者: obov (來噓蒼真)   2012-01-21 15:21:00
日行一善被噓惹幫補
作者: emitter   2012-01-21 16:05:00
你題目根本沒看懂吧...
作者: javatea (齁齁)   2012-01-21 16:21:00
喔喔 被水桶哥補血 好ㄙㄨㄤˇ~
作者: chuegou (chuegou)   2012-01-21 19:27:00
天這麼黑風這麼大,____捕魚去。
作者: drkkimo (花貓~ 努力工作)   2012-01-21 20:41:00
這個題目和機率一點關係都沒有 這不是機率的問題
作者: tonyhsie (一筆揮毫天下定)   2012-01-21 21:46:00
這個囧

Links booklink

Contact Us: admin [ a t ] ucptt.com