Random Latin squares: Difference between revisions
→{{header|jq}}
Line 1,564:
the first row, and then adds cells one-by-one by making a calculated
but fallible selection based on the values in its row and column,
backtracking on failure. The method
For example, to generate a Latin Square of order 10 (LS(10)) typically
takes from 0.11 to 0.14 seconds (u+s) on my 3GHz machine.
To generate LS(15), the jq program typically takes 0.15 to 0.21s; to
|