• <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 閱讀(1025) 評論(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.
            久久久久亚洲AV无码专区网站| 久久免费的精品国产V∧ | 国产精品九九久久精品女同亚洲欧美日韩综合区 | 久久棈精品久久久久久噜噜| 国产精品久久久久久一区二区三区| 麻豆精品久久精品色综合| 无码任你躁久久久久久| 午夜欧美精品久久久久久久| 国产巨作麻豆欧美亚洲综合久久| 欧美精品国产综合久久| 亚洲国产成人久久精品动漫| 久久精品无码一区二区WWW| 国产精品毛片久久久久久久| 伊人久久国产免费观看视频| 久久精品一区二区国产| 99久久国产综合精品女同图片| 精品久久久久久国产三级| 久久亚洲AV成人无码电影| 久久久精品视频免费观看 | 久久亚洲国产精品123区| 久久99精品久久只有精品| 久久无码AV中文出轨人妻| 久久精品国产福利国产琪琪| 丁香五月网久久综合| 亚洲AV无码久久| 热re99久久精品国99热| 99精品国产综合久久久久五月天| 亚洲午夜久久久| 日韩欧美亚洲综合久久影院Ds | 精品久久久无码21p发布| 久久国产精品一区| 2020最新久久久视精品爱| 国产精品岛国久久久久| 国产午夜精品理论片久久影视| 久久亚洲精精品中文字幕| 亚洲国产精品无码成人片久久| 狠狠色婷婷久久综合频道日韩| 婷婷久久五月天| 囯产极品美女高潮无套久久久| 亚洲综合伊人久久综合| 亚洲精品乱码久久久久久|