Vietnamese snake puzzle - Closed
|
05-23-2015, 09:08 AM
Post: #27
|
|||
|
|||
RE: Vietnamese snake puzzle - Closed
Gerson: for the intermediate results to be integer, c must divide b, which is not the same as saying c must be 1 ;-))
I've written an RPL solution as well that, on EMU48 at full pelt, cranks out all 136 solutions in 30 seconds. But I'm not happy with it yet. I used Heap's algorithm to generate all permutations - then it took 256 seconds. Including the condition that Code: MOD(13*b*i + g*h*c,c*i)=0 Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)