If "Num" has also a limit, then, perhaps, a lookup table would do the
best performance.
If not, as I can see, there shoud be sets of x, y and z values for the
same "Num", so there must be some sort of preferences among the possible
solutions, so which can they be?
Francisco
Niklas Lvvgren wrote:
{Quote hidden}>Have you tried exhaustive search ? ie go thru all x,y,z from 0 to 255
>and see if you find a match. If you could take that it's slow this should
>work!
>Note though it's slow (worst case several seconds) and it's a pretty
>"stupid"
>algorithm. Maybe it's possible to apply some shortcuts in it that will
>improve
>performance!
>
>/niklo
>
>-----Ursprungligt meddelande-----
>Fren: Thomas N [
thomasn101
KILLspamHOTMAIL.COM]
>Skickat: den 8 juli 2002 09:13
>Till:
.....PICLISTKILLspam
.....MITVMA.MIT.EDU
>Dmne: Fw: C Question. Please help!
>
>
>One more thing: The maximum values for variable x, y, and z is 256
>Thanks!
>Thomas
>{Original Message removed}