-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only produce Unknown names that are just long enough #7
Comments
Because it is cheap and significantly reduces the possibility of random name clashes I would likely also add 1 to this value so there is always |
gonum provides combinatorics calculations: https://godoc.org/gonum.org/v1/gonum/stat/combin#Binomial |
Calculating the number of necessary characters to represent all possible unknowns with: 500 known individuals, all separated by a distance of 9, and 26 possible characters needs only 5 characters. How many are needed to represent 1000 known individuals, all separated by a distance of 9, and 26 possible characters?...5. The answer to having enough randomness is to just use 5 characters. Hand-rolling a way to produce 5 random characters also proved slow so I wen back to using |
Produce names that are just long enough to cover all randomness. The necessary randomness would be enough to cover separating every known individual from every other known individual by
--max-distance
number of unknown individuals.The text was updated successfully, but these errors were encountered: