Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя pakhandi

Автор pakhandi, история, 9 лет назад, По-английски

I find problems of Game Theory a little hard to approach and mostly I even fail to prove a solution.
I was trying to do this question but I couldn't come up with any solution. Any help on this topic and question would be appreciated.
Thanks.
PS : I am reading about the Nim-Game on TopCoder..

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

It has got nothing to do with graph theory and nim game. If you are familiar with N and P positions in a game, it might be handful. With some paperwork, one can observe that first k moves are losing positions and next l moves are winning positions and next k are losing and this pattern repeats. So each time game moves from winning to losing and vice versa. So number of moves will be 2*n/(k+l) + (n%(k+l)>=k) if both play optimally irrespective of whether they try to elongate game or not.