KnuthMorrisPratt Module
A collection of Knuth-Morris-Pratt string matching algorithms
Functions and values
Function or value | Description |
Full Usage:
createPrefixTable pattern
Parameters:
'a array
Returns: int[]
|
|
Full Usage:
find prefixTable pattern s
Parameters:
int[]
pattern : 'a array
s : 'a array
Returns: int
|
|
Full Usage:
findAll prefixTable pattern s
Parameters:
int[]
pattern : 'a array
s : 'a array
Returns: int list
|
|
Full Usage:
findFrom prefixTable pattern startPos s
Parameters:
int[]
pattern : 'a array
startPos : int
s : 'a array
Returns: int
|
|
Full Usage:
initFind pattern
Parameters:
'a array
Returns: 'a array -> int
|
|
Full Usage:
initFindAll pattern
Parameters:
'a array
Returns: 'a array -> int list
|
|
Full Usage:
initFindFrom pattern
Parameters:
'a array
Returns: int -> 'a array -> int
|