Hello All,
Basically in this app, I have a function. (Is that descriptive or what?)
What I need to do is to pass this function all possible values or a certain variable until it returns a specific string. For instance, the values should look like:
aaaa
aaab
aaac
--//--
aaaz
aaba
aabb
aabc
--//--
zzzy
zzzz
aaaaa (note: goes one char longer, does it again.)
This process is called "brute forcing" by some people. And I need to try all those values up to 56 chars long. And the only way I can think of is to have 56 nested for() loops, obviously very ugly.
SOOOO... anyone have any ideas how i might contruct a better algorithm, such that I don't have eight-zillion nested for()'s???
Thanks in advance,



LinkBack URL
About LinkBacks




yes I know