Home Manual Reference Source

References

summary
public

F * fastScan(p: ArrayLike, pi: number, pj: number, t: ArrayLike<number>, ti: number, s: ArrayLike, si: number, sj: number): IterableIterator<number>

Version of the Matiyasevich-Knuth-Morris-Pratt algorithm that runs quickly when the first symbol of the pattern is not found.

public

F * lessCode(p: ArrayLike, pi: number, pj: number, t: ArrayLike<number>, ti: number, s: ArrayLike, si: number, sj: number): IterableIterator<number>

Readble version of the Matiyasevich-Knuth-Morris-Pratt algorithm.