in reply to Re^3: [OT] The interesting problem of comparing bit-strings.
in thread [OT] The interesting problem of comparing bit-strings.
DFA space requirement and construction are both O(m*s) where m is needle length and s the alphabet size. Search is O(n) (linear to text size). In practice, one would handle say 8 bits (a byte) at a time. Even then, the space requirement hardly matters with small patterns..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: [OT] The interesting problem of comparing bit-strings.
by salva (Canon) on Mar 24, 2015 at 21:11 UTC | |
by Anonymous Monk on Mar 24, 2015 at 21:34 UTC |