• <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++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
              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.


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


            p.s. wiki : Chomp Game


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

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


            posted on 2008-02-17 04:15 FreePeter 閱讀(1034) 評論(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對比,雖然必輸的時候都是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. 本站采用創作共用版權協議, 要求署名、相同方式共享. 轉載本站內容必須也遵循“署名-相同方式共享”的創作共用協議. This site is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
            国产精品99久久免费观看| 99久久夜色精品国产网站| 伊人久久国产免费观看视频| 久久成人精品| 久久人人爽人人爽人人片av麻烦 | 久久久久亚洲爆乳少妇无| 久久99精品国产麻豆蜜芽| 99久久做夜夜爱天天做精品| 日韩精品久久久久久免费| 91视频国产91久久久| 武侠古典久久婷婷狼人伊人| 精品久久无码中文字幕| 久久精品人妻一区二区三区| 69国产成人综合久久精品| 要久久爱在线免费观看| 久久国产乱子精品免费女| 久久亚洲sm情趣捆绑调教| 久久97久久97精品免视看秋霞 | 久久精品国产第一区二区三区| 青青青伊人色综合久久| 日韩精品久久久久久久电影蜜臀| 久久久久18| 中文字幕一区二区三区久久网站| 亚洲午夜久久久久久噜噜噜| 日产久久强奸免费的看| 国内精品免费久久影院| 久久综合九色综合97_久久久| 性做久久久久久久| 久久亚洲sm情趣捆绑调教| 污污内射久久一区二区欧美日韩 | 久久久精品视频免费观看| 久久久青草青青亚洲国产免观| 午夜精品久久久久久99热| 久久精品日日躁夜夜躁欧美| 亚洲国产精品嫩草影院久久 | 久久久久亚洲AV无码麻豆| 久久国产劲爆AV内射—百度| 久久亚洲AV无码精品色午夜麻豆| 一本色道久久综合| 久久久久国产精品人妻| 亚洲中文字幕无码一久久区|