Skip to main content
added 69 characters in body
Source Link
Yola
  • 191
  • 10

I have a string and I need to generate some new strings that are not in the set I already have. What would be an efficient way to do it?

Average length of a string is 20. Alphabet contains about 100 different values.

Surely I can generate random and compare until I have a different one, but ..I think it would be an interesting exercise to devise such an algorithm.

I have a string and I need to generate some new strings that are not in the set I already have. What would be an efficient way to do it?

Average length of a string is 20. Alphabet contains about 100 different values.

Surely I can generate random and compare until I have a different one, but ...

I have a string and I need to generate some new strings that are not in the set I already have. What would be an efficient way to do it?

Average length of a string is 20. Alphabet contains about 100 different values.

Surely I can generate random and compare until I have a different one, but I think it would be an interesting exercise to devise such an algorithm.

Source Link
Yola
  • 191
  • 10

Generate new sequence different from all the previous ones

I have a string and I need to generate some new strings that are not in the set I already have. What would be an efficient way to do it?

Average length of a string is 20. Alphabet contains about 100 different values.

Surely I can generate random and compare until I have a different one, but ...