Dynamic Programming | Set 31 (Optimal Strategy for a Game) | GeeksforGeeks Problem statement: Consider...

Please Visit: http://ift.tt/1ajReyV



Dynamic Programming | Set 31 (Optimal Strategy for a Game) | GeeksforGeeks

Problem statement: Consider a row of n coins of values v1 . . . vn, where n is even. We play a game against an opponent by alternating turns. In each turn, a player selects either the first or last coin from the row, removes it from the row permanently, and receives the value of the coin. Determine the maximum possible amount of money we can definitely win if we move first.

http://ift.tt/Vz36NW

http://ift.tt/1zkuzRP



Dynamic Programming | Set 31 (Optimal Strategy for a Game) | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/X1kATA

via LifeLong Community

No comments:

Post a Comment