• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            The Sun Also Rises

            Algorithm, Mathematica, 計算機科學, C++, photography, GNU/Linux的討論空間

              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              73 隨筆 :: 6 文章 :: 169 評論 :: 0 Trackbacks
            500分的題。。。
            由于之前看到過chomp game,(《Game Theory》的練習里有),然后開始試圖推公式之類的。。。在wiki上找到rectangle情況先手必勝的證明:

            Who wins?

            Chomp belongs to the category of impartial 2-player perfect information games.

            It turns out that for any rectangular starting position bigger than 1 × 1 the 1st player can win. This can be shown using a strategy-stealing argument: assume that the 2nd player has a winning strategy against any initial 1st player move. Suppose then, that the 1st player takes only the bottom right hand square. By our assumption, the 2nd player has a response to this which will force victory. But if such a winning response exists, the 1st player could have played it as his first move and thus forced victory. The 2nd player therefore cannot have a winning strategy.

            Computers can easily calculate winning moves for this game on two-dimensional boards of reasonable size.


            很優(yōu)美的證明。。。只可惜不能提供任何strategy...-_-bbbbbbbb
            最后終于悟出來這題規(guī)定棋盤3*n, n<=100,所以就100*100*100的dp就行了。。-_-bbbbbbbbbb


            p.s. wiki : Chomp Game


            p.s. 確實覺得一知半解是一個很容易出錯的情況...因為如果完全不知道思維也就沒有任何限制了,曾經(jīng)看到過么...感覺會有點緊張(想要趕緊搞掉的那種感覺) & 試圖用記憶中的套路去做...但有時候可能沒有關系(例如這個game, 先手必勝的證明并不能提供任何先手如何operate的信息...,如果繼續(xù)往這個上面想就直接掛了...-_-bbbbbbb)
            還有就是有可能會出現(xiàn)類似于"當時為什么不仔細推清楚"之類的念頭...這個seems容易解決...

            感覺如果是完全陌生的題想法通常容易比較open, 如果感覺這個模型熟悉一般都會試圖往熟悉的模型上套...大多數(shù)情況下這樣確實可以節(jié)省時間...但是如果失去了open的思維 + 熟悉的模型無法解決就orz了...


            posted on 2008-02-17 04:15 FreePeter 閱讀(1026) 評論(4)  編輯 收藏 引用 所屬分類: AlgorithmACM/ICPC

            評論

            # re: TCO Round1, [500], CHOMP Game... 2008-02-17 22:17 ziliang
            嗯,我也是暴力DP上去的...
            不過題目咋一看就像是可以SG的...真是orz了  回復  更多評論
              

            # re: TCO Round1, [500], CHOMP Game... 2008-02-18 22:26 FreePeter
            @ziliang
            典型的想復雜了么~~~  回復  更多評論
              

            # re: TCO Round1, [500], CHOMP Game... 2008-02-21 19:54 xcw
            問一下topcoder srm div2 1000那個題目.
            剛開始做的時候我沒有特殊處理(0,x),(x,0)幾個特殊點.就直接算SG.
            結果不對,和別人的程序算出來的SG對比,雖然必輸?shù)臅r候都是0,但是其他非0的就不一樣了...為什么(0,x),(x,0)的SG值不能直接寫成0呢?  回復  更多評論
              

            # re: TCO Round1, [500], CHOMP Game... 2008-02-22 19:08 FreePeter
            @xcw
            你是指SRM 384吧
            我怎么記得應該是把(0, x), (x, 0), (x, x)直接寫成0吧?
            因為原來的游戲還是稍微要變下模型的(注意是只要把某一個棋子move to (0, 0)就勝利)。

            這里有篇summary~, you may also refer to the analysis of TopCoder...
            http://wtommy.yculblog.com/post.2796402.html

              回復  更多評論
              

            Creative Commons License
            This site is licensed under a Creative Commons Attribution-Share Alike 2.5 China Mainland License. 本站采用創(chuàng)作共用版權協(xié)議, 要求署名、相同方式共享. 轉(zhuǎn)載本站內(nèi)容必須也遵循“署名-相同方式共享”的創(chuàng)作共用協(xié)議. This site is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
            久久一区二区三区99| 77777亚洲午夜久久多喷| 久久www免费人成精品香蕉| 久久精品成人影院| 亚洲精品乱码久久久久久| 久久99热精品| 波多野结衣久久| 久久99精品国产| 漂亮人妻被中出中文字幕久久 | 久久超碰97人人做人人爱| 日韩一区二区久久久久久| 综合久久精品色| 热久久国产精品| 99久久无色码中文字幕人妻| 久久国产亚洲精品无码| 欧美激情精品久久久久久| 精品国产乱码久久久久久郑州公司 | 久久精品无码午夜福利理论片| 久久99精品久久久久久秒播| 久久久久久无码Av成人影院| 久久亚洲2019中文字幕| 国产精品美女久久久久网| 久久无码中文字幕东京热| 久久久久亚洲精品天堂久久久久久| 久久婷婷国产综合精品| 伊人久久大香线蕉av不变影院| 久久无码一区二区三区少妇| 久久亚洲综合色一区二区三区| 无码超乳爆乳中文字幕久久 | 99久久免费国产精精品| 色婷婷久久综合中文久久蜜桃av| 伊人久久大香线蕉精品不卡 | 久久久噜噜噜久久熟女AA片| 香蕉久久久久久狠狠色| 亚洲一级Av无码毛片久久精品| 久久久精品日本一区二区三区| 国产精品VIDEOSSEX久久发布| 久久国产高潮流白浆免费观看| 久久精品国产亚洲AV无码娇色| 亚洲人成网亚洲欧洲无码久久| 97香蕉久久夜色精品国产|