• <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, 計(jì)算機(jī)科學(xué), C++, photography, GNU/Linux的討論空間

              C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              73 隨筆 :: 6 文章 :: 169 評(píng)論 :: 0 Trackbacks
            500分的題。。。
            由于之前看到過(guò)chomp game,(《Game Theory》的練習(xí)里有),然后開(kāi)始試圖推公式之類(lèi)的。。。在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
            最后終于悟出來(lái)這題規(guī)定棋盤(pán)3*n, n<=100,所以就100*100*100的dp就行了。。-_-bbbbbbbbbb


            p.s. wiki : Chomp Game


            p.s. 確實(shí)覺(jué)得一知半解是一個(gè)很容易出錯(cuò)的情況...因?yàn)槿绻耆恢浪季S也就沒(méi)有任何限制了,曾經(jīng)看到過(guò)么...感覺(jué)會(huì)有點(diǎn)緊張(想要趕緊搞掉的那種感覺(jué)) & 試圖用記憶中的套路去做...但有時(shí)候可能沒(méi)有關(guān)系(例如這個(gè)game, 先手必勝的證明并不能提供任何先手如何operate的信息...,如果繼續(xù)往這個(gè)上面想就直接掛了...-_-bbbbbbb)
            還有就是有可能會(huì)出現(xiàn)類(lèi)似于"當(dāng)時(shí)為什么不仔細(xì)推清楚"之類(lèi)的念頭...這個(gè)seems容易解決...

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


            posted on 2008-02-17 04:15 FreePeter 閱讀(1024) 評(píng)論(4)  編輯 收藏 引用 所屬分類(lèi): Algorithm 、ACM/ICPC

            評(píng)論

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

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

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

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

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

              回復(fù)  更多評(píng)論
              

            Creative Commons License
            This site is licensed under a Creative Commons Attribution-Share Alike 2.5 China Mainland License. 本站采用創(chuàng)作共用版權(quán)協(xié)議, 要求署名、相同方式共享. 轉(zhuǎn)載本站內(nèi)容必須也遵循“署名-相同方式共享”的創(chuàng)作共用協(xié)議. This site is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
            97超级碰碰碰久久久久| 久久久久久曰本AV免费免费| 人妻少妇久久中文字幕一区二区| 亚洲国产精品无码久久久蜜芽| 99精品国产在热久久 | 香蕉久久夜色精品国产尤物| 亚洲午夜无码久久久久小说| 亚洲伊人久久大香线蕉综合图片| 精品久久久久久久| 欧美久久一区二区三区| 久久99国产综合精品| 久久久精品国产Sm最大网站| 久久国产乱子伦免费精品| 久久久WWW成人免费毛片| 精品久久久无码人妻中文字幕豆芽| 香蕉久久夜色精品国产小说| 一本久久a久久精品vr综合| 99久久精品国产一区二区蜜芽| 亚洲va久久久噜噜噜久久| 久久免费99精品国产自在现线 | 伊人丁香狠狠色综合久久| 久久综合九色综合网站| 久久99精品国产99久久6| 久久99精品国产自在现线小黄鸭| 亚洲美日韩Av中文字幕无码久久久妻妇| 久久er热视频在这里精品| 亚洲va久久久噜噜噜久久天堂| 香蕉久久夜色精品国产2020| 99久久免费国产精品| 久久综合丁香激情久久| 人妻无码αv中文字幕久久琪琪布| 国产精品成人久久久| 无码人妻久久一区二区三区蜜桃| 久久av免费天堂小草播放| 国产成人精品久久综合| 99久久精品九九亚洲精品| 久久久久夜夜夜精品国产| 久久免费小视频| 91久久成人免费| 久久精品三级视频| 久久精品免费网站网|