MarioYC's blog

By MarioYC, 13 years ago, In English
I was reading this to try to understand how to calculate grundy numbers for cyclic games. However I don't get why there are some infinite positions where the first player wins.

Also to implement the algorithm, would I need a boolean matrix M[v][x] to know whether a vertex (v) has a son which a grundy number value equal to some number (x) ? or is it possible to use less memory (this would be about O(V^2) for V states considering we can get values up to V - 1) ?
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Grundy function usually takes small values. Initilize vector M[v] with 10 elements and then enlarge it if necessary.