diff --git a/src/commonMain/kotlin/search/cfind/CFind.kt b/src/commonMain/kotlin/search/cfind/CFind.kt index 9fbccba..00bde7b 100644 --- a/src/commonMain/kotlin/search/cfind/CFind.kt +++ b/src/commonMain/kotlin/search/cfind/CFind.kt @@ -152,6 +152,19 @@ class CFind( } } + // Computing the background for strobing rules + val background = IntArray(this.period * maxOf(this.k, 1)) { -1 }.apply { + // Compute the offsets + var count = 0 + var index = 0 + while (count < period * k) { + val rem = count % period + for (i in 0 ..