in reply to Detecting transpositions
Have you considered precomputing transpositions?
Then, comp(A, B) becomes
If everything is in a big hash (i.e., if you've traded space for time), the lookup is quick. You could even do a lazy initialization of the transposition set.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Detecting transpositions
by BrowserUk (Patriarch) on Aug 06, 2003 at 22:00 UTC | |
Re: Re: Detecting transpositions
by chanio (Priest) on Aug 07, 2003 at 02:30 UTC |