From: Christer Nilsson Date: 2005-12-31T10:36:50+09:00 Subject: Re: Numeric Maze (#60) Jim Freeze wrote: > we either have: > > double > halve (evens only) > add_two > times_one > > so we can get (1,1) #=> [1,1] > > or, we use the original tranformations to get: > > (1,1) #=> [1,2,1] My suggestion is: consider the original transformations having cost one. The new operation, times_one, will have cost zero. Find the minimum cost transforming a to b. Hmm, this is getting interesting... Christer -- Posted via http://www.ruby-forum.com/.