PySol uses a random number generator that uses long integers (in the
64-bit range). Currently the range solver only supports the Microsoft
Freecell/Freecell Pro deals. But it is possible that some people will be
more interested in PySol ones.
Now, PySol uses the Microsoft Random Number generator for deals 1-32000,
(but not beyond). However, it is a relatively small number of them and
PySol has about 2**63 of them.
I can either use GMP (the GNU multi-precision library) - check for each
existence in the configure and have an #ifdef in the range solver to test
for it. That or I can write my own ad-hoc implementation of arbitrary
precision long integers and floats (which I did on a few occasions for
calculating 1000 Factorial and Pi), and include it there.
I'd rather go with linking against GMP because writing something myself
(or even just ripping the code) might bring some bugs into there. The
solver can easily be compiled with GMP, so there's no problem of external
dependency (for what's it worth).
Another option is to write a similar range parallel solver in Python by
creating bindings to the ANSI C library. ;-) That may prove useful for
PySol integration as well.
Regards,
Shlomi Fish
----------------------------------------------------------------------
Shlomi Fish shlomif_at_vipe.technion.ac.il
Home Page:
http://t2.technion.ac.il/~shlomif/
He who re-invents the wheel, understands much better how a wheel works.
Received on Sat Jan 11 2003 - 09:03:44 IST