3 ms·
To add to the article's ideas, I would also test by brute force all sequences made from a finite set of values for small lengths. For example: Length 0: []. L
by nayuki 4y ago
To add to the article's ideas, I would also test by brute force all sequences made from a finite set of values for small lengths. For example:
Length 0: [].
Length 1: [0].
Length 2: [0,0], [0,1], [1,0], [1,1].
Length 3: [0,0,0], [0,0,1], [0,0,2], [0,1,0], [0,1,1], [0,1,2], ... [2,2,2]. (3^3 = 27 arrays in total)
Length 4: (4^4 = 256 arrays in total)
Length 5: (5^5 = 3125 arrays in total)
Length 6: (6^6 = 46656 arrays in total)
Length 7: (7^7 = 823543 arrays in total)
Length 8: (8^8 = 16777216 arrays in total)