• 2022-05-28
    已知P="ababaabab",根据KMP算法,该模式串的next函数值为( )。
    A: -1,0,1,2,3,4,5,6,7
    B: -1,0,0,1,2,3,1,2,1
    C: -1,0,1,0,1,0,0,1,1
    D: -1,0,1,2,0,0,1,1,1