in reply to Searching for regular expression overlaps
How can you be sure that your current 200 regexes don't overlap? With 200 regexes, checking each regex against each other basically means visiting 2 ** 199 combinations, i.e.
8e60 possibilities (more precisely: 803469022129495137770981046170581301261101496891396417650688 possibilities).
And with just 275 regexes, the number of combinations is larger than the estimated number of atoms in the universe.
Update (@ 09.26 UTC): Oops, wrong calculation. The number of combinations is actually fact 200 / fact 2, i.e. a number much larger than what I wrote above (a number with more than 370 digits). Actually, with just 60 regexes, the number of combinations exceeds the estimated number of atoms in the universe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching for regular expression overlaps
by LanX (Saint) on Aug 13, 2016 at 10:34 UTC | |
by Laurent_R (Canon) on Aug 13, 2016 at 17:45 UTC | |
by LanX (Saint) on Aug 13, 2016 at 17:57 UTC |