in reply to Re^2: Pattern enumeration.
in thread Pattern enumeration.
Um. 6x6x6 is 6^36; 8x8x6 is 6^64. 6^64 / 6^36 = 6140942214464815497216 *2 minutes = A very long time :)
That would be true if I had used the brute force algorithm that has complexity O(SN2) or worse... but I had not used it!
My solution has complexity O(N2S2N) so, roughly, t6x6,6 = k*62*62*6 = 2min, so k = 2/78364164096 and t8x8,6 = k*82*62*8 = 180551034077184*2/78364164096 = 4608min
My solution has complexity O(N22NS2N) so, roughly, t7x7,6 = k*72*27*62*7 = 139min, so k = 139/A and t8x8,6 = k*82*62*8 = 180551034077184*139/A = 13000min
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Pattern enumeration.
by BrowserUk (Patriarch) on Jul 28, 2010 at 13:22 UTC | |
by salva (Canon) on Jul 28, 2010 at 20:29 UTC | |
by salva (Canon) on Jul 29, 2010 at 13:05 UTC | |
|
Re^4: Pattern enumeration.
by BrowserUk (Patriarch) on Jul 30, 2010 at 15:44 UTC | |
by salva (Canon) on Aug 02, 2010 at 06:46 UTC | |
by BrowserUk (Patriarch) on Aug 02, 2010 at 07:50 UTC | |
by salva (Canon) on Aug 02, 2010 at 08:09 UTC | |
by BrowserUk (Patriarch) on Aug 06, 2010 at 21:44 UTC |