如下表所示,模式串abaabaab的next值和nextval值依次为()
A.
next[j]: -1 0 1 0 2 1 2 4 nextval[j]: -1 0 0 -1 2 -1 -1 0
B.
next[j]: -1 0 0 1 1 2 3 4 nextval[j]: -1 0 0 -1 1 0 -1 0
C.
next[j]: -1 0 0 1 1 2 3 4 nextval[j]: -1 0 -1 -1 0 -1 -1 0
D.
next[j]: -1 0 0 1 1 2 3 4 nextval[j]: -1 0 -1 1 0 -1 1 0