Help: A two player game..

bhaskaraaditya_at_msn.com
Date: 12/10/04

  • Next message: Kent Paul Dolan: "Re: (Unsure where to post)"
    Date: 9 Dec 2004 17:57:51 -0800
    
    

    Hi everyone, I've been trying to solve the foll problem, but am not
    sure how to proceed.

    Two players play a game as follows : There are 'n' states. A coin is
    initially in some state. A move consists of a player moving the coin
    to some other or possibly the same state. There is a "cost" involved
    though. This is given as a matrix, cost of moving from state 'i' to
    state 'j'. (i to i might also have a nonzero cost). The game consists
    of 'm' moves, and the player who incurs minimum total cost is the
    winner. The problem is to find, given the matrix, m, n, the best
    difference between himself and his oponent the first player can force.
    (the lesser the better ofcourse).

    One way of doing, is ofcourse, noting that if 'pos' is the current
    position, and nmoves is the number of moves remaining,
    bestdiff[pos][nmoves]=min(over j)
    (cost[pos][j]-bestdiff[j][nmoves-1]). However, this method takes
    O(m*n^2) time. Is there a faster algorithm? Moreover, it appears that
    if nmoves is large enough, the best move is fixed. But how large is
    large enough is dependent on the matrix. For example, if the matrix is
    :
    4 2
    3 k
    then, the player starting at state 2, in order to get minimum
    difference, has to move to state 1 if nmoves<k and remain in state 2
    if nmoves>=k (this can be proved).

    Is there any other way of looking at it, or is there any pattern which
    would be forced to appear?
    Thanks in advance for any help,
    Bhaskara Aditya


  • Next message: Kent Paul Dolan: "Re: (Unsure where to post)"

    Relevant Pages

    • Re: iRacing Costs
      ... The high volumes justify the big budgets, and the cost per ... EA will just slap "NFS" on their first shot with a sim-oriented racer, ... or "claimed" that the core physics of ANY EA racing game was "very ... and the cost per player will be low. ...
      (rec.autos.simulators)
    • Re: Looking for an algorithm
      ... to rely on a 2 player game. ... work in any situation where you can evaluate the cost of decisions ... >game where n is the number of possible deals. ... Each such decision will have an impact on your solution's cost, whose intermediate value is money spent on deals + money you would spend to buy the rest of the items if you didn't take advantage of any deal (or rather, if you purchased them one by one, or whatever the smallest purchase unit is). ...
      (borland.public.delphi.non-technical)
    • Re: MMORPGs
      ... that cost. ... playing a space shooter where he would join ... was just a really bad player. ... player who doesn't give a hoot about the game or anyone else's game ...
      (comp.sys.ibm.pc.games.rpg)
    • Re: Shirt of Healing balanced?
      ... So it is about the same a Cure Light Wounds every hour, ... ceases to become viable to do anything but rent out vests of healing. ... Wounds in it (not counting the 100 GP that should cost) the ELs ... A player in my campaign is proposing this item ...
      (rec.games.frp.dnd)
    • Re: The cost of hand crafted so called art as compared to the cost of handcrafted guitars.
      ... >>H Dickert kirjutas: ... >>> art as compared to the cost of handcrafted guitars. ... > the harp player were the same crew piling coins into the banjp players ...
      (rec.music.makers.guitar.acoustic)