Let U
small alphabet 0, 1
or A, C, G, T
, k <= n
.
I want to find minimum Hamming distance between
u = (u_1,...,u_k)
and the contiguous subsequences of v = (v_1,...,v_n)
of length k
in time O(n log n)
.
Is it possible?
Thank you for any help!