When I'm talking slow, i'm meaning SLOW!!!! Just processing the test code will take a few hours.. shorter pieces (3 or 4 characters base 36) take less. Instead of messing around with large numbers, I'm using an incremental method.
I have two sets of code. The first will not handle numbers larger than KiXtart integers... (and runs faster)
The second will handle anything, but runs VERY SLOWLY.
For the slow one (that handles larger numbers) my score is 375.
For the faster one, my score is 243. however it won't do the sample one because the numbers are too large.
If I need to make (the second method) so that it will work for even the huge numbers, I will have to write my own MOD and division functions.
{EDIT} After much thinking about this (and testing some), I believe that adding complexity to my long-running script would indeed speed it up quite a bit, but at the cost of score.. I'm using the "cave-man" approach, but it works. I've estimated that a 7 character base 36 number could take up to 125 days (ouch!) to convert to base 10. A 5 character base 36 number could be converted in about 2 hours.
Brian [ 09 June 2002, 12:55: Message edited by: BrianTX ]
|