[Code (including Mathematica implementation)]

1. Add sequence

Sequence over the alphabet {A,C,G,T}:

2. Search substring

Substring over the alphabet {A,C,G,T}:

3. Compute hash

String over the alphabet {A,C,G,T}: