But first I needed to find a way to get starting grids, which involved revisiting the RSG problem.
I thought it worthwhile running some timing tests to indicate the problems associated with scaling up the grid size, N.
My results were:
- Code: Select all
-------------------------------------------------------------------
Size | Method A | Method B | Method C
N | Grids Time | Grids Time | Grids Time
------|-------------------|-------------------|--------------------
9 | 100 163s | 10,000 140s | 10,000 0.065s
| | | 1,000,000 6.482s
--------------------------|-------------------|--------------------
16 | 0* 14400s | 10,000 1800s | 10,000 0.125s
| | | 1,000,000 12.453s
------|-------------------|-------------------|--------------------
25 | ** | 10,000 18000s | 10,000 0.299s
| | | 1,000,000 30.151s
-------------------------------------------------------------------
I was going to provide descriptions of the methods, but since this is a puzzle forum, why not leave that for others to fill in? Bonus points for suggesting a method I haven't tested.