From: Kero Date: 2005-12-31T20:07:45+09:00 Subject: Re: Numeric Maze (#60) >>> Are negative numbers and zero allowed to be a starting point or >>> target? I'm assuming no, but I'd like a confirmation. >> >> I made a quick analysis: >> >> target >> - 0 + >> - ok ok ok >> 0 no ok ok >> + no no ok >> start >> >> but, to make it simpler: let the domain be positive integers. >> It all depends on the operators used. >> With the proposed operators, it is possible to go from any positive >> number to any positive number. > > Works for me. Let's do that. Bah! I have a generic solution which is perfectly happy with negative numbers (and Bignums) which is unlikely to be the fastest solution at all. Now you allow others to use even more optimizations! But given the table, I suppose I should add some code to prevent infinite loops from the "no" entries of the table above. ah, well. Bye, Kero.