Assuming that A, B, C and D are the four states. When detecting the sequence "1010", in the D state, if overlapping is not allowed, we have the following state diagram:
After detecting "1011", why does the detector go back to B instead of having a self-loop to D? Wouldn't it become overlapping if we consider the "1" as the first bit of sequence "1010", because then the input sequence would be "1011010"?