duval_factorize
Compute the Lyndon factorization of a string with Duval's algorithm to split text into lexicographically minimal nonincreasing factors.
Instructions
Compute the Lyndon factorization of a string using Duval's algorithm.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "duval_factorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input string to factorize (max 1,000,000 chars) |