Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recursion challenge
#17
Quote:If I wanted to generate strings of zeros and ones, I could add 3 or 4 lines of code to do this (I think I posted this somewhere before). But the point is that I don´t want to generate strings of 0 and 1, I want to generate bytes or words.

Thats not what I said. I said the algorithms /work/ differently, your algorithm directly generates integer numbers, the algorithm I gave generates strings of ones and zeros by calculating one bit of the string at time. Conversion from string form to integer form and vice-versa is trivial. My algorithm is also general purpose, it can be used for /any/ byte length, yours can only be used for byte lengths that have a power of two. Whether or not a commercial application requires arbitary byte length is a different matter entirely, the point is that your algorithm is faster and simpler than the one I gave, but is far more limited.

Quote:Also at issue here is the fact that I have used this algorithm twice in business for practical applications, not just for academic purposes
How is this "at issue"? I never said that your algorithm is useless, indeed for a commercial application that only required generation of gray codes with a power of 2 byte length, your algorithm is definitely a sensible choice. However if a more general purpose solution is required to generate n-bit Gray codes, then your algorithm is no longer suitable.

Quote:Sorry, but I don't quite understand the rest of your argument.
Which part?
esus saves.... Passes to Moses, shoots, he scores!
Reply


Messages In This Thread
Recursion challenge - by Antoni Gual - 06-26-2003, 08:04 PM
Recursion challenge - by Antoni Gual - 06-27-2003, 12:37 AM
Recursion challenge - by Moneo - 06-28-2003, 09:49 AM
I beg to differ. - by Agamemnus - 06-30-2003, 05:11 AM
Re: I beg to differ. - by Moneo - 06-30-2003, 06:22 AM
nah - by Agamemnus - 06-30-2003, 09:07 PM
Recursion challenge - by Antoni Gual - 07-01-2003, 01:13 AM
Recursion challenge - by Moneo - 07-01-2003, 02:25 AM
Recursion challenge - by LooseCaboose - 07-01-2003, 05:02 AM
To LooseCaboose: Re Gray's Code - by Moneo - 07-01-2003, 05:38 AM
Recursion challenge - by LooseCaboose - 07-01-2003, 05:52 AM
Recursion challenge - by Antoni Gual - 07-02-2003, 01:30 AM
Recursion challenge - by LooseCaboose - 07-03-2003, 03:30 PM
Recursion challenge - by Moneo - 07-03-2003, 11:14 PM
Recursion challenge - by Hexadecimal Disaster - 07-04-2003, 01:33 AM
Recursion challenge - by LooseCaboose - 07-04-2003, 09:25 AM
To LooseCaboose: - by Moneo - 07-04-2003, 09:15 PM
Recursion challenge - by LooseCaboose - 07-05-2003, 07:39 AM
To LooseCaboose: - by Moneo - 07-05-2003, 08:31 AM
Recursion challenge - by na_th_an - 07-12-2003, 06:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)