fragment code fragment java implementation of the kmp pattern matching algorithm the algorithm is expressed by two static methodsmethod kmpmatch performs the matching and calls the auxiliary method computefailfunction to compute the failure functionexpressed by an array method kmpmatch indicates the absence of match by returning the conventional value -