Lines Matching refs:q
67 for ($q = 0, $max = $k - 1; $q <= $max; ++$q) {
68 $L[$q][-$q - 1] = $L[$q][-$q - 2] = $q - 1;
71 for ($q = 0; $q <= $k; ++$q) {
72 for ($d = -$q, $max = $n - $m + $k - $q; $d <= $max; ++$d) {
75 $L[$q - 1][$d - 1],
76 $L[$q - 1][$d ] + 1,
77 $L[$q - 1][$d + 1] + 1
83 $L[$q][$d] = $l + static::lcp($a, $b);
85 if ($L[$q][$d] == $m - 1 ||
86 $d + $L[$q][$d] == $n - 1) {
89 $offset[$q][] = ['i' => $i, 'j' => $j, 'l' => $j - $i];