MC: Faster User-RPL HILBERT
|
08-05-2018, 06:31 PM
Post: #14
|
|||
|
|||
RE: MC: Faster User-RPL HILBERT
A solution using DOSUBS:
« → n « {} 1 n 2 * 1 - FOR j j INV + NEXT n « n →LIST » DOSUBS AXL » » The first line generates a list of the inverse of numbers from 1 to 2*n-1. The second line creates a list of lists, the first lists takes n elements starting at the first element, the second list take n elements too, but starts at the second element and so on until all the lists of n elements are exhausted, finally AXL converts the list of lists into a matrix. I can't check the running time. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)